Divs moving on me
Posted: 07 December 2009 04:33 AM   [ Ignore ]
Newbie
Rank
Total Posts:  1
Joined  2009-12-07

I am just starting out using CSS and I am having an issues with my Divs moving on me in Firefox and IE. I basically have a Div with an image in it that slides up into my navigation bar, which is in another Div. Any insight would be great since I am so new to this! Thank you

Here is my code.

</head>

<
body>
<
div id="main">  
    <
div class="container"
    
<
div id="header">  
    <
div id="logo">  
     <
h1>Logo</h1>  
     <
img src="images/bre_logo.png" name="logo" width="200" height="122" /></div>  
<
ul id="menu">  
        <
li><a href="#">Home</a></li>  
        <
li><a href="#">About</a></li>  
        <
li><a href="#">Portfolio</a></li>  
        <
li><a href="#">Contact</a></li>  
    </
ul>  
<
div style="clear:both"></div>  

    <
div id="sidebar">  
<
img src="images/house.jpg" />
      </
div><!--end sidebar-->
  
</
div><!--end header --> 
</
div><!--end container --> 
</
div><!--end main --> 


And here is my CSS:

/* CSS Document */
htmlbodydivspan
h1h2h3h4h5h6pblockquotepre,
aabbracronymaddressbigcitecode,
imginskbdqssamp,
smallstrikestrong
dldtddolulli,
fieldsetformlabellegend,
tablecaptiontbodytfoottheadtrthtd {
    margin
0;
    
padding0;
    
border0;
    
outline0;
    
font-size100%;
    
vertical-alignbaseline;
    
backgroundtransparent;
}
body {
    line
-height1;
}
ol
ul {
    
list-stylenone;
}
blockquote
q {
    quotes
none;
}
blockquote
:beforeblockquote:after,
q:beforeq:after {
    content
'';
    
contentnone;
}

table {
    border
-collapsecollapse;
    
border-spacing0;
}
/*END RESET*/

body { font-familyVerdanaArialHelveticasans-serif;
    
background#ffff99   

}  

#main {  
    
backgroundurl(images/bre_headerRepeat.gifrepeat-x;   
}

.container {  
    width
800px;  
    
margin0 auto;   


#logo h1 {  
    
text-indent: -9999px;   
}


ul
#menu {  
    
list-stylenone;   
}  
  
ul
#menu li a {  
    
font-size13px;  
    
color#000000;  
    
text-decorationnone;     
}

ul
#menu li {  
    
padding4px 50px 4px 0px;
    
floatleft;    
}

#menu a:link { color: #000000; text-decoration: none;}
#menu a:visited { color: #000000; text-decoration: none;}
#menu a:active { color: #ff9933; text-decoration: none;}
#menu a:hover { color: #ff9933; text-decoration: underline;} 
Profile
 
 
   
 
 
‹‹ Google      attribute selectors ››