Not signed in (Sign In)

SkillShare - A place to discuss Web Standards and Web Design topics

Categories

Vanilla 1.1.4 is a product of Lussumo. More Information: Documentation, Community Support.

    • CommentAuthorakalsha
    • CommentTimeApr 11th 2008
     permalink
    Hello,
    I'm just starting on this web page, and I'm stuck. It's driving me absolutely mad as I'm sure the solution is simple, I just can't see it. Why isn't the background showing beneath the text, and why isn't the text left-aligned? Can anyone spot an error? Here is my code:

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

    <style type="text/css">

    <!--

    body {
    background-color: #0c1c4f;

    }
    div.maincontainer {


    }
    div.contentcontainer {
    float:left;
    width:539px;
    }
    div.sidebarcontainer {
    float:right;
    width:225px;
    }
    div.bigtop {
    width:539px;
    height:24px;
    }
    div.contenttileback {
    background-image:url(images/bigtile.png);
    background-repeat:repeat-y;
    width:539px;
    }
    div.contenthere {
    text-align: left;
    }

    -->

    </style>
    </head>

    <body>
    <div style="maincontainer" align="center">
    <div style="contentcontainer">
    <div style="bigtop"><img src="images/bigtop.png" /></div>
    <div style="contenttileback">
    <div style="contenthere">fjdksafjda<br />hgfsdhgf<br />hgfd<br />hgfd<br />hgfd
    </div>
    </div>
    </div>



    <div style="sidebarcontainer">
    </div>
    </div>
    <div style="clear:both;"></div>

    </body>
    </html>


    Thank you
    •  
      CommentAuthorkari.patila
    • CommentTimeApr 11th 2008 edited
     permalink
    Here's your problem: instead of div style="" you should have a div class=""

    div.content in CSS refers to div class="content" in HTML
    • CommentAuthorakalsha
    • CommentTimeApr 11th 2008
     permalink
    Oh my lord, I knew it would be something stupid. I knew that and I can't believe I did it. Thanks a lot for taking a look. :)
Add your comments
    Username Password
  • Format comments as (Help)