|
-
Sep 8th, 2007, 12:13 PM
#1
Thread Starter
Hyperactive Member
CSS Footer
Is there a way I can use css to autmatically add something to the bottom of body like an image.. like
Haikus are easy.
But sometimes they don't make sense.
Refrigerator.
-
Sep 9th, 2007, 09:45 AM
#2
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.
-
Sep 9th, 2007, 11:22 AM
#3
Thread Starter
Hyperactive Member
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.
-
Sep 9th, 2007, 12:03 PM
#4
Re: CSS Footer
You can have the color as the first value, background : #FFF url('') etc.
See CSS property index for details.
-
Sep 9th, 2007, 01:38 PM
#5
Thread Starter
Hyperactive Member
Haikus are easy.
But sometimes they don't make sense.
Refrigerator.
-
Sep 9th, 2007, 02:09 PM
#6
Thread Starter
Hyperactive Member
Re: CSS Footer
Whoops, forgot to ask, is there a way to make a horizontal rule after anything in
Haikus are easy.
But sometimes they don't make sense.
Refrigerator.
-
Sep 9th, 2007, 10:23 PM
#7
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|