Grow your CSS skills. Land your dream job.

wrong position

  • # August 11, 2008 at 4:27 pm

    I’ve placed a nice oblong-shaped header at the top of my page and have tried to put a corresponding thinner oblong underneath (with adress details, phone no etc). The oblong itself is ok but instead of remaining in the place I specified with absolute position it jhust defaults to the top left hand corner and nothing i do seems to shift it. Any advice gratefully received!

    # August 11, 2008 at 5:32 pm

    when asking questions. Always post your code or a link to the site so that we can see it. Your questions will be answered alot faster that way. Instead of answering your question now, i am spending time to tell you how to get your question answered. If we can’t see your code, we won’t know what you did wrong. Maybe it’s just a typo, maybe you organized it wrong. See my point?

    # August 11, 2008 at 6:39 pm

    /************************* ID’s *************************/

    #header {
    background-image: url(‘header.jpg’);
    position: absolute;
    top: 0px;
    left: 200px;
    width: 900px;
    height: 250px;
    align: left;
    border-right: 1px solid #ffffcc;
    border-top: 1px solid #ffffcc;
    padding-left: 30px
    }

    #header h1 {
    font-family: Times New Roman, serif;
    font-size: 72pt;
    color: #800000;
    font-weight: normal;
    font-style: italic;
    }

    #sub {
    top: 30px;
    left: 880px;
    width: 230px;
    position: absolute;
    color: #8000000;
    }
    #sub p { font-size: 26px; color: #999966; text-align: left; text-weight: bold; line-height : 45px;
    }

    #address {
    top: 250px;
    left: 200px;
    align: left;
    width: 900px;
    height: 20px;
    background-color: #800000;
    }

    #address p {
    font-family: Verdana;
    font-size: 16px;
    font-weight: bold;
    color: #ffffff;
    }

    #menu {
    background-image: url(‘drsback2.jpg’);
    position: absolute;
    top: 200px;
    left: 200px;
    height: 600px;
    padding-top: 60px;
    padding-left: 20px;
    border-left: 1px solid #ffffcc;
    border-right: 1px solid #ffffcc;
    font-weight: normal; width
    }

    #menu p {
    align:center:
    }

    #menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    align: center;
    }

    #menu li {
    border-bottom: 1px solid #ed9f9f;
    align: center;
    }

    #menu li a {
    display: block;
    background-image: url(‘drsback.jpg’);
    repeat: none;
    color: #ffffff;
    text-decoration: none;
    align: center; padding-left:0.5em; padding-right:5px; padding-top:5px; padding-bottom:5px
    }

    #menu1 {
    top: 350px;
    left: 200px;
    width: 150px;
    height: 30px;
    padding-top: 5px;
    text-align: center;
    background-image: url(‘drsback.jpg’);
    border-bottom: 4px solid #808080
    }

    #menu2 {
    top: 400px;
    left: 200px;
    width: 150px;
    height: 30px;
    padding-top: 5px;
    text-align: center;
    background-image: url(‘drsback.jpg’);
    border-bottom: 4px solid #808080
    }

    #menu3 {
    top: 450px;
    left: 200px;
    width: 150px;
    height: 30px;
    padding-top: 5px;
    text-align: center;
    background-image: url(‘drsback.jpg’);
    border-bottom: 4px solid #808080
    }

    #menu4 {
    top: 500px;
    left: 200px;
    width: 150px;
    height: 30px;
    padding-top: 5px;
    text-align: center;
    background-image: url(‘drsback.jpg’);
    border-bottom: 4px solid #808080
    }

    #menu5 {
    top: 550px;
    left: 200px;
    width: 150px;
    height: 30px;
    padding-top: 5px;
    text-align: center;
    background-image: url(‘drsback.jpg’);
    border-bottom: 4px solid #808080
    }

    #menu6 {
    top: 600px;
    left: 200px;
    width: 150px;
    height: 30px;
    padding-top: 5px;
    text-align: center;
    background-image: url(‘drsback.jpg’);
    border-bottom: 4px solid #808080
    }

    #copy {
    background-color: #f8f8ff;
    position: absolute;
    top: 350px;
    left: 400px;
    width: 700px;
    height: 600px;
    align: left;
    padding-top: 50px;
    padding-left: 100px;
    padding-right: 80px;
    overflow: scroll;
    font-weight: bold;
    text-align: justify;
    border-right: 1px solid #003300;
    }

    #copy a:link {
    color: #ffffff;
    font-size: 14px;
    }

    # August 12, 2008 at 1:10 am

    ok, your half way there. You still didn’t post a link to your site nor did you post the code that you are having trouble with. We can’t help you if we can’t see your code

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".