Grow your CSS skills. Land your dream job.

ie problems ( don’t understand validation)

  • # July 28, 2009 at 10:12 pm

    My site uses a wordpress theme but while viewing it in ie it creates a space between the nav links and the content. Also it messes up the content background too. I used a validator but I don’t understand where the problem is. I also noticed that although I use an edited version of the theme, the original had problems with ie too.

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

    header.php

    Code:
    < !DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


    style.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:200%;
    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;
    }

    Grid/ 960.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: 214px;
    }

    .container_16 .grid_9
    {
    width: 715px;
    }

    .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;
    }

    # July 28, 2009 at 10:40 pm
    Code:
    .navigation ul {
    margin: 0;
    }
    # August 2, 2009 at 10:50 pm

    ^ I just tried that by replacing it over the old .navigation ul, but it didn’t work.

    Also any ideas how to stop the content background from breaking up?

    Thanks,
    Larry

    # August 3, 2009 at 5:23 am
    Quote:
    I just tried that by replacing it over the old .navigation ul, but it didn’t work.

    You need to add margin: 0; to .navigation ul in style.css, all ul’s are getting a 20px bottom margin from text.css and you need to over ride that.

    Quote:
    Also any ideas how to stop the content background from breaking up?

    Make the page validate http://validator.w3.org/check?verbose=1&uri=http%3A%2F%2Fultimatechristianreviews.com%2Fdemo%2F.

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

You must be logged in to reply to this topic.

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