Connecting Tech Pros Worldwide Forums | Help | Site Map

CSS - IE Doesn't make sense - positioning issue

Member
 
Join Date: Apr 2008
Posts: 45
#1: May 29 '09
In firefox, everything works fine. The text ( UL ) is aligned to the left. In IE it seems to have no regard for the rules.

Suggestions?


http://www.upload.mn/view/r1cojvau3kn03mdche2f.jpg



Expand|Select|Wrap|Line Numbers
  1. #wrapper
  2. {
  3.   width:  768px;
  4.   margin-left: auto;
  5.   margin-right: auto;
  6.   overflow:   hidden;
  7.   text-align: left;
  8.  
  9.  
  10.  
  11. }
  12.  
  13. #header
  14. {
  15.  
  16.   background-image:  url('images/bannerbg.bmp');
  17.   background-repeat: no-repeat;
  18.   background-position: bottom center;
  19.   height: 146px;
  20.  
  21.   position: relative;
  22.   width: 902px;
  23.   margin: 10px 0px 0px 0px;
  24.  
  25. }
Expand|Select|Wrap|Line Numbers
  1. <div id="wrapper">
  2. <div id="header">
  3. <img src="images/logo.jpg" />
  4.  
  5. <ul class="sf-menu">
  6.   <li><a href="index.php">Home</a></li>
  7.  
  8.   <li><a href="products.php">Products</a>
  9.   <ul>
  10.   <li><a href="acc.html" title="Accesssories">Accessories</a></li>
  11.  
  12. </ul>
  13.  
  14. </div>
  15. </div>
  16.  
  17.  
  18.  
  19.  
  20.  
  21.  
  22.  
  23.  
drhowarddrfine's Avatar
Expert
 
Join Date: Sep 2006
Posts: 5,563
#2: May 30 '09

re: CSS - IE Doesn't make sense - positioning issue


Quote:

Originally Posted by DevInCode View Post

In firefox, everything works fine. The text ( UL ) is aligned to the left. In IE it seems to have no regard for the rules.

You're right. IE has no regard for the rules and is the worst browser on the planet by far. Unfortunately, it's hard to tell what's going on with what you supplied so hopefully you can give a link to an online page.
Reply