6
JMorris
Re: style="clear: both; & FireFox problems
  • 2006/11/21 3:12

  • JMorris

  • XOOPS is my life!

  • Posts: 2722

  • Since: 2004/4/11


rabideau,

Instead of using clear:both; you may want to try display:block;. I've run into the situation you've described befor and display:block; fixed me right up.

HTH.

James
Insanity can be defined as "doing the same thing over and over and expecting different results."

Stupidity is not a crime. Therefore, you are free to go.

5
rabideau
Re: style="clear: both; & FireFox problems
  • 2006/11/20 21:48

  • rabideau

  • Home away from home

  • Posts: 1042

  • Since: 2003/4/25


I tried creating containers and putting it both in and outside of the container... I get the same thing either way

I'm trying to do this theme without tables... I guess I'll be forced to surrender soon!

The html in question follows:

<!--- middle (main content) column begin -->

<{if $xoops_showcblock == 1}>
<p>
<!-- Start center-left blocks loop -->
<{foreach item=block from=$xoops_clblocks}>
<fieldset class="centerLcolumn">
<legend class="blockTitle"><strong><{$block.title}></strong></legend>
<div class="blockContent"><{$block.content}></div>
</fieldset>
<{/foreach}>
<!-- End center-left blocks loop -->

<!-- Start center-right blocks loop -->
<{foreach item=block from=$xoops_crblocks}>
<fieldset class="centerRcolumn">
<legend class="blockTitle"><strong><{$block.title}></strong></legend>
<div class="blockContent"><{$block.content}></div>
</fieldset>
<{/foreach}>
<!-- End center-right blocks loop -->

</p><div class="clear">&nbsp;</div>
<!-- Start center-center-top blocks loop -->
<{foreach item=block from=$xoops_ccblocks}>
<fieldset class="centerCcolumn" colspan="2">
<legend class="blockTitle"><strong><{$block.title}></strong></legend>
<div class="blockContent"><{$block.content}></div>
</fieldset>
<{/foreach}>
<!-- End center-center-top blocks loop -->

<div class="clear">&nbsp;</div>

<!-- End centercolumn -->

<{/if}> <!-- End display center blocks -->

<div id="content"><{$xoops_contents}></div>

<{if $xoBlocks.page_bottomleft or $xoBlocks.page_bottomright or $xoBlocks.page_bottomcenter}>


<{if $xoBlocks.page_bottomcenter}>
<!-- Start center-center-bottom blocks loop -->
<{foreach from=$xoBlocks.page_bottomcenter item=block}>
<fieldset class="centerCcolumn">
<legend class="blockTitle"><strong><{$block.title}></strong></legend>
<div class="blockContent"><{$block.content}></div>
</fieldset>
<{/foreach}>
<!-- End center-center-bottom blocks loop -->
<{/if}>

<{if $xoBlocks.page_bottomleft}>
<!-- Start center-left-bottom blocks loop -->
<{foreach from=$xoBlocks.page_bottomleft item=block}>
<fieldset class="centerLcolumn">
<legend class="blockTitle"><strong><{$block.title}></strong></legend>
<div class="blockContent"><{$block.content}></div>
</fieldset>
<{/foreach}>
<!-- End center-left-bottom blocks loop -->
<{/if}>

<{if $xoBlocks.page_bottomright}>
<!-- Start center-right-bottom blocks loop -->
<{foreach from=$xoBlocks.page_bottomright item=block}>
<fieldset class="centerRcolumn">
<legend class="blockTitle"><strong><{$block.title}></strong></legend>
<div class="blockContent"><{$block.content}></div>
</fieldset>
<{/foreach}>
<!-- End center-right-bottom blocks loop -->
<{/if}>

<div class="clear">&nbsp;</div>

<{/if}>

<!--- middle (main content) column end -->
Pax vobiscum,
...mark

may the road rise to meet your feet!

http://treemagic.org

4
m0nty
Re: style="clear: both; & FireFox problems
  • 2006/11/20 21:31

  • m0nty

  • XOOPS is my life!

  • Posts: 3337

  • Since: 2003/10/24


without seeing the rest of the relevant html, i dunno..

i'm not a css guru..

are you adding the clear class inside the container or after it?

also i just found this which might be of some use >

http://www.positioniseverything.net/easyclearing.html

3
rabideau
Re: style="clear: both; & FireFox problems
  • 2006/11/20 21:21

  • rabideau

  • Home away from home

  • Posts: 1042

  • Since: 2003/4/25


Hi m0nty,

Thank you for the pointer... unfortunately I still have the same problem?????

I added your <div class="clear">&nbsp;</div> to the theme.html and still arrrggghhhh.

Any other suggesions???
Pax vobiscum,
...mark

may the road rise to meet your feet!

http://treemagic.org

2
m0nty
Re: style="clear: both; & FireFox problems
  • 2006/11/20 21:02

  • m0nty

  • XOOPS is my life!

  • Posts: 3337

  • Since: 2003/10/24


<div style="clear: both;">&nbsp;</div>


doesn't invoke that .clear css class it's a style setting itself..

<div class="clear">&nbsp;</div>


would use the css class .clear

1
rabideau
style="clear: both; & FireFox problems
  • 2006/11/20 20:58

  • rabideau

  • Home away from home

  • Posts: 1042

  • Since: 2003/4/25


Hello all,

I am having a frustration with FireFox not being able to clear floating blocks correctly(?). I have the following css code:
.clear {
clear: both;
padding-bottom: 1px; /* for Gecko-based browsers */
margin-bottom: -1px; /* for Gecko-based browsers */
}

Which is invoked by the following code in my theme.html:
<div style="clear: both;">&nbsp;</div>

I've tried numerous methods of invoking the clear command, none work correctly in FireFox, almost anything works in IE. You may see the error at:

http://processteam.org (you'll need both IE & Firefox... duh.)

Any help is most appreciated!
Pax vobiscum,
...mark

may the road rise to meet your feet!

http://treemagic.org

Login

Who's Online

239 user(s) are online (144 user(s) are browsing Support Forums)


Members: 0


Guests: 239


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits