Skip to:
Content
Pages
Categories
Search
Top
Bottom

More CSS madness


  • LPH2005
    Participant

    @lph2005

    CSS drives me absolutely mad :(

    The Chemistry Book

    I decided to add this code:

    `

     

    <div style="background:none repeat scroll 0 0 #333333;
    border-top:4px solid #9B876F;
    height:18px;
    padding:7px 5px;
    text-align:left;
    clear:both;”> `

    Unfortunately there is a white bar off to the right side. Any thoughts?

    SiteURL: http://www.thechembook.com

Viewing 6 replies - 1 through 6 (of 6 total)

  • modemlooper
    Moderator

    @modemlooper

    the content has a border in the CSS if you are using a child theme then you need to add a border:none;


    paulhastings0
    Participant

    @paulhastings0

    Yeah, I just checked your site at http://www.thechembook.com/ and I was going to say the exact same thing. Actually, if my eyes aren’t betraying me then you only need to add the line border-right:none


    LPH2005
    Participant

    @lph2005

    @modemlooper – thank you!

    Found this in the default.css using firebug.

    `div#container {
    border-right:1px solid #E0E0E0;
    border-bottom:1px solid #E0E0E0;
    }`

    Changed to 0px – and all is well :)

    Oh – and moved that wave.png into the footer.php and footer-wiki.php – it looks nicer.


    LPH2005
    Participant

    @lph2005

    @paulhastings0 – Also – thank you!

    Code changed to none since that is probably more appropriate than using 0px.

    Personal Note: One of these days this site is going to look like something else besides a default theme with color changes. Guess that means the header.php file needs to be changed more … hehe

    The Chemistry Book


    paulhastings0
    Participant

    @paulhastings0

    It’s all good man. I saw you have some media albums. What media plugin and version are you running?


    LPH2005
    Participant

    @lph2005

    @paulhastings0 it’s a mixture of BP-Album Media, a nightly build, but I did not change the database from a previous installation. Next, some code was copy/pasted, modified to show the photos and videos along with a widget for login/logout differences.

    `

    <?php
    global $bp, $featured_template;

    // STEP 1: Run the default query. It will use the options set in the admin back end.
    bp_album_featured_query_items();

    $row_count = 0;

    // STEP 2: Test if items were found. If so, open the CSS block.
    if ( bp_album_featured_has_items() ) : ?>

    <?php
    // STEP 3: Iterate through the items the query has found, printing each one out.
    while ( bp_album_featured_has_items() ) : bp_album_featured_the_item(); ?>

    <?php

    $row_count++;

    if($row_count == (int)$bp->bpa->options){
    echo ‘

    ‘;
    $row_count = 0;
    }

    endwhile;

    // STEP 4: Close the CSS block. ?>

    <a href="” class=”media-image”>

    <?php

    endif;

    ?>

    <form name="login-form" id="sidebar-login-form" class="standard-form" action="” method=”post”>

    <input type="text" name="log" id="sidebar-user-login" class="input" value="” />

    <input type="submit" name="wp-submit" id="sidebar-wp-submit" value="” tabindex=”100″ />

    `

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘More CSS madness’ is closed to new replies.
Skip to toolbar