Numpty CSS question
Jan. 24th, 2011 09:44 pmApologies 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?
I have defined myself two nice <div>
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?
no subject
Date: 2011-01-25 08:49 am (UTC)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.