Reply
Firefox white space above header with <ul>
Old 04-02-2006, 09:22 PM Firefox white space above header with <ul>
Junior Talker

Posts: 2
HTML Code:
<html>
<head>
<title>krenken!</title>
<style type="text/css">
body {font-family: verdana;font-size: 12px;color: #000;margin: 0px;line-height: 19px;}
img {border: 0px;}



#header {background-color: #477198;height: 50px;color: #fff;text-align: left;margin: 0px;} /* a background image goes here when live */

#container {width: 860px;margin-top: 20px;padding: 10px;text-align: left;} /* actual with padding 880px */

#maincontent {float: left;width: 75%;}
#sidecontent  {float: right;width: 25%;}



#header .logo {color: #fff;font-size: 10px;float:left;}
#header .nav ul {margin: 0px;padding: 0px;}
#header .nav li {margin: 0px;padding: 11px;display: inline;list-style-type:none;float: right;}
#header .nav a:link, #header .nav a:visited {color: #c0c0c0;text-decoration: none;}
#header .nav a:hover, #header .nav a:active {color: #fff;text-decoration:none;}
</style>
</head>

<body>
<center>
<div id="header">
    <span class="logo">logo here!</span>
    <ul class="nav">
    <li><a href="/">test1</a></li>
    <li><a href="/">test2</a></li>
    <li><a href="/">test3</a></li>
    </ul>

</div>

<div id="container">

<div id="maincontent">main content will go here</div>
<div id="sidecontent">side content will go here</div>


</div>




</center>
</body>
</html>
this is my code, for some reason when i view this page in firefox above the header there is a white space. and not in IE. the code doesnt appear to have any errors . when i dont have the <ul> there no white space appears. - the solution cant be adding a table (i'm working for a tableless design)

some help in removing this will be great. thanks!

Last edited by krenken : 04-02-2006 at 09:23 PM.
krenken is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
Old 04-06-2006, 05:36 PM Re: Firefox white space above header with <ul>
Ultra Talker

Posts: 255
Location: NY
Get rid of the float:left in your #header .logo
DianeD is offline
Reply With Quote
View Public Profile Visit DianeD's homepage!
 
Reply     « Reply to Firefox white space above header with <ul>
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.12784 seconds with 12 queries