Jump to content


CSS problems in firefox


3 replies to this topic

#1 ReZTeR

    Young Padawan

  • Members
  • Pip
  • 9 posts

Posted 31 May 2009 - 05:00 PM

OK here is my problem.

I'm working on a new site and I've came across a problem with firefox (it loads how I want it in IE), I am a personal fan of firefox but can't understand why this is happening.

OK... so basically this is what I have:

(Note... this isnt my full code just the part im having a problem with lol)

<div id="wrapper">
  <div id="right">STUFF</div>
  <div id="left">Main PAGE</div
</div>

#wrapper {
width: 900px;
}

#right {
float: right;
width: 200px;
}

#left {
width: 700px;
}

OK this works just fine...... but if the "right" box ends up being longer than the "left" one (which it does at certain points) then the wrapper box sticks to the height of the "left" box and the "right" box overflows. This only happens in Firefox and I'm wondering if there's any solutions. Maybe even if there's some advise on how I can make this work better?

Oh.. and i have tried adding an [overflow: inherit] thing to the wrapper and that doesn't fix it.

Edited by ReZTeR, 31 May 2009 - 05:18 PM.


#2 rc69

    PHP Master PD

  • P2L Staff
  • PipPipPipPip
  • 3,827 posts
  • Gender:Male
  • Location:Here
  • Interests:Web Development

Posted 31 May 2009 - 10:48 PM

My usual fix:
<div id="wrapper">
	<div id="right">STUFF</div>
	<div id="left">Main PAGE</div>

	<div style="clear:both;"></div>
</div>
Which version of IE are you running? The "problem" should occur in IE as well.

#3 ReZTeR

    Young Padawan

  • Members
  • Pip
  • 9 posts

Posted 01 June 2009 - 12:08 PM

Thanks a lot dude, seems so simple now that I know lol.

#4 derek.sullivan

    Jedi In Training

  • Members
  • PipPip
  • 341 posts
  • Gender:Male
  • Location:Georgia
  • Interests:preaching, programming, music, friends, outdoors, moves, books

Posted 02 June 2009 - 12:00 AM

I know sometimes for me if I don't place a specific <!DOCTYPE>, it'll work for one browser rather than the other. Make sure you include a <!DOCTYPE> at the header of your html file, see if it helps any.

http://www.w3.org/QA...d-dtd-list.html





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users