Re: [css-d] first-child pseudo-class not behaving as expected

2009-06-05 Thread David Laakso
Rob Emenecker wrote: >> /*div#content:first-child > * { margin-top: 0; } delete >> ruleset*/ >> > > >> /*div#sidebar:first-child > * { margin-top: 0; >> }delete ruleset*/ >> > > >> p {border: 1px solid red;margin: 0 0 15px >> 0;}/*add ruleset*/ >> > > David, > > That work

Re: [css-d] first-child pseudo-class not behaving as expected

2009-06-05 Thread Rob Emenecker
Thanks Tim, > div#sidebar p:first-child { margin-top: 0; } Somehow, somewhere I misread the an explanation of the specification and got the placement of the [:first-child] pseudo-element incorrect. The following does work in IE7+ and FF3: div#sidebar > *:first-child {margin-top: 0;} div#content

Re: [css-d] first-child pseudo-class not behaving as expected

2009-06-05 Thread Rob Emenecker
> /*div#content:first-child > * { margin-top: 0; } delete > ruleset*/ > /*div#sidebar:first-child > * { margin-top: 0; > }delete ruleset*/ > p {border: 1px solid red;margin: 0 0 15px > 0;}/*add ruleset*/ David, That works in the one example, but the purpose of me setting these the way I d

Re: [css-d] first-child pseudo-class not behaving as expected

2009-06-05 Thread David Laakso
Rob Emenecker wrote: > Hi all, > > I am trying to use the first-child pseudo-class to set a zero top margin in > several content divs on a page. > div#sidebar:first-child > * > {margin-top: 0;} > > > http://new.pasadenabusinessassociation.com > > Any suggestions? > /*div#content:first-chi

Re: [css-d] first-child pseudo-class not behaving as expected

2009-06-05 Thread Tim Snadden
On 6/06/2009, at 8:56 AM, Rob Emenecker wrote: > > div#sidebar:first-child > * > {margin-top: 0;} Hi Rob - you apply the :first-child pseudo class to the element you want to target, not the parent whose child you want to target. e.g. div#sidebar p:first-child { margin-top: 0; } However, for s

[css-d] first-child pseudo-class not behaving as expected

2009-06-05 Thread Rob Emenecker
Hi all, I am trying to use the first-child pseudo-class to set a zero top margin in several content divs on a page. The page works in IE7, but not FF3 -- kind of the opposite of what I would expect. In FF3 the sidebar has a single element in it, and a style of... div#sidebar:first-child > * {

Re: [css-d] What's your preference -- fluid, elastic, or fixed?

2009-06-05 Thread Felix Miata
On 2009/06/05 07:21 (GMT-0700) Glow composed: > one thing I wonder > about long-term with fluid layouts and increasing screen size is how > to scale content when you've got someone using a gigantic monitor (can > you visualize one-line articles stretching across three feet of screen > real estate?

Re: [css-d] What's your preference -- fluid, elastic, or fixed?

2009-06-05 Thread Bobby Jack
--- On Fri, 6/5/09, Glow wrote: > I hear what you're saying regarding fixed widths and wide screens > (like a postage stamp on a coffee table), but that said, one thing > I wonder about long-term with fluid layouts and increasing screen > size is how to scale content when you've got someone usin

Re: [css-d] What's your preference -- fluid, elastic, or fixed?

2009-06-05 Thread David Laakso
Chris Blake wrote: > > > The only thing that is holding me back from always working in fluid is > font-sizing. > > Anyone got any good guides, links? > > > cb > > Our friend of the list(s) Georg Sortun, has any number of layouts that are spins on the "negative-margin" concept. This part

Re: [css-d] What's your preference -- fluid, elastic, or fixed?

2009-06-05 Thread Glow
I think of "elastic" as being a hybrid of "fluid" and "fixed". I hear what you're saying regarding fixed widths and wide screens (like a postage stamp on a coffee table), but that said, one thing I wonder about long-term with fluid layouts and increasing screen size is how to scale content when yo

Re: [css-d] What's your preference -- fluid, elastic, or fixed?

2009-06-05 Thread David Laakso
Delos Woodruff wrote: >>> I'm not sure what distinction you make between "fluid" and >>> "elastic", so >>> > > > I just wanted to mention that I've seen elastic as widths defined by > ems, fluid by percents and fixed set by pixels. > > -Delos > > > So have I and sometimes use same. Th

Re: [css-d] Vertical Menu problem

2009-06-05 Thread John
Thanks to everyone for replying. Especially Yazmin for the styles, which solved the problem, and Mark for the explanation which has helped me greatly in understanding what was happening and may help with a few other quirks! John On Thursday 04 June 2009 22:58:20 Mark Henderson wrote: > On Beha

Re: [css-d] What's your preference -- fluid, elastic, or fixed?

2009-06-05 Thread Delos Woodruff
>> I'm not sure what distinction you make between "fluid" and >> "elastic", so I just wanted to mention that I've seen elastic as widths defined by ems, fluid by percents and fixed set by pixels. -Delos __ css-discuss [cs.

Re: [css-d] What's your preference -- fluid, elastic, or fixed?

2009-06-05 Thread Chris Blake
On 05/06/2009, at 6:32 PM, Dave Sherohman wrote: > On Fri, Jun 05, 2009 at 12:05:35AM -0700, Glow wrote: >> I normally work with fixed layouts because I find that I have more >> control over the ultimate appearance of the design. But lately I'm >> becoming more interested in fluid or elastic l

Re: [css-d] What's your preference -- fluid, elastic, or fixed?

2009-06-05 Thread Dave Sherohman
On Fri, Jun 05, 2009 at 12:05:35AM -0700, Glow wrote: > I normally work with fixed layouts because I find that I have more > control over the ultimate appearance of the design. But lately I'm > becoming more interested in fluid or elastic layouts because of their > greater accessibility. > > So,

Re: [css-d] Vertical Menu problem

2009-06-05 Thread Alan Gresley
Mark Henderson wrote: >> Is this a IE6 whitespace bug you referring to for ? > > Heh, no. It seems I was a little too cute for my own good. I meant IE > has a top padding of zero (the OP already knew Firefox had a top > padding), hence the difference. That's why a padding of 0 on the UL > seem

Re: [css-d] Vertical Menu problem

2009-06-05 Thread Mark Henderson
Alan Gresley wrote: >> The most notable difference occurs with >> lists - Safari and Gecko based browsers (e.g. Firefox) use padding-left >> while Internet Exploder uses margin-left to indent, >> > > All modern browser have padding-start for list, not padding-left since > this default (paddi

[css-d] What's your preference -- fluid, elastic, or fixed?

2009-06-05 Thread Glow
I normally work with fixed layouts because I find that I have more control over the ultimate appearance of the design. But lately I'm becoming more interested in fluid or elastic layouts because of their greater accessibility. So, just out of curiosity -- what's your particular preference and why