Re: [css-d] A simple question - h1 before p

2009-07-09 Thread Rob Emenecker
Anyway, I now know another concept on css: Adjacent Sibling Selector. And I believe there is a Child and a Parent selector too. I will investigate when the need arrive. These will not work in IE6 either. Your safest route is probably to follow Brian's suggestion and define a class that you

Re: [css-d] A simple question - h1 before p

2009-07-09 Thread MEM
These will not work in IE6 either. Your safest route is probably to follow Brian's suggestion and define a class that you can apply. No worries, I'm using a class. :) Thanks for the suggestions. Regards, Márcio __

Re: [css-d] A simple question - h1 before p

2009-07-09 Thread Gabriele Romanato
what's the point?see http://www.jquery.com and you won't need a class anymore ^^/ 2009/7/9 MEM tal...@gmail.com These will not work in IE6 either. Your safest route is probably to follow Brian's suggestion and define a class that you can apply. No worries, I'm using a class. :)

Re: [css-d] A simple question - h1 before p

2009-07-09 Thread MEM
what's the point? see http://www.jquery.com and you won't need a class anymore ^^/ And so I asked: How can I clean this little dot on my car left mirror; And so they reply: Here, take this Airplane - dot free!; ;) Thanks for the tip. Unfortunately, learning a framework it's out of reach for

Re: [css-d] A simple question - h1 before p

2009-07-09 Thread Rob Emenecker
what's the point?see http://www.jquery.com and you won't need a class anymore ^^/ The point, in the original question, was to get this *basic* display aspect handled without resorting to scripting tactics. Rob Emenecker @ Hairy Dog Digital

Re: [css-d] A simple question - h1 before p

2009-07-09 Thread Nick Fitzsimons
2009/7/9 Gabriele Romanato gabriele.roman...@gmail.com: what's the point?see http://www.jquery.com and you won't need a class anymore ^^/ Oh dear :-( It's bad enough that every single JavaScript question on StackOverflow.com gets answered with use jQuery (even when it's wildly

Re: [css-d] A simple question - h1 before p

2009-07-09 Thread Jukka K. Korpela
MEM wrote: All h1 that are followed by a p will have a padding-bottom of X. Is this possible? As the discussion has shown, the practical way is to use a class. On the other hand, normally a page should have one h1 element (one highest-level heading) only, so I don't quite see why you can't

Re: [css-d] A simple question - h1 before p

2009-07-09 Thread Rob Emenecker
As the discussion has shown, the practical way is to use a class. On the other hand, normally a page should have one h1 element (one highest-level heading) only, so I don't quite see why you can't just use the selector h1. That is true. I don't usually have more than a single h1 on a

Re: [css-d] A simple question - h1 before p

2009-07-09 Thread MEM
To create spacing between a heading and a paragraph, it is normally best to use margin, because one day you might want to set background color for the heading, and then it would extend to the padding. Thanks a lot, precious information! As the discussion has shown, the practical way

Re: [css-d] A simple question - h1 before p

2009-07-09 Thread MEM
It's not so much a rule as a convention. H1 is a top-level heading, and the theory goes that there should only be one top, and thus one top-level heading. ... We all agree that markup should be semantic, but sometimes that's somewhat subjective. Despite some web creators believes, isn't

Re: [css-d] A simple question - h1 before p

2009-07-09 Thread Climis, Tim
I didn't know that we should only use one h1 per page. Why is that ? It's not so much a rule as a convention. H1 is a top-level heading, and the theory goes that there should only be one top, and thus one top-level heading. Recently, I've decided that that logic isn't necessarily true. On

Re: [css-d] A simple question - h1 before p

2009-07-09 Thread David Hucklesby
Gabriele Romanato wrote: what's the point?see http://www.jquery.com and you won't need a class anymore ^^/ 2009/7/9 MEM tal...@gmail.com These will not work in IE6 either. Your safest route is probably to follow Brian's suggestion and define a class that you can apply. No worries,

[css-d] A simple question - h1 before p

2009-07-08 Thread MEM
Hello, Without .js, is there a way to establish a rule in CSS that says: All h1 that are followed by a p will have a padding-bottom of X. Is this possible? Thanks a lot, Márcio __ css-discuss [cs...@lists.css-discuss.org]

Re: [css-d] A simple question - h1 before p

2009-07-08 Thread Erik Vorhes
On Wed, Jul 8, 2009 at 3:20 PM, MEMtal...@gmail.com wrote: All h1 that are followed by a p will have a padding-bottom of X. Is this possible? No, but you could apply the reverse: h1 + p { padding-top: 3em; } So instead of any h1 that precedes a p you're styling any p that immediately

Re: [css-d] A simple question - h1 before p

2009-07-08 Thread Brian Hazelton
MEM wrote: Hello, Without .js, is there a way to establish a rule in CSS that says: All h1 that are followed by a p will have a padding-bottom of X. Is this possible? Thanks a lot, Márcio __ css-discuss

Re: [css-d] A simple question - h1 before p

2009-07-08 Thread MEM
No, but you could apply the reverse: h1 + p { padding-top: 3em; } So instead of any h1 that precedes a p you're styling any p that immediately follows an h1. (Note, this doesn't work for IE6. And for it to work properly in IE7, you'll want to make sure that you never have a comment