SitePoint Sponsor

User Tag List

Results 1 to 4 of 4

Thread: Aiming my CSS

  1. #1
    SitePoint Enthusiast
    Join Date
    Sep 2006
    Posts
    32
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Aiming my CSS

    I point my firebug inspector a page element and get this
    <h2 class="widgettitle">Recent Comments</h2>

    How do I target that item (Recent Comments) from within my CSS ?
    Thanks.

  2. #2
    SitePoint Enthusiast
    Join Date
    Sep 2006
    Posts
    32
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    My apologies, I wasn't uploading the CSS file properly so couldn;t work out why it wasn't working.
    I used :
    h2.widgettitle{
    font-size: 14px;
    }

  3. #3
    Community Advisor silver trophybronze trophy
    dresden_phoenix's Avatar
    Join Date
    Jun 2008
    Location
    Madison, WI
    Posts
    2,812
    Mentioned
    34 Post(s)
    Tagged
    2 Thread(s)
    that not really enough code to go on. You can target the headline using the code you posted but that's it. to target anything else would depend on how you have structured the surrounding and wrapping code.

  4. #4
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    24,295
    Mentioned
    460 Post(s)
    Tagged
    8 Thread(s)
    If the code you posted isn't working, it means that there is a more specific rule being applied to that h2. So as dresden says, we need to see this in context.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •