header problem and footer showing wrong in FF...need help

Discussion in 'HTML & Website Design' started by HDaddy, Feb 16, 2007.

  1. #1
    Hi

    I´m doing my first site in css and i´ve encountered a problem with the bg picture of header. Go and check the site with both IE and FF u can see that the picture is not in right place, there should be white seen also in the left of the header. Can u help me...i can´t figure it out. Also i have a problem with FF. The footer is FU in it...it´s showing below navigation beside the contenarea...also the bgcolor of the container isn´t showing at all.

    í´d be more than grateful if u could help me. U can PM me and i´ll send u the css file so you can check it. really need ur help.

    thanks in advance! :)

    here´s the site http://koti.mbnet.fi/thinner/pihlajatemplate/
     
    HDaddy, Feb 16, 2007 IP
  2. SoftCloud

    SoftCloud Well-Known Member

    Messages:
    1,060
    Likes Received:
    28
    Best Answers:
    2
    Trophy Points:
    120
    #2
    You've got some problems with your source code, there is at the top of your source code 3 </div>'s
    </div>
    	</div>
    		</div>
    HTML:
    Remove them. Also under the footer div tag you need to add another
    </div>
    HTML:
    to end the DIV bit for the "container".
     
    SoftCloud, Feb 16, 2007 IP
  3. naif

    naif Well-Known Member

    Messages:
    468
    Likes Received:
    19
    Best Answers:
    0
    Trophy Points:
    118
    #3
    For the footer problem, add

    
    <div style="clear: both"></div>
    
    Code (markup):
    just after the closing </div> of content..

    The reason you are having problems with the header is most propably because you have used improper padding. Looking at your code and the bg picture, I see that the width is 659px. If you want a left and right padding of 5 px, you'll need to add the padding to the width too. So the width should be 669px. Hope this helps.
     
    naif, Feb 16, 2007 IP
  4. HDaddy

    HDaddy Active Member

    Messages:
    287
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    60
    #4
    thanks for your help..the footer problem was solved, except the 2007 copyright mark is in the left corner of the footer in FF and the footer bg pic isn´s still showing.
    But changing the header width didnt help...you did mean the header width or the bg pic width?
     
    HDaddy, Feb 17, 2007 IP
  5. nwk

    nwk Well-Known Member

    Messages:
    385
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    158
    #5
    I think you want the header to float in the middle.
    for this,
    put
    <div id="header">
    </div>
    
    Code (markup):
    in the main container and
    put this code in your css file.
    #header{
    width: 659px;                                                   /*width of picture*/
    margin: 0px auto;
    background: transparent url(..../image.gif)    /* image url*/
    }
    
    Code (markup):
     
    nwk, Feb 17, 2007 IP