Skip to:
Content
Pages
Categories
Search
Top
Bottom

Apply CSS style to div

  • @mmendezmi

    Member

    hello!
    I’m working with fresh installs of wp 3.2.1 and bp 1.2.9.
    I have modified the bp template files as per the codex and have done custom mod for my theme which is called onPlay.

    The issue I’m having now is that the sidebar is displaying below the content only on bp pages. I think I want that div to have the style of “.single .post, .page .post” — not of just “.post”. How do i fix this?
    http://www.rowvision.com/members/miguel/profile/

    CSS-
    `.post {
    background: #fff;
    margin-bottom: 36px;
    border-bottom:1px solid #DCDDDF;
    padding:0 0 10px;
    margin:0 0 30px;
    font-size:12px;
    overflow:hidden;
    }
    .single .post, .page .post {
    padding:25px;
    width:610px;
    float:left;
    }`

    Page mod top
    `<?php
    global $options;
    foreach ($options as $value) {
    if (get_settings( $value ) === FALSE) { $$value = $value; } else { $$value = get_settings( $value ); }
    }
    ?>

    `

    bottom
    `

    `

    Thanks!! please let me know if i should provide more info.

Viewing 3 replies - 1 through 3 (of 3 total)
  • @mmendezmi

    Member

    update: I found a workaround by changing the css entry for “.post” to contain the attributes of the style I wanted it to have. But I would like to know the right way to fix this.

    @karmatosed

    Moderator

    Unless I’m not seeing it right in your source you don’t have a class of single or page on those pages above post therefore it won’t pick it up. What you should have is an identifier class like that in the body class calls you can use.

    @mmendezmi

    Member

    Yeah, I noticed that too, how do i change this the right way? I’m a noob! Do I add another div .single inside of the .post div?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Apply CSS style to div’ is closed to new replies.
Skip to toolbar