CSS Question
Last Post 01/19/2010 3:52 PM by Lee Sykes. 1 Replies.
Author Messages
Colby Dees
Posts:20


--
01/19/2010 2:57 PM
    I'm "learning" to develop DNN skins in a pure CSS style. -Rather than tables- I went through the nine videos offered on this site which helped a lot. I believe I’m getting close, but I have a few issues that seem small, but I can't seem to get them to work. If someone would kindly look at my CSS and attachments I would appreciate the feedback. I'm sure I'm doing something obvious as I'm much more a designer than developer. Thanks! ~See the attached images~ Here is my CSS:

    body
    {
    margin: 0;
    padding: 0;
    line-height: 1.1;
    font: small Verdana, Arial, Helvetica, sans-serif;
    background-image: url(images/sponge_blu.gif);
    background-repeat: repeat;
    background-position: center;
    background-attachment: fixed;
    } #wrap
    {
    width: 75%;
    margin-left: 10%;
    margin-right: 10%;
    min-width: 600px;
    max-width: 800px;
    padding: 0 5px 0 5px;
    background-color: #741415;
    border: 2px solid #FFFFFF;
    }
    .tagline
    {
    float:right;
    clear: both;
    width: 10%;
    padding-left: 25px;
    }
    #loginlinks, a:link, a:active, a:visited
    {
    float: right;
    width: 90%;
    text-align: right;
    color: #FFFFFF;
    margin-right: 2%;
    }
    #loginlinks a:hover
    {
    color: #CCCCCC;
    text-decoration: none;
    }
    #logo
    {
    float:left;
    clear: both;
    }
    #content
    {
    clear: both;
    width: 95%;
    background-color: #FFFFFF;
    padding: 10px 10px 10px 10px;
    margin-left: 2%;
    margin-right: 2%;
    }
    #menubar
    {
    float: left;
    width: 95%;
    padding: 5px 10px 10px 0;
    margin-left: 2%;
    margin-right: 2%;
    }
    #footer, a:link, a:active, a:visited
    {
    float: none;
    width: 44%;
    padding: 10px 10px 0 8px;
    margin-left: 2%;
    margin-right: 2%;
    font-family: small Verdana, Arial, Helvetica, sans-serif;
    font-weight:bold;
    color: #FFFFFF;
    }
    #footer a:hover
    {
    color: #CCCCCC;
    text-decoration: none;
    }
    .asscap
    {
    float: none;
    clear: both;
    }
    - Colby Dees -

    I have not failed, I have just found 10,000 ways that won't work.
    -- Thomas Edison
    Lee Sykes
    DNN Creative Staff
    Nuke Master VI
    Nuke Master VI
    Posts:4945


    --
    01/19/2010 3:52 PM
    Hello,

    Check out the code from this skin Andreas 01

    To center we use in the body and #wrap:

    margin:0 auto;

    For the others, it's hard to work it out without looking at it live, what I would suggest is viewing this tutorial:
    Troubleshooting DotNetNuke Skins

    It outlines the techniques I would use to work out those problems.

    One of the first things I would check is the widths that you have assigned to the various elements, that's usually why you get wrapping occurring
    Lee Sykes
    Site Administrator
    Subscribe to the website : DotNetNuke Video Tutorials : The Skinning Toolkit : DotNetNuke Podcasts

    Twitter: www.twitter.com/DNNCreative

    Lee Sykes's Facebook Profile


    ---