Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5

Thread: CSS Positioning

  1. #1
    New Coder
    Join Date
    Apr 2005
    Posts
    38
    Thanks
    0
    Thanked 0 Times in 0 Posts

    CSS Positioning

    Whats the best way to position stuff (regarding cross browser compatibility) using CSS?

  • #2
    Senior Coder Arbitrator's Avatar
    Join Date
    Mar 2006
    Location
    Splendora, Texas, United States of America
    Posts
    3,315
    Thanks
    29
    Thanked 279 Times in 273 Posts
    It’s kind of hard to answer that without knowing what needs to be positioned; different effects require different manners of positioning.
    For every complex problem, there is an answer that is clear, simple, and wrong.

  • #3
    New Coder
    Join Date
    Apr 2005
    Posts
    38
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Ive got a header tiled across the top of the page using

    #header {
    background-image : url(i/hdr.gif);
    position : fixed;
    top : 0;
    margin : 0;
    padding : 0;
    width : 100%;
    height : 82px;
    z-index : 0;
    }

    and im trying to place a image on top of it using

    #logo {
    position : absolute;
    left : 10px;
    top : 0px;
    z-index : 1;
    }

    and it really isnt working!

  • #4
    New Coder
    Join Date
    Apr 2005
    Posts
    38
    Thanks
    0
    Thanked 0 Times in 0 Posts
    also how would i place a footer at the bottom of the page, I tried

    #footer {
    width : 100%;
    height : 82px;
    background-image : url(i/ftr.gif);
    position : fixed;
    left : 0;
    bottom : 0;
    }

    but it keeps going to the top, if i do absolute it stays at the bottom but doesnt move when i scroll down the page! grrr

  • #5
    Master Coder Excavator's Avatar
    Join Date
    Dec 2006
    Location
    Alaska
    Posts
    9,675
    Thanks
    22
    Thanked 1,827 Times in 1,811 Posts
    Hello ramo_phoenix,
    There sure has been a lot of people wanting full height/footer at the bottom web pages lately! Must be a new trend.
    I can show you what I've done, have a look at the code to see how to do it yourself.
    my favorite
    another one
    Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
    Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •