-
SitePoint Enthusiast
display:block is not working for IE? what's the right hack??
i need to make a hyperlink for and image in header and here's the code:
html:
<div id="wholeheader"> <a name="top"> </a>
<div class="header">
<div class="logo">
<a href="#whatever"></a>
<div class="headertext"> </div>
</div>
</div>
css:#wholeheader {margin:0 auto;
width:833px;
height:264px;
padding:0;
border-left:1px solid #e2dbd0;
border-right:1px solid #e2dbd0;
float:left;
}
div.header {width:830px;
height:117px;
margin:0;
padding:0;
float:left;
clear:both;
}
div.logo {width:216px;
height:117px;
background-image:url(../images/logo.jpg);
background-repeat:no-repeat;
padding:0;
margin:0;
float:left;
display:block;
}
div.logo a {display:block;
float:left;
width:216px;
height:117px;
}
I tried this hack for IE, but still not working:
* html div.logo a {width:100%;}
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks