Advanced Search

Results 1 to 2 of 2

Thread: help with positioning CSS?

  1. #1
    Join Date
    Oct 2008
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Exclamation help with positioning CSS?

    Hello!
    Temp. site url: http://www.arkster.com/TAL/index.html
    A few things:

    1. How do I avoid using "<br><br>..." within the header and logo div tags within the html? I am currently using them as placeholders, but it is causing the page to become too long... Is there a better way? Eventually the " Featured Content" needs to be directly to the right of the picture.
    2. In my CSS, the z-index does not seem to be functioning. Deleting a few of the placeholder <br> shows "header_bg.png" behind "bg_white.png"... am I doing something wrong? I can avoid using them if I need to.

    Any help would be greatly appreciated, as I have to have this completed in about 6 hours. Thank you!

  2. #2
    Join Date
    Oct 2008
    Location
    n. 1 a particular place or position where something is located. 2 the action or process of locating.
    Posts
    2,026
    Thanks
    17
    Thanked 318 Times in 317 Posts
    Blog Entries
    3

    Default

    1. You can give the header and any other element a height attribute instead of using <br> tags. For example:
    Code:
    #header {
    height:300px;
    }
    2. For z-index to work, the element needs to be positioned. For example:
    Code:
    #header {
    z-index:5;
    position: relative;
    }
    You can learn more from this tutorial:
    http://css-tricks.com/video-screencasts/40-how-z-index-works/

    Good luck!
    E d d y P r o c a
    I love Dropbox. Get it through my (girlfriend's) referral link and both you and I (her) get 250 MB extra! Thanks and you're welcome!

Tags for this Thread

Bookmarks

Posting Permissions

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