View Single Post
Old 13-05-2003, 10:54   #16 (permalink)
Bill Posters
trouble free and loverlee
 
Join Date: Mar 2003
Location: YooKay
Posts: 2,935
[quote:c738be1e3f="smallbeer"][quote:c738be1e3f="Bill Posters"]
The spacer class that you are using to [i:c738be1e3f]clear: both[/i:c738be1e3f] can (read: should) be integrated into the preceding div and can be done with a little judicial reallocation of ids, tag selectors and classes.
[/quote:c738be1e3f]

You couldn't explain that a bit more could you please?[/quote:c738be1e3f]

I just meant that because you use '.spacer' as a class, you can't simply add it to the preceding div if it already has a class assigned to it as it may conflict with another attribute within that class.
It might just be a simple matter of copying the [i:c738be1e3f]clear: both[/i:c738be1e3f] attribute into any existing declarations assigned to the preceding div/element.
Without going through the code in more depth I wouldn't want to say that this alone would remove the need for spacer divs altogether.

I will say though, that a clear rethink from the start of how you want each element to behave will produce more efficient and effective code than using spacer divs to patch up the holes.

[quote:c738be1e3f]And any chance of a screen shot of that IEMac glitch?[/quote:c738be1e3f]

Sure.
(Shots at 50% actual pixel size.)

Your original markup:
[img:c738be1e3f]http://www.bposters.fsnet.co.uk/forum/designerstalk/smallbeer_orig.jpg[/img:c738be1e3f]

My reordered markup version:
[img:c738be1e3f]http://www.bposters.fsnet.co.uk/forum/designerstalk/smallbeer_altmarkup.jpg[/img:c738be1e3f]
  Reply With Quote