This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Stylesheets > November 2005 > (Yet Another) Multi-Column CSS Question





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author (Yet Another) Multi-Column CSS Question
Greg Heilers

2005-11-12, 10:18 pm


Once again, I am unsure about the solution to multi-column
layouts; and compensating for browser quirks. Here is an
example:

http://geocities.com/greg_heilers/animals.html

I basically use a "5-column layout" to create the checkerboard
pattern in the header - each column being 20% width. Fine -
it renders wonderfully in Opera, Mozilla, and Firefox. (In
Konqueror, it mysteriously *adds* a bit of white-space to the
right-margin - but no big deal.)

However (surprise...surprise) it fails in I.E. - the last column
wrapping; and appearing below the intended "5x3" checkerboard box.
I even tinkered and made each column {width:19.9%}; but while
it eventually would work adequately in I.E.; it naturally left
unsightly right-margin gaps in the "properly-behaving" browsers.

Is there a practical solution to this annoying problem?

( I apologize in advance for the banner ads appearing on the
sample code; as well as the possible slow loading of the images.)


--

Greg Heilers
Registered Linux user #328317 - SlackWare 10.1 (2.6.10)
.....

Homer: Boy, you don't have to follow in my footsteps.

Bart: Don't worry, I don't even like using the bathroom after you.

Homer: Why you little -- !

Like Father Like Clown

Martin Eyles

2005-11-15, 7:21 pm

"Greg Heilers" <gNOSPAMheilers@earthNOSPAMlink.net> wrote in message
news:0fwdf.925$s14.419@newsread2.news.pas.earthlink.net...
>
> However (surprise...surprise) it fails in I.E. - the last column
> wrapping; and appearing below the intended "5x3" checkerboard box.
> I even tinkered and made each column {width:19.9%}; but while
> it eventually would work adequately in I.E.; it naturally left
> unsightly right-margin gaps in the "properly-behaving" browsers.


Make sure you specify {border:0; margin:0; padding:0}, as the defaults in
different browsers will be different!

--
Martin Eyles
martin.eyles@NOSPAM.bytronic.com


Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews