Pete Cole's weblog.
Mutterings on things generally.
 


Subscribe to "Pete Cole's weblog." in Radio UserLand.

Click to see the XML version of this web page.

Click here to send an email to the editor of this weblog.


02 June 2003
 

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. [Simon Willison's Weblog]

Like so many examples of how to do things with style rather than (say) tables there is a requirement to specify widths on things; its the thing one doesn't know, the width of the text. So, you end up specifying a suitably (you hope) large value in em units. Your layout then goes phut if you add some more text that doesn't fit within the styled width - the style definition is dependent upon the content which is (surely) wrong. Style values can/should only be dependent upon content when the style is set via script.

 


posted at: 9:30:47 AM  


Click here to visit the Radio UserLand website. © Copyright 2003 Pete Cole.
Last update: 01/07/2003; 12:39:23.
June 2003
Sun Mon Tue Wed Thu Fri Sat
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30          
May   Jul