@hendrix940, in that case that you provided the selector would be h2.date-header span
If you're trying to target a specific h2 within a div, and the h2 doesn't have a specific class like the .date-header in your example, you could pick it with the :nth-child selector.. http://codepen.io/ChrisPlz/pen/psfdD
Okay, there it is @chrisp thank you very much for your help. I'm trying to get the date 'MONDAY, FEB 4, 2013' to align LEFT. ... AND i've already targeted the H2 tag to align RIGHT ... so I need to specifically target the H2 within class 'DATE-HEADER'
I'm trying to target a specific H2 tag that's within a DIV, how do I do it?
is this correct?
.divname h2 { }
@hendrix940, that targets all h2's within
.divname, if you need specificity, let me see the code in use and I might be able to help. http://codepen.ioI don't know how to embed the CODEPEN ... here's the link
http://cdpn.io/Bzktu
no that didn't work.
@hendrix940, in that case that you provided the selector would be
h2.date-header spanIf you're trying to target a specific h2 within a div, and the h2 doesn't have a specific class like the
.date-headerin your example, you could pick it with the:nth-childselector.. http://codepen.io/ChrisPlz/pen/psfdDOkay, there it is @chrisp thank you very much for your help. I'm trying to get the date 'MONDAY, FEB 4, 2013' to align LEFT. ... AND i've already targeted the H2 tag to align RIGHT ... so I need to specifically target the H2 within class 'DATE-HEADER'
AH okay, great thank you very much sir!
@chrisp ... what am I doing wrong sir?
@hendrix940, you gotta put the css in that comment in to the pen, also,
spanis an inline element, so you're better off leaving the span out.http://codepen.io/ChrisPlz/pen/gvKeE
Okay I understand. I'm test now. Thank you very much.
Excellent. Got it! Thanks!