Results 1 to 7 of 7

Thread: CSS Footer

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2007
    Location
     
    Posts
    453

    Exclamation CSS Footer

    Is there a way I can use css to autmatically add something to the bottom of body like an image.. like
    css Code:
    1. body {whatever}
    Haikus are easy.
    But sometimes they don't make sense.
    Refrigerator.

  2. #2
    VB6, XHTML & CSS hobbyist Merri's Avatar
    Join Date
    Oct 2002
    Location
    Finland
    Posts
    6,654

    Re: CSS Footer

    Code:
    body {
        background : url('image.jpg') no-repeat 50% 100%;
    }
    This will position an image at the bottom of the body element, however browsers tend to have differences on where they place the image in this case. You'll probably get the wanted effect but using an extra div that contains everything.

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2007
    Location
     
    Posts
    453

    Re: CSS Footer

    well, I already have abackground color already, is there a wat to use it with the background color?
    Haikus are easy.
    But sometimes they don't make sense.
    Refrigerator.

  4. #4
    VB6, XHTML & CSS hobbyist Merri's Avatar
    Join Date
    Oct 2002
    Location
    Finland
    Posts
    6,654

    Re: CSS Footer

    You can have the color as the first value, background : #FFF url('') etc.

    See CSS property index for details.

  5. #5

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2007
    Location
     
    Posts
    453

    Re: CSS Footer

    Thanks
    Haikus are easy.
    But sometimes they don't make sense.
    Refrigerator.

  6. #6

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2007
    Location
     
    Posts
    453

    Re: CSS Footer

    Whoops, forgot to ask, is there a way to make a horizontal rule after anything in
    Code:
    <h3>
    Haikus are easy.
    But sometimes they don't make sense.
    Refrigerator.

  7. #7
    VB6, XHTML & CSS hobbyist Merri's Avatar
    Join Date
    Oct 2002
    Location
    Finland
    Posts
    6,654

    Re: CSS Footer

    You can do h3 { border-bottom : 2px solid color; } - however, that'll do the line in to the h3 element, and not after the content that follows it. You can also use margin, padding, line-height and vertical-align to set how far the line is from the text in the header and how tight the text rows are in the element. Note that margin is outside the line (the border) and all other values effect inside the element's box, only having effect on how far the text is from the border.

Posting Permissions

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



Click Here to Expand Forum to Full Width