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
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
> /*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
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
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
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 > *
{
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?
--- 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
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
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
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
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
>> 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.
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
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,
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
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
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
18 matches
Mail list logo