Grow your CSS skills. Land your dream job.

Resizing sidebar and logo position (wordpress theme)

  • # June 16, 2009 at 8:30 pm

    Hi the theme I’m currently using had a right and left "mini" side bar, and a dynamic tab that was located on the right of my site. I succesfully moved everything to the left and deleted the tab but the right sidebar (now left since I fliped the location of it) is still keeping it’s place as noted by the space. I deleted everything in rsidebar.php so I’m not sure what css to edit.
    So my question is how do I get rid of the empty space? Or in other words resize the sidebar?

    Also how would I position the logo so it’s centered?

    Originial theme: http://www.thatagency.com/THATthemes/
    My site using it: http://ultimatechristianreviews.com/demo/

    Style sheet.css

    Code:
    /*
    Theme Name: THAT Music Theme
    Theme URI: http://www.thatagency.com/THATthemes/index.php?wptheme=THAT+Music+Theme
    Description: Thatagency.com Music Blog Theme
    Version: 1.1
    Author: THAT Agency
    Author URI: http://www.thatagency.com/
    Tags: red, dark, three-columns, fixed-width, right-sidebar
    */

    /* Reset CSS */
    @import url(“reset.css”);

    /* All Text CSS */
    @import url(“text.css”);

    /* 960 Grid CSS */
    @import url(“960.css”);

    /*********************************************************************
    Primary Construct – Generic Styles
    *********************************************************************/

    body {
    background:url(img/grunge_bck.jpg) top center repeat fixed;
    margin:0;
    padding:0;
    }

    .clear {
    clear:both;
    }

    img.centered {
    display: block;
    margin-left: auto;
    margin-right: auto;
    }

    img.alignright {
    padding: 4px;
    margin: 0 0 2px 7px;
    display: inline;
    }

    img.alignleft {
    padding: 4px;
    margin: 0 7px 2px 0;
    display: inline;
    }

    .alignright {
    float: right;
    }

    .alignleft {
    float: left;
    }

    img {
    border:none;
    }

    .aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
    }

    /*********************************************************************
    Title
    *********************************************************************/

    .blog_title h1 {
    background: #8E0000 url(img/Castle.gif) top center no-repeat;
    font-size:19px;
    color:;
    margin:0 0 5px 0;
    padding:0px 0 0 0px;
    height:171px;
    width:497px;
    }
    .blog_title h1 a {
    background:url(img/) top left no-repeat;
    padding: 7px 0 0 45px;
    color:;
    text-decoration:none;
    }

    .blog_title h1 a:hover {
    text-decoration:line-through;
    }

    .blog_title h4 {
    font-size:13px;
    color:;
    padding:0 0 0 65px;
    }

    /*********************************************************************
    Navigation
    *********************************************************************/
    .navigation {
    background:url(img/nav_bck.jpg) repeat-x top left;
    height:45px;
    font-size:13px;
    }

    .navigation ul {
    float:left;
    list-style:none;
    }

    .navigation ul li {
    float:left;
    display:block;
    }

    .navigation ul li a {
    background:url(img/nav_rightbrdr.gif) top right no-repeat;
    color:#FFF;
    display:block;
    font-weight:bold;
    height: 13px;
    padding:15px 15px;
    text-decoration:none;
    margin:0;
    width:auto;
    float:left;
    }

    .search_box {
    float:right;
    margin:10px;
    color:#FFF;
    width:222px;
    }

    input.search_field {
    border:2px solid #26262A;
    background:#575A62;
    height:16px;
    widht:190px;
    color:#FFF;
    }

    input.search_btn {
    margin:0 10px 0 0;
    float:left;
    }

    /*********************************************************************
    Main Image Header
    *********************************************************************/

    .main_image img {
    margin:0;
    padding:0;
    }

    /*********************************************************************
    Content
    *********************************************************************/

    .content_wrapper {
    background:#908873 url(img/content_bck.gif) top right no-repeat;
    }

    /*********************************************************************
    Entry Styles
    *********************************************************************/

    .entry {
    background:url(img/post_bck.png) repeat !important;
    _background:none;
    padding:20px;
    line-height:140%;
    margin:15px 5px 50px 15px;
    }

    .entry p {
    padding-bottom:10px;
    font-size:11px;
    line-height:1.4em;
    color:#FFF;
    }

    .entry p a {
    color:#A80108;
    }

    .entry h2.sectionhead {
    font: normal 10px Verdana, Arial, Helvetica, sans-serif;
    text-transform:uppercase;
    padding-bottom:15px;
    background:none;
    border:none;
    }

    .entry h2 {
    font: bold 14px Arial;
    color:#FFF;
    background:#8E0000;
    padding:8px;
    display:block;
    border:1px solid #908873;
    margin:0 0 3px;
    }

    .entry h2 a {
    color:#FFF;
    text-decoration:none;
    }

    .entry img {
    }

    html>body .entry ul {
    padding: 0 0 0 30px;
    padding-left: 10px;
    }

    html>body .entry li {
    margin: 7px 0 8px 10px;
    color:#FFF;
    font-size:11px;
    }

    .entry ul li:before {
    content: “0BB 020″;
    }

    .entry p.postinfo {
    font-size:10px;
    padding-bottom:10px;
    margin-bottom:15px;
    color:#2A2B2E;
    }

    .entry p.postinfo a {
    color:#2A2B2E;
    }

    .entry p.postinfo span.upper {
    }

    .entry p.postinfo span.category {
    padding-right:20px;
    color:#2A2B2E;
    }

    .entry p.postinfo span.comment {
    padding-right:16px;
    }

    .post {
    margin-bottom:25px;
    }

    blockquote {
    background:#A9A088;
    border-bottom:2px solid #908873;
    border-top:2px solid #908873;
    color:#FFF;
    font-size:90%;
    font-style:italic;
    margin:23px 30px;
    padding:4px 4px 4px 10px;
    }

    /*********************************************************************
    Right Side Content
    *********************************************************************/

    .right {
    background: #7F7968 url(img/right_bck.gif) bottom right repeat;
    margin-bottom:0px;
    margin-top:0px;
    }

    h2.widgettitle {
    color:#FFF;
    background:#6C6351;
    font-size:13px;
    padding:5px 5px 5px 15px;
    margin:0 0 5px 0;
    display:block;
    }

    .sleft ul li ul li, sright ul li ul li {
    color:#FFF;
    padding:5px 0 6px 0;
    font-size:15px;
    background:url(img/bullet.gif) no-repeat 0 7px;
    padding-left:16px;
    margin:0 0 0 5px;
    }

    .sleft ul li a, .sright ul li a {
    color:#FFF;
    }

    /*********************************************************************
    Tabbed Content
    *********************************************************************/

    /*********************************************************************
    Comments
    *********************************************************************/

    #c {
    float:left;
    width:150px;
    font-size:9px;
    }

    #cc {
    float:right;
    width:300px;
    font-size:9px;
    }

    #commentform p {
    padding-bottom:10px;
    }

    #commentform #author {
    border:1px solid #BBB;
    height:20px;
    background:#f5f5f5;
    padding-left:5px;
    }

    #commentform #email {
    border:1px solid #BBB;
    height:20px;
    background:#f5f5f5;
    padding-left:5px;
    }

    #commentform #url {
    border:1px solid #BBB;
    height:20px;
    background:#f5f5f5;
    padding-left:5px;
    }

    #commentform #comment {
    border:1px solid #BBB;
    padding:10px;
    width:278px;
    }

    .commentlist {
    font-size:10px;
    }

    .commentlist cite {
    padding:5px 5px 5px 10px;
    }

    .commentlist cite a {
    color:#FFF;
    }

    .commentlist .ctext {
    border-bottom:1px solid #908873;
    font-size:11px;
    }

    .postmetadata {
    border: 1px solid #908873;
    padding:10px;
    color:#FFF;
    font-size:10px;
    }

    .postmetadata a {
    color:#FFF;
    }

    .ccomment {
    line-height:140%;
    margin:0;
    padding:20px 5px 20px 20px;
    color:#FFF;
    }

    .ccomment a {
    color:#FFF;
    }

    .ccomment h3 {
    font-size:12px;
    }

    .ccomment ol {
    }

    .ccomment ol li {
    padding:15px;
    background:#6C6351;
    }

    .ccomment ol li.alt {
    background:#A9A088;
    padding:15px;
    }

    /*********************************************************************
    Captions
    *********************************************************************/
    .wp-caption {
    border: 1px solid #ddd;
    text-align: center;
    background-color: #f3f3f3;
    padding-top: 4px;
    margin: 10px;
    -moz-border-radius: 3px;
    -khtml-border-radius: 3px;
    -webkit-border-radius: 3px;
    border-radius: 3px;
    }

    .wp-caption img {
    margin: 0;
    padding: 0;
    border: 0 none;
    }

    .wp-caption-dd {
    font-size: 11px;
    line-height: 17px;
    padding: 0 4px 5px;
    margin: 0;
    }

    /*********************************************************************
    Footer
    *********************************************************************/

    .footer {
    background:url(img/footer_bck.jpg) top center repeat-x;
    height:51px;
    color:#FFF;
    margin-bottom:50px;
    text-align:right;
    font-size:11px;
    }

    .footer a {
    color:#FFF;
    text-decoration:none;
    }

    .footer a:hover {
    color:#CCC;
    text-decoration:underline;
    }

    .footer p {
    padding:15px;
    }

    960.css (grid css)

    Code:
    /*
    960 Grid System ~ Core CSS.
    Learn more ~ http://960.gs/

    Licensed under GPL and MIT.
    */

    /* =Containers
    ——————————————————————————–*/

    .container_12,
    .container_16
    {
    margin-left: auto;
    margin-right: auto;
    width: 960px;
    }

    /* =Grid >> Global
    ——————————————————————————–*/

    .grid_1,
    .grid_2,
    .grid_3,
    .grid_4,
    .grid_5,
    .grid_6,
    .grid_7,
    .grid_8,
    .grid_9,
    .grid_10,
    .grid_11,
    .grid_12,
    .grid_13,
    .grid_14,
    .grid_15,
    .grid_16
    {
    display: inline;
    float: right;
    margin-left: 0px;
    margin-right: 10px;
    }

    .container_12 .grid_3,
    .container_16 .grid_4
    {
    width: 202px;
    }

    .container_12 .grid_6,
    .container_16 .grid_8
    {
    width: 460px;
    }

    .container_12 .grid_9,
    .container_16 .grid_12
    {
    width: 700px;
    }

    .container_12 .grid_12,
    .container_16 .grid_16
    {
    width: 940px;
    }

    /* =Grid >> Children (Alpha ~ First, Omega ~ Last)
    ——————————————————————————–*/

    .alpha
    {
    margin-left:0;
    }

    .omega
    {
    margin-right: 0;
    }

    /* =Grid >> 12 Columns
    ——————————————————————————–*/

    .container_12 .grid_1
    {
    width: 60px;
    }

    .container_12 .grid_2
    {
    width: 140;
    }

    .container_12 .grid_4
    {
    width: 300px;
    }

    .container_12 .grid_5
    {
    width: 380px;
    }

    .container_12 .grid_7
    {
    width: 540px;
    }

    .container_12 .grid_8
    {
    width: 620px;
    }

    .container_12 .grid_10
    {
    width: 780px;
    }

    .container_12 .grid_11
    {
    width: 860px;
    }

    /* =Grid >> 16 Columns
    ——————————————————————————–*/

    .container_16 .grid_1
    {
    width: 40px;
    }

    .container_16 .grid_2
    {
    width: 100px;
    }

    .container_16 .grid_3
    {
    width: 160px;
    }

    .container_16 .grid_5
    {
    width: 280px;
    }

    .container_16 .grid_6
    {
    width: 340px;
    }

    .container_16 .grid_7
    {
    width: 400px;
    }

    .container_16 .grid_9
    {
    width: 520px;
    }

    .container_16 .grid_10
    {
    width: 580px;
    }

    .container_16 .grid_11
    {
    width: 640px;
    }

    .container_16 .grid_13
    {
    width: 760px;
    }

    .container_16 .grid_14
    {
    width: 820px;
    }

    .container_16 .grid_15
    {
    width: 880px;
    }

    /* =Prefix Extra Space >> Global
    ——————————————————————————–*/

    .container_12 .prefix_3,
    .container_16 .prefix_4
    {
    padding-left: 240px;
    }

    .container_12 .prefix_6,
    .container_16 .prefix_8
    {
    padding-left: 480px;
    }

    .container_12 .prefix_9,
    .container_16 .prefix_12
    {
    padding-left: 720px;
    }

    /* =Prefix Extra Space >> 12 Columns
    ——————————————————————————–*/

    .container_12 .prefix_1
    {
    padding-left: 80px;
    }

    .container_12 .prefix_2
    {
    padding-left: 160px;
    }

    .container_12 .prefix_4
    {
    padding-left: 320px;
    }

    .container_12 .prefix_5
    {
    padding-left: 400px;
    }

    .container_12 .prefix_7
    {
    padding-left: 560px;
    }

    .container_12 .prefix_8
    {
    padding-left: 640px;
    }

    .container_12 .prefix_10
    {
    padding-left: 800px;
    }

    .container_12 .prefix_11
    {
    padding-left: 880px;
    }

    /* =Prefix Extra Space >> 16 Columns
    ——————————————————————————–*/

    .container_16 .prefix_1
    {
    padding-left: 60px;
    }

    .container_16 .prefix_2
    {
    padding-left: 120px;
    }

    .container_16 .prefix_3
    {
    padding-left: 180px;
    }

    .container_16 .prefix_5
    {
    padding-left: 300px;
    }

    .container_16 .prefix_6
    {
    padding-left: 360px;
    }

    .container_16 .prefix_7
    {
    padding-left: 420px;
    }

    .container_16 .prefix_9
    {
    padding-left: 540px;
    }

    .container_16 .prefix_10
    {
    padding-left: 600px;
    }

    .container_16 .prefix_11
    {
    padding-left: 660px;
    }

    .container_16 .prefix_13
    {
    padding-left: 780px;
    }

    .container_16 .prefix_14
    {
    padding-left: 840px;
    }

    .container_16 .prefix_15
    {
    padding-left: 900px;
    }

    /* =Suffix Extra Space >> Global
    ——————————————————————————–*/

    .container_12 .suffix_3,
    .container_16 .suffix_4
    {
    padding-right: 240px;
    }

    .container_12 .suffix_6,
    .container_16 .suffix_8
    {
    padding-right: 480px;
    }

    .container_12 .suffix_9,
    .container_16 .suffix_12
    {
    padding-right: 720px;
    }

    /* =Suffix Extra Space >> 12 Columns
    ——————————————————————————–*/

    .container_12 .suffix_1
    {
    padding-right: 80px;
    }

    .container_12 .suffix_2
    {
    padding-right: 160px;
    }

    .container_12 .suffix_4
    {
    padding-right: 320px;
    }

    .container_12 .suffix_5
    {
    padding-right: 400px;
    }

    .container_12 .suffix_7
    {
    padding-right: 560px;
    }

    .container_12 .suffix_8
    {
    padding-right: 640px;
    }

    .container_12 .suffix_10
    {
    padding-right: 800px;
    }

    .container_12 .suffix_11
    {
    padding-right: 880px;
    }

    /* =Suffix Extra Space >> 16 Columns
    ——————————————————————————–*/

    .container_16 .suffix_1
    {
    padding-right: 60px;
    }

    .container_16 .suffix_2
    {
    padding-right: 120px;
    }

    .container_16 .suffix_3
    {
    padding-right: 180px;
    }

    .container_16 .suffix_5
    {
    padding-right: 300px;
    }

    .container_16 .suffix_6
    {
    padding-right: 360px;
    }

    .container_16 .suffix_7
    {
    padding-right: 420px;
    }

    .container_16 .suffix_9
    {
    padding-right: 540px;
    }

    .container_16 .suffix_10
    {
    padding-right: 600px;
    }

    .container_16 .suffix_11
    {
    padding-right: 660px;
    }

    .container_16 .suffix_13
    {
    padding-right: 780px;
    }

    .container_16 .suffix_14
    {
    padding-right: 840px;
    }

    .container_16 .suffix_15
    {
    padding-right: 900px;
    }

    /* =Clear Floated Elements
    ——————————————————————————–*/

    /* http://sonspring.com/journal/clearing-floats */

    html body * span.clear,
    html body * div.clear,
    html body * li.clear,
    html body * dd.clear
    {
    background: none;
    border: 0;
    clear: both;
    display: block;
    float: none;
    font-size: 0;
    list-style: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    visibility: hidden;
    width: 0;
    height: 0;
    }

    /* http://www.positioniseverything.net/easyclearing.html */

    .clearfix:after
    {
    clear: both;
    content: ‘.';
    display: block;
    visibility: hidden;
    height: 0;
    }

    .clearfix
    {
    display: inline-block;
    }

    * html .clearfix
    {
    height: 1%;
    }

    .clearfix
    {
    display: block;
    }

    Thanks,
    Larry

    # June 17, 2009 at 1:14 am

    hi frnd,

    you make some changes in your css…

    .right put float left
    .container_16 .grid_7 decrease the width of this class 214px
    .container_16 .grid_9 increase the width of this class to 715px

    i think your problem will sort out.. :)

    # June 17, 2009 at 9:57 pm
    "creativeideas" wrote:
    you make some changes in your css…

    .right put float left

    While that suggestion may work, I can only imagine the confusion you will have down the road when you try to figure out the wording there. Remember to keep your class names semantic. Having a class called "right" that is being floated "left" doesn’t make too much sense.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".