Results 1 to 4 of 4

Thread: footer div

  1. #1
    Join Date
    Apr 2007
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default footer div

    Hey all,
    I've put a div at the bottom of all my pages to use as a footer, but it won't stretch right across the screen (leaves a small margin/border at the left and right and underneath). I've tried putting "margin: 0 0 0 0; padding: 0 0 0 0" in the css, but to no avail. Here's the css:
    .footer { background-color: #FFFFAA; border-top: 1px solid #00329B; border-bottom: 1px solid #00329B }

    Any ideas?
    TYVM in advance

  2. #2
    Join Date
    Apr 2007
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    heres the html in the pages:
    <div align="center" class="footer">

  3. #3
    Join Date
    Apr 2007
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    done it for myself lol, just put margin: 0 0 0 0 in the body style in the css.

  4. #4
    Join Date
    Jun 2006
    Location
    Acton Ontario Canada.
    Posts
    677
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default

    .footer { background-color: #FFFFAA; border-top: 1px solid #00329B; border-bottom: 1px solid #00329B; margin:-8px;}
    body {margin:0; padding:8px;}

    dont use the align attribute. use CSS.
    - Ryan "Boxxertrumps" Trumpa
    Come back once it validates: HTML, CSS, JS.

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
  •