Help with CSS, please!

Discussion in 'CSS' started by franklindeleon, Jan 12, 2007.

  1. #1
    ok I'm new to the whole css thing and I am working on switching my site from tables to css, and I have to questions:
    first I think I got the the banner, the navigation bars and the footer but now, HOw do I place my content which is supposed to go at the right sife os the left nav bar, if I insert a new <div> it is gonna show up underneath the left nav instead of the right, please tell me how to go this.
    Here's my second question since I am new to this I wan to make sure I get things right, so once I have all my pages done I palce a link between the <head> </head> tag pionting to the stylesheet containing atributes such as this for example:

    body
    {
    background-color:#9C9C9C;
    text-align: center;
    }
    p {font: 12px verdana
    }
    li {font: verdana 14px
    }
    h1 {font: verdana 14px
    }
    h2 {font: verdana 14px
    }
    ul {font verdana 14px
    }
    a:hover
    {color:#ffffff;
    }
    a
    {
    color: #000000;
    text-decoration: none;
    font-family: verdana;
    font-size:12px;
    }

    meaning that I don't nedd to put this code into all of the pages as long as I palce the link into every single one of them and of course upload it to the root file, did I get it right?

    here's the link http://fdvisions.com/css.html

    Please guys let me know what you think, before I lose my mind over this css thing.

    thank you
     
    franklindeleon, Jan 12, 2007 IP
  2. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #2
    Before touching on anything else, you need to do two things:
    1. Use a complete and proper DTD to trigger standards mode. That controls how the browser, especially IE, renders the page. For any new document, use a strict DTD, as there is no sane reason to use deprecated elements or attributes.
    2. Watch your syntax, you have some errors. For example, <a href="" /> blah</a> is not fatal, but it's not exactly kosher.

    See Floatutorial, and look at some of the pages in my site (sig below). Have you worked your way through some css tutorials, yet?

    cheers,

    gary
     
    kk5st, Jan 12, 2007 IP
  3. rgchris

    rgchris Peon

    Messages:
    187
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Probably shouldn't make the h1 and h2 tags so similar.
     
    rgchris, Jan 12, 2007 IP