Welcome!

And don't forget to edit your signature & profile.

 

Icon

Statistics

  • Total posts 23318
  • Total topics 4048
  • Total members 5574
  • Our newest member
    ALF5583

TOP POSTERS

IE CSS issues

Designing the web. Work and development.
   

IE CSS issues

Postby cstef24 » Wed Nov 04, 2009 9:02 pm

I'm working on an interior design website and I've done it all on my mac. I just opened it on my mom's computer with internet explorer and it looks crazy! nothing at all is in the right spot

http://www.csteffen.com/heidi

can anyone help out? Thank you!
cstef24
Smashing <frame>
 
Posts: 14
Joined: Sun Oct 11, 2009 1:58 pm
   

   

Re: IE CSS issues

Postby Andy » Thu Nov 05, 2009 3:08 am

I assume you are referring to the navigation menu.

The issue is that you are floating the anchor tags (<a>) instead of the list items (<li>).

Code: Select all
ul#menu { /* added overflow to make it contain the floats */
  overflow: hidden;
  list-style-type: none;
  list-style-image: none;
  list-style-position: outside;
}

ul#menu li { /* place them next to each-other */
   float: left;
}

ul#menu li a { /* removed float */
  display: block;
  height: 33px;
  background-image: url(menu.gif);
  text-indent: -9999px;
}


I removed the <br/>'s following the menu as that was messing up the rendering. <br/> should only be used to break up text, not to create a margin between two elements.

Also, This is not how you should create a background image:
Code: Select all
<p><img src="heidi-filer/bg.gif" id="bg"></p>


Instead you should apply it through CSS like this:

Code: Select all
html {
height: 100%;
}
body {
background: #606060 url(bg.gif) repeat-x bottom;
height: 100%;
margin: 0px;
font-family: cambria, georgia, sans-serif;
font-size: 12px;
}
Andy
Smashing <h5>
 
Posts: 1023
Joined: Tue Sep 30, 2008 6:42 pm
Location: Sweden
   

   

Re: IE CSS issues

Postby cstef24 » Thu Nov 05, 2009 9:08 pm

You've been such a help with all of my messy coding
Thanks!
cstef24
Smashing <frame>
 
Posts: 14
Joined: Sun Oct 11, 2009 1:58 pm
   


Return to Web Design



Who is online

Users browsing this forum: No registered users and 1 guest

cron