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 4 of 4
  1. #1
    Regular Coder
    Join Date
    Oct 2006
    Posts
    197
    Thanks
    9
    Thanked 0 Times in 0 Posts

    Position Header Gif

    Hi,

    First off, here is my site:

    http://www.zombiemod.com/rm/nina2/main.php?g2_itemId=13

    Im trying to move the black header gif image so it sits about 15px to the left, so its left side lines up with the grey boundary. Ive tried negative padding, but it doesnt seem to do anything. What is the correct way to do this?

    The header gif image is in the header css wrap, here is its css:

    Code:
    #header {
    
        padding: 35px 0px 0px;
        position: relative;

  • #2
    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 spadez,
    That image is moved to the right by three things -
    • the 15px left padding on #white-rap
    • the 35px left padding placed on #header
    • the 10px left padding on #header h1


    It might be easiest to move that over by removing the left padding on the h1...
    add this bit in red -
    Code:
    /* Header */
    
    #header h1 {
        margin: 0;
        padding: 0 10px 0 0;
    }
    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

  • #3
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,627
    Thanks
    6
    Thanked 1,001 Times in 974 Posts
    Remove the left padding from your h1.

  • #4
    Regular Coder
    Join Date
    Oct 2006
    Posts
    197
    Thanks
    9
    Thanked 0 Times in 0 Posts
    Thank you very much, I did as you instructed but I was still left with 15px gap so I removed the white space rap padding and that did the trick!


  •  

    Posting Permissions

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