Forums / Templates, Stylesheets, Page Layout / <br class="clearBoth" />

<br class="clearBoth" />

Locked

Started by jeking on 28 Sep 2007, 8:41 PM · Views: 2,015

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
28 Sep 2007, 8:41 PM
#1
jeking avatar

jeking

Totally Zenned

Join Date:
Oct 2005
Location:
Chicago, IL USA
Posts:
1,592
Plugin Contributions:
0

<br class="clearBoth" />

What is the purpose of this line? I spent fat too much time trying to remove extra space and overlooked this line. I removed it but not sure of it's purpose.

Jim
Wheaton Website Services

28 Sep 2007, 9:25 PM
#2
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,729
Plugin Contributions:
0

Re: <br class="clearBoth" />

The main purpose is to prevent the IE Peek-A-Boo bug and act as a clearing element after floated elements.

If you are having space issues you can set the height to zero.

Please do not PM for support issues: a private solution doesn't benefit the community.

Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

28 Sep 2007, 9:41 PM
#3
jeking avatar

jeking

Totally Zenned

Join Date:
Oct 2005
Location:
Chicago, IL USA
Posts:
1,592
Plugin Contributions:
0

Re: <br class="clearBoth" />

Kim, thanks.

Can I use the code without the br element? That was putting an extra line between each attribute option. I tried height, margin, etc but removing this line was the only thing that worked.

Jim
Wheaton Website Services

28 Sep 2007, 9:46 PM
#4
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,729
Plugin Contributions:
0

Re: <br class="clearBoth" />

If things are working in both IE and FF without it you can remove it -

Please do not PM for support issues: a private solution doesn't benefit the community.

Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.