venta: (Default)
[personal profile] venta
Apologies for any stupidity of question... me and CSS still don't get on.

I have defined myself two nice <div> elephants elements, each of which will take up about half the screen.

Now I just need to persuade my stylesheet to help me put them next to each other rather than one below the other.

The ideal answer will not involve tables :) Does anyone know what I should be looking at doing?

Date: 2011-01-24 10:18 pm (UTC)
triskellian: (css)
From: [personal profile] triskellian
Don't use tables :-)

Short answer: use float.

Long answer: if you want to do something more cunning (having both columns the same height regardless of their content, for example), you could do worse than look at these CSS layout templates.

Date: 2011-01-24 10:23 pm (UTC)
From: [identity profile] venta.livejournal.com
Truly, you are a marvel among women! Your prize is knowledge that there is one very very slightly less painful website in the world :)

Thanks very much - it seems to be Just Working surprisingly nicely!

Date: 2011-01-24 11:36 pm (UTC)
From: [identity profile] feanelwa.livejournal.com
Have you tried to make it work in IE yet?

Date: 2011-01-24 11:53 pm (UTC)
From: [identity profile] venta.livejournal.com
It seems to work in IE.

It initially did not (I had totally forgotten to check until you reminded me, thank you) but that turned out to be valid behaviour on IE's part. FF was being a lot more tolerant of a missing > and doing what I meant; IE did what I said (unusually).

Profile

venta: (Default)
venta

December 2025

S M T W T F S
 123456
78910111213
14151617181920
212223 24252627
28293031   

Most Popular Tags

Page Summary

Style Credit

Expand Cut Tags

No cut tags
Page generated Jan. 10th, 2026 10:23 pm
Powered by Dreamwidth Studios