Re: [css-d] First-Child

2014-09-27 Thread MiB
sep 26 2014 23:33 Rick Gordon : > A useful additional angle on this is that if include some JavaScript to add a > class to , for example, a class called "owner" when you are logged in, > then you can have all that debugging stuff only seen by yourself. (WordPress > sites, or other sites where

Re: [css-d] First-Child

2014-09-26 Thread Rick Gordon
A useful additional angle on this is that if include some JavaScript to add a class to , for example, a class called "owner" when you are logged in, then you can have all that debugging stuff only seen by yourself. (WordPress sites, or other sites where you can be logged in, lend themselves to

Re: [css-d] First-Child

2014-09-26 Thread Karl DeSaulniers
Beautiful solution! Best, Karl Sent from losPhone > On Sep 26, 2014, at 9:00 AM, Philippe Wittenbergh wrote: > > Very quick debug tip: > :first-child { outline: 1px dotted lime; } __ css-discuss [css-d@lists.css-discuss.org] h

Re: [css-d] First-Child

2014-09-26 Thread MiB
sep 26 2014 15:36 Crest Christopher : > And are there any tools that aid in helping you know what is the first child, > decedent children for FireFox or Chrome, as a helper tool in the beginning ? I don’t know any that can do that specifically, but I’d imagine a javascript plugin could yield i

Re: [css-d] First-Child

2014-09-26 Thread MiB
sep 26 2014 15:36 Crest Christopher : > Hi, I've been understanding the pseudo-class elements, I like their > functionality. I have a question, here is an code example > , which is the first-child ? > > And are there any tools that aid in helping

Re: [css-d] First-Child

2014-09-26 Thread Ms2ger
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 09/26/2014 06:27 PM, Tim Climis wrote: > Two colons are for pseudo elements. One colon is for pseudo > classes. However, I believe that one colon always works because > there wasn't a distinction until CSS3. For the record, this only applies to th

Re: [css-d] First-Child

2014-09-26 Thread Tim Climis
ssage- From: css-d-boun...@lists.css-discuss.org [mailto:css-d-boun...@lists.css-discuss.org] On Behalf Of Crest Christopher Sent: Friday, September 26, 2014 12:04 PM To: Philip Taylor Cc: CSS Discuss Subject: Re: [css-d] First-Child Is there a time to use two colons and is there a time to use one

Re: [css-d] First-Child

2014-09-26 Thread Crest Christopher
Is there a time to use two colons and is there a time to use one colon ? Philip Taylor wrote: Crest Christopher wrote: Here. Right, so I see two intended "first-child" rules there : ::first-child {ouline:1px dotted lime;} #t3 p::first-child{color:red;} Th

Re: [css-d] First-Child

2014-09-26 Thread Philip Taylor
Crest Christopher wrote: > Here . Right, so I see two intended "first-child" rules there : > ::first-child {ouline:1px dotted lime;} > #t3 p::first-child{color:red;} The first appears to be generic and targets all elements that are first children of their pare

Re: [css-d] First-Child

2014-09-26 Thread Tom Livingston
Like Philip asked, first child of what? <-- first-child of UL <-- first-child of div <-- first-child of aside etc. On Fri, Sep 26, 2014 at 10:04 AM, Crest Christopher wrote: > ::First-child of the , not of the div#t3, news to me. You can't have > ::first-child of the div#t3, it

Re: [css-d] First-Child

2014-09-26 Thread Darren Brierton
There's a simple syntax error in your jsfiddle. Just change the double-colon ("::") to a single colon (":") and I think you will get the result you were expecting. On 26 Sep 2014, at 16:05, Crest Christopher wrote: > Here . > > Philip Taylor wrote: >> Crest

Re: [css-d] First-Child

2014-09-26 Thread Crest Christopher
Here . Philip Taylor wrote: Crest Christopher wrote: The first child of my example which I linked to ! Philip Taylor wrote: Which is the first child of /what/ ? It is necessary to select an element before it is possible to meaningfully use the term "first-

Re: [css-d] First-Child

2014-09-26 Thread Crest Christopher
::First-child of the , not of the div#t3, news to me. You can't have ::first-child of the div#t3, it is always of the ? ::first-child {outline dotted lime;} didn't display ? Philippe Wittenbergh wrote: Le 26 sept. 2014 à 22:36, Crest Christopher a écrit : Hi, I've been understanding the

Re: [css-d] First-Child

2014-09-26 Thread Philip Taylor
Crest Christopher wrote: > The first child of my example which I linked to ! > > Philip Taylor wrote: >> Which is the first child of /what/ ? It is necessary to select an >> element before it is possible to meaningfully use the term "first-child". Sorry, Christopher, not interested in playin

Re: [css-d] First-Child

2014-09-26 Thread Philippe Wittenbergh
Le 26 sept. 2014 à 22:36, Crest Christopher a écrit : > Hi, I've been understanding the pseudo-class elements, I like their > functionality. I have a question, here is an code example > , which is the first-child ? div#t3 is the first-child of

Re: [css-d] First-Child

2014-09-26 Thread Crest Christopher
I looked at examples online. Everyone writes HTML slightly differently, examples help to understand, but there is nothing better then, IMO breaking down your own mark-up. Why I presented an example ! Chris Rockwell wrote: I can't look at the example now, but there are endless examples avai

Re: [css-d] First-Child

2014-09-26 Thread Chris Rockwell
I can't look at the example now, but there are endless examples available, try MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/:first-child On Sep 26, 2014 9:40 AM, "Crest Christopher" wrote: > The first child of my example, I linked too. > > Philip Taylor wrote: > >> >> Crest Christopher w

Re: [css-d] First-Child

2014-09-26 Thread Crest Christopher
The first child of my example, I linked too. Philip Taylor wrote: Crest Christopher wrote: Hi, I've been understanding the pseudo-class elements, I like their functionality. I have a question, here is an code example , which is the first-child ?

Re: [css-d] First-Child

2014-09-26 Thread Philip Taylor
Crest Christopher wrote: > Hi, I've been understanding the pseudo-class elements, I like their > functionality. I have a question, here is an code example > , which is the first-child ? Which is the first child of /what/ ? It is necessary to sel

[css-d] First-Child

2014-09-26 Thread Crest Christopher
Hi, I've been understanding the pseudo-class elements, I like their functionality. I have a question, here is an code example , which is the first-child ? And are there any tools that aid in helping you know what is the first child, decedent chil

Re: [css-d] first-child pseudo-class on a class-level

2010-12-06 Thread Philippe Wittenbergh
On Dec 7, 2010, at 2:48 AM, Dave Solko wrote: >> Given the document structure above, maybe .description + .leading { >> background: red } ? > > > Then perhaps I should rephrase the question. Is there any way, given the > existing HTML to address the first independently of the > others? (in

Re: [css-d] first-child pseudo-class on a class-level

2010-12-06 Thread Dave Solko
On Dec 5, 2010, at 11:18 PM, Philippe Wittenbergh wrote: On Dec 6, 2010, at 12:59 PM, Dave Solko wrote: I'm trying to apply :first-child to an element with a class. It only needs to work in safari (intranet). I'm using Joomla, so changing the html isn't really an option. Can it be done?

Re: [css-d] first-child pseudo-class on a class-level

2010-12-05 Thread Philippe Wittenbergh
On Dec 6, 2010, at 12:59 PM, Dave Solko wrote: > I'm trying to apply :first-child to an element with a class. It only needs to > work in safari (intranet). I'm using Joomla, so changing the html isn't > really an option. Can it be done? > > I've been trying variations on: > .leading:first-chil

[css-d] first-child pseudo-class on a class-level

2010-12-05 Thread Dave Solko
I'm trying to apply :first-child to an element with a class. It only needs to work in safari (intranet). I'm using Joomla, so changing the html isn't really an option. Can it be done? I've been trying variations on: .leading:first-child { border-top: 1px solid #ccc; border-top-left-radius: 8p

Re: [css-d] first-child and + selector issues

2009-08-13 Thread Vincent Pollard
st 12, 2009 8:07 PM To: css-d@lists.css-discuss.org Subject: Re: [css-d] first-child and + selector issues On 13/08/2009, at 9:24 AM, Vincent Pollard wrote: > I'm having a lot of trouble getting a couple of lines of css to work > in > IE8. > > It works in Firefox but not

Re: [css-d] first-child and + selector issues

2009-08-12 Thread Tim Snadden
On 13/08/2009, at 9:24 AM, Vincent Pollard wrote: > I'm having a lot of trouble getting a couple of lines of css to work > in > IE8. > > It works in Firefox but not IE8. Any ideas why? Is it the doctype? IE8 > bug? Some error I've overlooked? > > > > Here's the site: http://tinyurl.com/lo468u <

[css-d] first-child and + selector issues

2009-08-12 Thread Vincent Pollard
I'm having a lot of trouble getting a couple of lines of css to work in IE8. It works in Firefox but not IE8. Any ideas why? Is it the doctype? IE8 bug? Some error I've overlooked? Here's the site: http://tinyurl.com/lo468u Here's the css for this: ..boxes

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

2009-06-06 Thread Rob Emenecker
> You are way over my head, Rob. But given what you state is a > given case, then the solution may well lie within a problem > solving language-- programming? Hi David, Actually, if you see my other reply (to Tim Snadden). The way I had structured the selector was incorrect. The selector of..

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 > * {