Forum Moderators: not2easy

Message Too Old, No Replies

Clickable Div Stops Working After Declaring Doctype XHTML 1.0 Trans

IE doesn't like when i declare a doctype

         

suga

12:25 am on Feb 16, 2007 (gmt 0)

10+ Year Member



Hello everyone!

I just finished validating my site to XHTML 1.0 Transitional and all looks well EXCEPT...

The top 55px of each of my pages should be clickable and should bring the visitor back to my home page. I currently am using the following code:

<a href="index.html" id="gohome">&nbsp;</a>

CSS
a#gohome
{
display: block;
height: 55px;
width: 100%;
position: absolute;
top: 0px;
text-decoration: none;
}

This works fine and all my pages validate as XHTML 1.0 Transitional with the override in effect. However, when I put the actual doc type declaration on my pages, IE no longer likes to link the top of my pages to my index page. FF and Safari work fine, but IE does not.

Does anyone have any ideas as to what I can do?

Thanks,
Suga

SuzyUK

1:44 pm on Mar 1, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



suga..

did you trying adding a high z-index to it? sounds to me like IE is getting the stacking confused.
if that doesn't work have you tried putting the HTML for that link at the end of the source code

Suzy