Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3949946
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T01:33:13+00:00 2026-05-20T01:33:13+00:00

The CSS selector .content-block affects the .content-block div in this section: #branding, #mainbar, #accordion,

  • 0

The CSS selector .content-block affects the .content-block div in this section:

#branding, #mainbar, #accordion, .content, .content0, .content-block, .posts, #footer a {
    margin-left: 10px !important;
    margin-right: 10px !important;
}

But is not in this one:

   .content-block {
            float: left;
            margin: 10px 0 20px;
            width: 300px;
        }
        .content-block h2 {
            background: url(images/underline.png) repeat-x scroll center;
            font-size: 22px;
            letter-spacing: -1px;
            padding: 0 0 15px 0;
        }
        .content-block p {
            padding-top: 20px;
        }

CSS file:

  /* Structure */
    .container {
        margin: 0 auto;
        overflow: hidden;
        width: 960px;
    }
    #header .container, #tagline .container {
        margin: 0 auto;
        overflow: hidden;
        text-align: center;
        width: 960px;
    }
    #header, #intro, #tagline, #content {
        background: url(images/bg.png) top center repeat;
    }
    #branding, #mainbar, #accordion, .content, .content0, .content-block, .posts, #footer a {
        margin-left: 10px !important;
        margin-right: 10px !important;
    }
    #intro h2, #content h2, #nav li a {
        text-shadow: 0 1px 0 #FFF;
    }
    /* Header */
    #header {
    }
    #header a {
        color: #333
    }
    #header a:hover {
        color: #28A
    }
    #branding {
        float: left;
        margin: 10px 0 10px;
        width: 940px;
    }
    #header h1, #lang {
        margin: 20px 0 12px;
        width: 280px;
    }
    #header h1 {
        float: left;
        overflow: hidden;
        width: 940px;
    }
    /* Intro */
    #intro, #intro2 {
        background: #333;
    }
    #intro {
        height: 300px;
    }
    #intro2 {
        background: #333;
    }
    #intro2 h2 {
        color: #DDD;
        font-size: 30px;
    }
    #intro2 h2 {
        color: #DDD;
        font-size: 30px;
    }
    .shadow-top {
        height: 10px;
        background: -webkit-gradient(linear, 0 0, 0 bottom, from(#222), to(#333));
        background: -moz-linear-gradient(#222, #333);
        -pie-background: linear-gradient(#222, #333);
    }
    .shadow-bottom {
        height: 10px;
        background: -webkit-gradient(linear, 0 0, 0 bottom, from(#333), to(#222));
        background: -moz-linear-gradient(#333, #222);
        -pie-background: linear-gradient(#333, #222);
    /* Tagline */
    #tagline {
    }
    .content {
        margin: 20px 0;
    }
    .content0 h2, .content h2 {
        font-size: 30px;
        letter-spacing: -1px;
    }
    .content0 {
        margin: 130px 0 50px;
    }
    /* Content */
    #content {
    }
    #mainbar {
        float: left;
        margin: 0 0 0;
        overflow: hidden;
    }
    .content-block {
        float: left;
        margin: 10px 0 20px;
        width: 300px;
    }
    .content-block h2 {
        background: url(images/underline.png) repeat-x scroll center;
        font-size: 22px;
        letter-spacing: -1px;
        padding: 0 0 15px 0;
    }
    .content-block p {
        padding-top: 20px;
    }
    #blog {
        float: left;
        width: 640px
    }
    .post {
        margin-bottom: 30px;
    }
    .post {
        border-bottom: 1px solid #BBB;
        padding: 0 0 30px 0;
    }
    .post h2 {
        margin-bottom: 10px;
    }
    .post h2 a {
        color: #333;
    }
    .post h2 a:hover {
        color: #28A;
    }
    .post .posted-on {
        font-size: 10px;
        margin-bottom: 10px;
    }
    .post p {
        margin-bottom: 30px;
    }
    .post p.read-more a  {
        background: #28A;
        color: #FFF;
        padding: 5px 20px;
    }
    .post .post-bottom  {
        font-size: 10px;
    }

Php file:

<div class="container">
        <div id="mainbar">
            <?php // Create and run custom loop
                $custom_posts = new WP_Query();
                $custom_posts->query('category_name=Content (Front Page)');
                while ($custom_posts->have_posts()) : $custom_posts->the_post();
            ?>
            <div class="content-block">
                <h2><?php the_title(); ?></h2>
                <p><?php the_content(); ?></p>
            </div><!-- .content-block -->
            <?php endwhile; ?>
        </div><!-- #mainbar -->
    </div><!-- .container -->

Reference picture:

enter image description here

Strange indeed.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T01:33:14+00:00Added an answer on May 20, 2026 at 1:33 am
    .shadow-bottom {
        height: 10px;
        background: -webkit-gradient(linear, 0 0, 0 bottom, from(#333), to(#222));
        background: -moz-linear-gradient(#333, #222);
        -pie-background: linear-gradient(#333, #222);
    

    Missing } http://jigsaw.w3.org/css-validator/ is a useful tool.

    /* Tagline */
    #tagline {
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need a CSS selector that can find the 2nd div of 2 that
Possible Duplicate: Complex CSS selector for parent of active child How would I make
I have written some CSS which targets elements using the parent > child selector.
What is the proper CSS syntax for applying multiple pseudo classes to a selector.
I am trying to read CSS selectors in my stylesheets with the document.styleSheets array.
CSS Attribute selectors allow the selection of elements based on attribute values. Unfortunately, I've
CSS and Javascript files don't change very often, so I want them to be
Using CSS, I'm trying to specify the height of a span tag in Firefox,
What CSS should I use to make a cell's border appear even if the
Are .css files always needed? Or may I have a .css basic file and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.