At 1/25/2007 08:12 AM, Thierry Koblentz wrote:
http://www.tjkdesign.com/articles/how_to_style_a_code_listing.asp


You say, "With images off, the numbering would disappear because of lack of contrast between foreground and background color."

This problem wouldn't exist if you simply chose the foreground & background (image) colors more wisely. Pick a text color that works with or without the background -- either a mid-gray text that shows up well on both white and dark gutter, or a dark text that shows up well on both white and a pale gutter.

Consider also that the gutter, instead of having a background color at all, could simply be separated from the body of the listing with a vertical rule.
______________________________

If I may stray topiclogically, I've never been able to figure out why this style of bracketing has become standard and apparently so well-loved:

label {
        contents
}

I much prefer:

label
{
        contents
}

which appeals to my sense of order and symmetry. The label, be it an if-test or CSS selector, is on a line by itself, and both brackets lie in the same column, making the whole structure much easier for me to proofread and eyeball-search.

Suffice it to say that if I were to use a tool or script that pretty-printed CSS I'd want the option to place a carriage return before the opening bracket as well. (And ensure a space after the colons in CSS rules.) (And brew me a fair-trade espresso.)

Regards,

Paul
__________________________

Juniper Webcraft Ltd.
http://juniperwebcraft.com


*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
*******************************************************************

Reply via email to