Paul Novitski wrote:
> 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.

Hi Paul,
It's not that simple because of the dark color I chose for the gutter. If
there is a lot of contrast between the two areas, then there is no safe
value for text-color.
It is because I'm aware of this choice that I warn users about the image not
showing up. My preference is to lose the numbers with images off rather than
"play safe" by reducing contrast. I decided against "mid-gray" and "white
and a pale gutter" from the start.

> 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.

Actually that's the way I had it to begin with, because then there is no
need for a wrapper :)
The challenge was to get these numbers appear over a background color and
stay in place on text-resizing.
I think I should make that clear in case people don't care about the solid
color, so they don't think they need to wrap the OL.

> 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.

FWIW, I prefers this :
selector,
selector,
selector {
stuff
}
to this:
selector,
selector,
selector
{
stuff
}

If I have a selector on a line by itself it has to be followed by a comma.

---
Regards,
Thierry | www.TJKDesign.com



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

Reply via email to