Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 10-07-2012, 12:29 AM   PM User | #1
SuperUnknown
New to the CF scene

 
Join Date: Oct 2012
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
SuperUnknown is an unknown quantity at this point
Question CSS/HTML background image

Hello,
I am looking for a way to set 1 image at the bottom of the page (not at the bottom of the screen but page, only if I scroll down I will see that image)
1 example of that page I found is on http://www.fatcow.com/ (I'm not advertising)

Thank you
SuperUnknown is offline   Reply With Quote
Old 10-07-2012, 12:48 AM   PM User | #2
waxdoc
Regular Coder

 
Join Date: Jul 2008
Posts: 155
Thanks: 9
Thanked 13 Times in 13 Posts
waxdoc is an unknown quantity at this point
set styke for HTML element

Remember besides the BODY element, there is also the full-screen HTML element so style your html

Code:
html { margin: 0; padding; 0; background: aqua url(path/imageam.jpg} no-repeat center bottom; }

body { margin: 0; padding; 0; background: transparent; color:black; }
waxdoc is offline   Reply With Quote
Old 10-07-2012, 02:45 PM   PM User | #3
sunfighter
Senior Coder

 
Join Date: Jan 2011
Location: Missouri
Posts: 2,399
Thanks: 18
Thanked 352 Times in 351 Posts
sunfighter is on a distinguished road
I think for one image I'd use absolute positioning with attributes bottom and left/right to lock it in place. A thought = make sure other parts of the page do not get in it's way if the page is resized or content changed.

Last edited by sunfighter; 10-07-2012 at 02:47 PM..
sunfighter is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 05:40 AM.


Advertisement
Log in to turn off these ads.