[thelist] CSS blue border

Andrew Maynes andrew at humanbehaviour.co.uk
Sat Feb 22 06:57:01 CST 2003


>> <A HREF="index.php"><div id="diagonal"><img src="images/bb1.gif" width="80"
>> height="79" alt=""></div></A>
>
>This is invalid HTML. Some browsers will choke on it. You can not have
><div> elements inside <a> elements. And for a link, alt text of "" is
>highly inapropriate. How can you have an element that is a link but
>doesn't convey any meaning?

Yep I got that just before I posted and changed it but forgot to make the chnage
on the post .. sorry

>Why would class="link" have any effect on a border? You haven't
>defined any style for such a class.

link was dfined with css but I assumed you would think that sorry...


>Try:
>
><div id="diagonal">
> <a href="index.php">
>  <img src="images/bb1.gif" width="80" height="79" alt="Some Meaning">
> </a>
></div>
>
>Along with:
>
>#diagonal {
>  z-index: 1000;
>  position: absolute;
>  left: 0px; top: 0px;
>  width: 80px; height: 69px
>}
>
>#diagonal img {
>  border-style: none;
>}

Works brilliantly :)

Thank you :)

Andrew

>




More information about the thelist mailing list