Css Questions

tuemmykidstuemmykids Join Date: 2003-09-15 Member: 20884Members
edited May 2005 in Off-Topic
<div class="IPBDescription">Cascading Style Sheets</div> I was bored today, so I decided to design a new site. Almost everything works the way it should just the navigation looks really messed up in Internet Explorer. In Firefox it works fine. Here's a pic to show you what I mean:
Internet Explorer:
<a href='http://www.imageshack.us' target='_blank'><img src='http://img138.echo.cx/img138/3892/navmessed8jj.jpg' border='0' alt='user posted image' /></a>
Firefox:
<a href='http://www.imageshack.us' target='_blank'><img src='http://img138.echo.cx/img138/4659/navok4qd.jpg' border='0' alt='user posted image' /></a>

I don't know why it's doing this, can anyone help? If you need the HTML / CSS code, it's here:
HTML: <a href='http://tuemmykids.webpal.info/design.htm' target='_blank'>http://tuemmykids.webpal.info/design.htm</a>
CSS: <a href='http://tuemmykids.webpal.info/stylesheets/styles2.css' target='_blank'>http://tuemmykids.webpal.info/stylesheets/styles2.css</a>
Please ignore everything before <div id="divHeader"> and after <div id="divFooter"> in the HTML file, it's just the ads that the host put in.
I'd also like to know if it was possible to set a minimum width for a div tag, so it can be resized but will never be smaller than x pixels.

If there's anything else you need, please say so.

