From HTML to CSS
Tom Gilder: “I did this in HTML, how do I do it in CSS?”. A collection of tips for replicating visual formatting effects in old-style HTML with their CSS equivalents. A good resource for people just getting started with CSS.
Tom Gilder: “I did this in HTML, how do I do it in CSS?”. A collection of tips for replicating visual formatting effects in old-style HTML with their CSS equivalents. A good resource for people just getting started with CSS.
Previously hosted at http://simon.incutio.com/archive/2003/06/01/htmlToCss
Sam - 1st June 2003 16:48 - #
Sam - 1st June 2003 16:49 - #
I think that's the fifth complaint I've had about comments being lost this week - it's not intentiaonal, it's just crummy design on my part. I'll try and fix that tonight (and add a preview option while I'm at it).
As to your columns question, I think I know what the problem is and I'll endeavour to answer it soon - unfortunately it requires a bit more detail than I have time to give right now (revision constraints).
Simon Willison - 1st June 2003 17:18 - #
a - 1st June 2003 21:18 - #
Someone found it :D
My motive for doing those was me getting really bored of people on IRC asking me "how do you do X with CSS", so I thought I'd write them up. I might tart the pages up at some point if anyone likes them :)
Tom Gilder - 2nd June 2003 00:46 - #
Sam -- in lieu of being able to find contact info on your site (and not trying to pre-empt Simon, who may well come up with a more elegant or accurate solution), posting here:
It took me a little while to figure out how exactly your pages are laid out (had to resort to the DOM inspector, actually), but I think you can solve most of your problems by setting
margin-righton.articlecontainerto the width of#rightcontent. What you're seeing is the expected behavior of the float; when the left is a longer column than the right, it wraps under the bottom of the right. Set its right margin to the width of teh right column and it'll be forced to stay in its own "area" of the page.James - 2nd June 2003 03:17 - #
Sam - 2nd June 2003 04:39 - #
Hi Sam...
In order to solve your article page problem, you just need to insert some block-level element, with a
style="clear: both;".I think you're wanting something like this.
PS: I might get round to updating my blog entry form at some point. I'll let you know when I do!
Andrew Hayward - 2nd June 2003 10:37 - #
Sam - 2nd June 2003 14:09 - #
Err... ok...
No promises, but I've modified the page changes a little. Works fine for me, but I'm with Mozilla 1.3/Windows, so could be rather different.
(Sorry for taking your comments in an odd direction, Simon!)
Andrew Hayward - 2nd June 2003 14:29 - #
Sam - 2nd June 2003 16:26 - #
kirkaracha - 2nd June 2003 17:18 - #