Keeping columns the same length

F

Fluxcore

I have a layout, 3 columns wide, using CSS with no tables. The center
column is much larger (longer) then the left and right. But I want the
the left and right to be as long as the middle, is there a way to do
this? Is it possible to inherit the middle columns length or something?
Thank you for your help.

Nicholas
 
R

Richard

Fluxcore said:
I have a layout, 3 columns wide, using CSS with no tables. The center
column is much larger (longer) then the left and right. But I want the
the left and right to be as long as the middle, is there a way to do
this? Is it possible to inherit the middle columns length or something?
Thank you for your help.


you could try
div.left, .middle, .right {width:100px; height100px; float:left;}
div.left {background:red;}
div.middle {background:white;}
div.right {background:blue;}

Works just fine for me.
 
L

Leif K-Brooks

Richard said:
you could try
div.left, .middle, .right {width:100px; height100px; float:left;}
div.left {background:red;}
div.middle {background:white;}
div.right {background:blue;}

Works just fine for me.

And will, as long as all three columns contain pixel content (images) of
less than 100x100px. If they contain anything larger, such as text or
larger images, your layout will break.
 
R

Richard

Richard said:
Fluxcore wrote:

you could try
div.left, .middle, .right {width:100px; height100px; float:left;}
div.left {background:red;}
div.middle {background:white;}
div.right {background:blue;}
Works just fine for me.

Ok so I have a minor typo in there. You know how to fix it.
 
D

David Dorward

Whitecrest said:
"This site is designed for and will look much better in a modern browser
such as Opera or Mozilla, but it is accessible to any browser or
Internet device."

It did not work on my browser at all.

It might be easier to work out why it doesn't work if you (a) State what
your browser is and (b) be more specific then 'did not work'.
 
R

Richard

And will, as long as all three columns contain pixel content (images) of
less than 100x100px. If they contain anything larger, such as text or
larger images, your layout will break.


To get around that, you make your divisions equal to what the largest one
is.
If you don't like that idea, create another division for the extra stuff
such as images.
 
W

Whitecrest

It might be easier to work out why it doesn't work if you (a) State what
your browser is and (b) be more specific then 'did not work'.

Nothing worked. I was viewing it in a specialty browser, made
specifically for color blind people with no hands or navel, and one
right foot.

My point is that there is NO meaningful code that is accessible in EVERY
BROWSER in the world.
 
B

brucie

Nothing worked. I was viewing it in a specialty browser, made
specifically for color blind people with no hands or navel, and one
right foot.

you should complain to the creator of your browser. you probably paid a
lot of money for your specialty browser and it doesn't even support html
that pre public beta versions of mosaic support.

of course it could be made a bit prettier, it is just a demo but i
didn't think it worthwhile to support the 10+ year old mommy of the
modern browser.
My point is that there is NO meaningful code that is accessible in EVERY
BROWSER in the world.

worst case is just plain text, its a reasonable argument that plain text
isn't accessible but it is still there for the visitor to make what
sense of it they can. but i'd be very surprised if a browser didn't at
least support a <p>
 
B

brucie

you should complain to the creator of your browser. you probably paid a
lot of money for your specialty browser and it doesn't even support html
that pre public beta versions of mosaic support.

of course it could be made a bit prettier, it is just a demo but i
didn't think it worthwhile to support the 10+ year old mommy of the
modern browser.

i forgot the screencap:

win mosaic 0.6b
http://moreshit.bruciesusenetshit.info/mosaic.png[7k]
 
S

Steve Pugh

Whitecrest said:
"This site is designed for and will look much better in a modern browser
such as Opera or Mozilla, but it is accessible to any browser or
Internet device."

It did not work on my browser at all.

Really? What browser is that? As far as I can tell it even works in
antiques like IE6 and NN4.

The page is just blocks of text separated into three semantics-free
<div>s. No links, no forms, no multimedia. So not much ther to
actually 'work'. How does it not work? Is the text not legible? Are
the divisions not divided?

In CSS-less browsers I see three blocks of text.
In browsers with some CSS support they gain coloured backgrounds.
In browsers with advanced CSS support they are arranged into three
columns.

Or put that into reverse and it seems like a good example of graceful
degradation.

The only thing I would question is the inclusion of the message you
quoted which isn't really needed and which might confuse some users
of older browsers.

Steve
 
B

brucie

The only thing I would question is the inclusion of the message you
quoted which isn't really needed and which might confuse some users
of older browsers.

the only reason i stuck it in was because i knew it would piss people
off. it worked!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,679
Members
48,796
Latest member
Greg L.

Latest Threads

Top