Web Design Forum: Float problem with Firefox - Web Design Forum

Jump to content

WDF
WDF Premium Memberships Reseller Hosting
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Float problem with Firefox

#1 User is offline   Vicky 

  • Forum Newcomer
  • Pip
  • Group: Members
  • Posts: 32
  • Joined: 05-September 07
  • Reputation: 0
  • Experience:Intermediate
  • Area of Expertise:Web Designer

Posted 11 October 2007 - 03:43 PM

Hi, this is another really basic question. The answer must be staring me in the face, and although I've been convinced I've missed closing a <div> or a made an error in my css, I just can't find it.

I have been working on a page which just requires a very simple float for the left hand column. It works in IE, but in Firefox the column is indented. Removing the column means that the rest of the page layout is fine (it's just missing the column). So I'm totally flummoxed. The relevant css is:

#left {
float:left;
width: 273px;
background:url(../images/left_bk.gif) no-repeat;
margin: 73px 0 0 0;
padding:10px 9px 0 9px;
}

The page is here: http://www.azuremark.../web/about1.php

I would be so grateful if anyone was able to spot where i may have gone wrong - it's driving me nuts!

Many thanks

Vicky
0

#2 User is offline   Thomas Thomassen 

  • HTTP 503
  • PipPipPipPipPip
  • Group: Members
  • Posts: 2,254
  • Joined: 30-April 07
  • Reputation: 10
  • Gender:Male
  • Location:Trondheim, Norway
  • Experience:Advanced
  • Area of Expertise:Designer/Coder

Posted 11 October 2007 - 04:28 PM

Firefox renders the same as Opera and Safari.

I'm guessing you're relying on some quirky IE behaviour. That's why I always test IE last and use conditional comments to correct it.
IE might have the biggest market share, but that doesn't help when you want to make a cross browser design. Then you need to code for the majority of browsers that renders to the specs.
0

#3 User is offline   Vicky 

  • Forum Newcomer
  • Pip
  • Group: Members
  • Posts: 32
  • Joined: 05-September 07
  • Reputation: 0
  • Experience:Intermediate
  • Area of Expertise:Web Designer

Posted 11 October 2007 - 04:34 PM

THanks Thomas. Ironically, I was designing for Firefox, but it's just that I also checked it in IE. I haven't added any quirks to make it perform better in IE - it should just be a simple column, but I've clearly just missed something and I can't spot what. I've played around with so many different variations - removing margins etc, but none of them make any difference and I'm really stumped.

Thanks for taking a look anyway.

All the best

Vicky
0

#4 User is offline   Dizi 

  • Queen of the Spammers
  • PipPipPipPipPipPip
  • View gallery
  • Group: Members
  • Posts: 5,639
  • Joined: 13-August 07
  • Reputation: 156
  • Gender:Female
  • Location:Newcastle, UK
  • Experience:Advanced
  • Area of Expertise:Web Designer

Posted 11 October 2007 - 04:41 PM

clear:both;


add that into your #left, that will fix the problem. From what I can tell it is because of the header and using this tag will help solve the problem :)
0

#5 User is offline   Dizi 

  • Queen of the Spammers
  • PipPipPipPipPipPip
  • View gallery
  • Group: Members
  • Posts: 5,639
  • Joined: 13-August 07
  • Reputation: 156
  • Gender:Female
  • Location:Newcastle, UK
  • Experience:Advanced
  • Area of Expertise:Web Designer

Posted 11 October 2007 - 04:43 PM

although I haven't had much experience with clear so I don't know if you can do that...

maybe you have to do

<div style="clear:both;"></div> just under the header. Either way I'm sure someone will correct me :p
0

#6 User is offline   Ben 

  • Web Designer Forum Admin
  • View gallery
  • Group: Root Admin
  • Posts: 2,839
  • Joined: 24-August 06
  • Reputation: 100
  • Gender:Male
  • Location:Essex, UK
  • Experience:Intermediate
  • Area of Expertise:Web Designer

Posted 11 October 2007 - 05:33 PM

View PostDizi, on Oct 11 2007, 05:43 PM, said:

although I haven't had much experience with clear so I don't know if you can do that...

maybe you have to do

<div style="clear:both;"></div> just under the header. Either way I'm sure someone will correct me :p


Your absolutely right Dizi! That would certainly do it. :)

Your too modest.... :)
0

#7 User is offline   Vicky 

  • Forum Newcomer
  • Pip
  • Group: Members
  • Posts: 32
  • Joined: 05-September 07
  • Reputation: 0
  • Experience:Intermediate
  • Area of Expertise:Web Designer

Posted 12 October 2007 - 03:00 PM

Dizi - you're a superstar - that fixed it! Thanks so much - don't know why I didn't think of trying it. You've made my day!

Many thanks to everyone else who took a look as well.

All the best

Vicky
0

#8 User is offline   EggMan 

  • EggPornstar
  • PipPipPipPipPip
  • Group: Members
  • Posts: 1,201
  • Joined: 16-August 07
  • Reputation: 0
  • Location:UK
  • Experience:Advanced
  • Area of Expertise:SEO

Posted 13 October 2007 - 12:21 AM

i cant tell you how many times i've been tearing my hair out and dizi has come along and waved her wand just like that for me :D
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users