Comments

  • ZeroByteZeroByte Join Date: 2002-11-01 Member: 3057Members
    the li margins probably need to be set to 0.
  • tuemmykidstuemmykids Join Date: 2003-09-15 Member: 20884Members
    It didn't change anything <!--emo&:(--><img src='http://www.unknownworlds.com/forums/html/emoticons/sad-fix.gif' border='0' style='vertical-align:middle' alt='sad-fix.gif' /><!--endemo-->.
  • MintmanMintman Join Date: 2003-05-30 Member: 16866Members
    edited May 2005
    I can only suggest that your <li> or <ul> tags must have some kind of padding or border round them. What I do in situations like this is set everything to have a border of 1px so that you can work out what it is that has the padding around it.
  • ZeroByteZeroByte Join Date: 2002-11-01 Member: 3057Members
    Hmm.. its one of those seemingly bizarre cases where you need a border to make the margin work properly.

    You could try putting "border: 1px #E4ECEC solid;" in the li rule.
  • SkinnYSkinnY Join Date: 2002-11-07 Member: 7500Members
    edited May 2005
    crap... nvm <!--emo&:p--><img src='http://www.unknownworlds.com/forums/html/emoticons/tounge.gif' border='0' style='vertical-align:middle' alt='tounge.gif' /><!--endemo-->
  • tuemmykidstuemmykids Join Date: 2003-09-15 Member: 20884Members
    edited May 2005
    Wow, IE is seriously messed up, after adding borders it displays it the same in both browsers... I don't get it...

    <a href='http://www.imageshack.us' target='_blank'><img src='http://img29.echo.cx/img29/6471/navomg9mu.jpg' border='0' alt='user posted image' /></a>

    EDIT: Hmm, I post too slowly... I'll try adding an invisible border like you said.
  • ZeroByteZeroByte Join Date: 2002-11-01 Member: 3057Members
    <!--QuoteBegin-SkinnY+May 6 2005, 08:06 PM--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (SkinnY @ May 6 2005, 08:06 PM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> crap... nvm <!--emo&:p--><img src='http://www.unknownworlds.com/forums/html/emoticons/tounge.gif' border='0' style='vertical-align:middle' alt='tounge.gif' /><!--endemo--> <!--QuoteEnd--> </td></tr></table><div class='postcolor'> <!--QuoteEEnd-->
    >_< I WAS GOING TO CHEW YOUR **** OUT FOR EVEN ASKING THAT QUESTION BEFORE YOU EDITED IT!

    Fun spoiler.

    And tuemmy, err it's IE. Their adherence to the CSS standards are spotty at best. I *think* this borks up because of the way they mangled the implementation of the CSS box model.
  • SkinnYSkinnY Join Date: 2002-11-07 Member: 7500Members
    <!--QuoteBegin-ZeroByte+May 6 2005, 07:11 AM--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (ZeroByte @ May 6 2005, 07:11 AM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> <!--QuoteBegin-SkinnY+May 6 2005, 08:06 PM--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (SkinnY @ May 6 2005, 08:06 PM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> crap... nvm <!--emo&:p--><img src='http://www.unknownworlds.com/forums/html/emoticons/tounge.gif' border='0' style='vertical-align:middle' alt='tounge.gif' /><!--endemo--> <!--QuoteEnd--></td></tr></table><div class='postcolor'><!--QuoteEEnd-->
    >_< I WAS GOING TO CHEW YOUR **** OUT FOR EVEN ASKING THAT QUESTION BEFORE YOU EDITED IT!

    [...] <!--QuoteEnd--> </td></tr></table><div class='postcolor'> <!--QuoteEEnd-->
    Lack of sleep makes me think unclear <!--emo&:p--><img src='http://www.unknownworlds.com/forums/html/emoticons/tounge.gif' border='0' style='vertical-align:middle' alt='tounge.gif' /><!--endemo-->
  • tuemmykidstuemmykids Join Date: 2003-09-15 Member: 20884Members
    Alright, thanks guys the border solved it. Now I can only hope it works in Netscape aswell <!--emo&:p--><img src='http://www.unknownworlds.com/forums/html/emoticons/tounge.gif' border='0' style='vertical-align:middle' alt='tounge.gif' /><!--endemo-->.
    So, does anyone know how I can set a minimum width for a div tag? I want it to resize, but not get smaller than x pixels. If you resize the site the way it is now, it will get messed up.
  • ZeroByteZeroByte Join Date: 2002-11-01 Member: 3057Members
    min-width no worky with IE. Its one of those CSS2 attributes IE failed to implement. A pain in the **** really, especially since min-width and its sister, min-height, are so useful. Pray for IE7 tuemmy, pray for IE7 and its developers that they atone for the sins of their forebears and IMPLEMENT THE !@#$ STANDARD CORRECTLY. Gah.
  • tuemmykidstuemmykids Join Date: 2003-09-15 Member: 20884Members
    <!--QuoteBegin-ZeroByte+May 6 2005, 07:21 AM--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (ZeroByte @ May 6 2005, 07:21 AM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> min-width no worky with IE. Its one of those CSS2 attributes IE failed to implement. A pain in the **** really, especially since min-width and its sister, min-height, are so useful. Pray for IE7 tuemmy, pray for IE7 and its developers that they atone for the sins of their forebears and IMPLEMENT THE !@#$ STANDARD CORRECTLY. Gah. <!--QuoteEnd--> </td></tr></table><div class='postcolor'> <!--QuoteEEnd-->
    Oh. Well that sucks. I really hope they get their act together and do something right for once.
  • SkinnYSkinnY Join Date: 2002-11-07 Member: 7500Members
    [slightly ot]

    And IE7 will have full .png support <!--emo&:D--><img src='http://www.unknownworlds.com/forums/html/emoticons/biggrin-fix.gif' border='0' style='vertical-align:middle' alt='biggrin-fix.gif' /><!--endemo-->

    [/slightly ot]
  • DOOManiacDOOManiac Worst. Critic. Ever. Join Date: 2002-04-17 Member: 462Members, NS1 Playtester
    While we are on the subject I would like to state that while yes, IE sucks the worst at implementing CSS standards, Firefox and Mozilla are no saints. I've had css that works in IE and Safari but doesn't work in Firefox before.

    I wish ALL the browsers would just stick to the standards rather than picking and choosing. :/
  • MedHeadMedHead Join Date: 2002-12-19 Member: 11115Members, Constellation
    <!--QuoteBegin-DOOManiac+May 6 2005, 08:07 PM--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (DOOManiac @ May 6 2005, 08:07 PM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> While we are on the subject I would like to state that while yes, IE sucks the worst at implementing CSS standards, Firefox and Mozilla are no saints. I've had css that works in IE and Safari but doesn't work in Firefox before.

    I wish ALL the browsers would just stick to the standards rather than picking and choosing. :/ <!--QuoteEnd--> </td></tr></table><div class='postcolor'> <!--QuoteEEnd-->
    I wouldn't blast Firefox for not rendering CSS as Internet Explorer renders it: Internet Explorer has some shoddy support, as you well know. Now, Safari and Firefox should render the code the same, so you do have a point there; there are definitely bugs in Firefox's rendering engine.

    tuemmykids, add display: inline; to #divNavLeft li.
  • DOOManiacDOOManiac Worst. Critic. Ever. Join Date: 2002-04-17 Member: 462Members, NS1 Playtester
    <!--QuoteBegin-MedHead+May 6 2005, 06:46 PM--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (MedHead @ May 6 2005, 06:46 PM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> I wouldn't blast Firefox for not rendering CSS as Internet Explorer renders it <!--QuoteEnd--> </td></tr></table><div class='postcolor'> <!--QuoteEEnd-->
    I'm not. I'm blasting it for not either rendering it according to the W3 standards, or flat out not supporting the property at all.
  • antifreezeantifreeze The guy with the goods&#33; Join Date: 2003-05-12 Member: 16232Members, Constellation
    <!--QuoteBegin-DOOManiac+May 7 2005, 01:58 AM--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (DOOManiac @ May 7 2005, 01:58 AM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> <!--QuoteBegin-MedHead+May 6 2005, 06:46 PM--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (MedHead @ May 6 2005, 06:46 PM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> I wouldn't blast Firefox for not rendering CSS as Internet Explorer renders it <!--QuoteEnd--></td></tr></table><div class='postcolor'><!--QuoteEEnd-->
    I'm not. I'm blasting it for not either rendering it according to the W3 standards, or flat out not supporting the property at all. <!--QuoteEnd--> </td></tr></table><div class='postcolor'> <!--QuoteEEnd-->
    I have had the same. It's both confusing and annoying.
  • MausMaus Join Date: 2002-11-03 Member: 5599Members
    edited May 2005
    <!--QuoteBegin-SkinnY+May 6 2005, 07:33 AM--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (SkinnY @ May 6 2005, 07:33 AM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> [slightly ot]

    And IE7 will have full .png support <!--emo&:D--><img src='http://www.unknownworlds.com/forums/html/emoticons/biggrin-fix.gif' border='0' style='vertical-align:middle' alt='biggrin-fix.gif' /><!--endemo-->

    [/slightly ot] <!--QuoteEnd--></td></tr></table><div class='postcolor'><!--QuoteEEnd-->
    Full as in it'll fully support all pngs, or full as in it'll finally support some basic pngs?

    Having full support for png alpha masking would rock so hard, and be a wee revolution for web graphics.

    edit: hmm, wait. other browsers can do them already? which rock have I been living under?
  • tuemmykidstuemmykids Join Date: 2003-09-15 Member: 20884Members
    <!--QuoteBegin-MedHead+May 6 2005, 07:46 PM--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (MedHead @ May 6 2005, 07:46 PM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> tuemmykids, add display: inline; to #divNavLeft li. <!--QuoteEnd--> </td></tr></table><div class='postcolor'> <!--QuoteEEnd-->
    Wow, thanks, now I don't have to use those borders anymore. You're a life saver <!--emo&:D--><img src='http://www.unknownworlds.com/forums/html/emoticons/biggrin-fix.gif' border='0' style='vertical-align:middle' alt='biggrin-fix.gif' /><!--endemo-->.
Sign In or Register to comment.