1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Targeting Certain CSS Classes

Discussion in 'Styling and Customization Questions' started by Eric J., Mar 12, 2012.

  1. Eric J.

    Eric J. Well-Known Member

    <div class="section sectionMain recentNews" id="273">

    <div class="primaryContent ">
    <div class="subHeading">
    <div style="float: right; white-space: nowrap;">
    <a href="index.php?threads/head-count.273/"><span class="DateTime" title="Mar 1, 2012 at 4:21 AM">Mar 1, 2012</span></a>

    (<a href="index.php?threads/head-count.273/edit" class="OverlayTrigger">Edit</a>)


    <a href="index.php?threads/head-count.273/" class="newsTitle">Head Count</a>

    <div class="newsDate secondaryContent">

    In a CSS file, how would I target "section sectionMain recentNews" and style it? I tried

    .section sectionMain recentNews {}

    but it didn't work.
  2. Brogan

    Brogan XenForo Moderator Staff Member

    Try .section.sectionMain.recentNews
    Eric J. likes this.
  3. Eric J.

    Eric J. Well-Known Member

    As always you're the bomb Brogan. xp

Share This Page