Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS How Target Specific H2 Within Specific DIV? – Thanks!

  • This topic is empty.
Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #42665
    hendrix940
    Participant

    I’m trying to target a specific H2 tag that’s within a DIV, how do I do it?

    is this correct?

    .divname h2 { }

    #124143
    hendrix940
    Participant

    I don’t know how to embed the CODEPEN … here’s the link

    http://cdpn.io/Bzktu

    #124145
    hendrix940
    Participant

    no that didn’t work.

    #124146
    hendrix940
    Participant
    <div class="column-center-outer">
    <div class="column-center-inner">
    <div id="main" class="main section">
    <div id="Blog1" class="widget Blog">
    <div class="blog-posts hfeed">
    <div class="date-outer">
    <h2 class="date-header">
    <span>Monday, February 4, 2013</span>
    Check out this Pen!

    #124148
    hendrix940
    Participant

    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’

    #124149
    hendrix940
    Participant

    AH okay, great thank you very much sir!

    #124151
    hendrix940
    Participant

    @chrisp … what am I doing wrong sir?

    h2.date-header span {
    text-align: right;
    }
    Check out this Pen!

    #124153
    hendrix940
    Participant

    Okay I understand. I’m test now. Thank you very much.

    #124154
    hendrix940
    Participant

    Excellent. Got it! Thanks!

Viewing 9 posts - 1 through 9 (of 9 total)
  • The forum ‘CSS’ is closed to new topics and replies.