SitePoint Sponsor

User Tag List

Results 1 to 13 of 13

Thread: CSS:not?

Threaded View

  1. #1
    SitePoint Addict Scott Blanchard's Avatar
    Join Date
    Sep 2010
    Posts
    314
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    CSS:not?

    Is there a way to exclude h1s which have class="postttitle" from the ruleset below?

    Code:
    .entry h1, .entry h2,.entry h3,.entry h4,.entry h5,.entry h6 {font-size:100%;margin:0 -.5em 0 0;padding:0;display:inline;}
    Example:

    <article class="entry">
    <header>
    <h1 class="posttitle">Don't include this h1 in the ruleset</h1>
    </header>
    <p>Content goes here</p>
    <h1>Do include this h1 in the ruleset</h1>
    <p>More Content goes here</p>
    <h2>Do include this h1 in the ruleset</h2>
    <p>More Content goes here</p>
    </article>
    Last edited by spikeZ; Mar 15, 2012 at 10:20. Reason: as requested


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
  •