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-25 08:49 am (UTC)
From: [identity profile] undyingking.livejournal.com
This tutorial is how I learned how to do floats, and I still refer back to it for complicated situations. Strongly recommended!

Position absolute would be great if all users' windows were the same size, but sadly they aren't -- even less so in this modern age of smartphones and the like. You can end up with a real mess of overlapping content. Sticking to floats means that you can always make sure container sizes fall back to percentages.

Profile

venta: (Default)
venta

December 2025

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

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Jan. 14th, 2026 08:17 pm
Powered by Dreamwidth Studios