SitePoint Sponsor |
|
User Tag List
Results 1 to 5 of 5
Thread: CSS image positioning
Hybrid View
-
Feb 1, 2002, 10:47 #1
- Join Date
- Feb 2002
- Posts
- 7
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
CSS image positioning
Hi, I'm a relative newbie to CSS, I'm trying to incorporate it more into my site designs.
My question concerns CSS image positioning. I wish to place an image on the absolute bottom left corner of a window, and have it there at all times. Is this at all possible? Usually I'd use a single-sized window and some tricks with background images and tables to achieve this, but I've been led to believe there's a superior way using CSS.
Cheers.
-
Feb 1, 2002, 11:31 #2
- Join Date
- Oct 2000
- Location
- Nashvegas Baby!
- Posts
- 7,845
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Believe it or not, placing an image in the bottom right corner is harder than you might think. Mostly because of inconsistencies in the different browser interpretations of CSS.
Here are a few links to get you started:
http://www.htmlhelp.com/reference/cs...-position.html
http://msdn.microsoft.com/library/de...attributes.asp
http://www.w3schools.com/css/
http://www.w3schools.com/css/pr_background-position.asp
http://builder.cnet.com/webbuilding/...5934478-9.html (this one might be the best one for you)Adobe Certified Coldfusion MX 7 Developer
Adobe Certified Advanced Coldfusion MX Developer
My Blog (new) | My Family | My Freelance | My Recipes
-
Feb 1, 2002, 13:08 #3
- Join Date
- Oct 2001
- Location
- Beyond yonder
- Posts
- 2,384
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
If you don't already have a background image, you can use the CSS background property to do it.
Code:BODY{ background: url("image.gif") fixed right bottom no-repeat; }
-
Feb 2, 2002, 22:09 #4
- Join Date
- Feb 2002
- Posts
- 7
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Ian,
That's exactly what I wanted. Works perfectly! And no fixed-size popups either. Thanks!
-lemur
-
Feb 3, 2002, 09:52 #5
- Join Date
- Oct 2001
- Location
- Beyond yonder
- Posts
- 2,384
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
I'm always glad to help. :-D
If your targeting NS4 users too, be sure to specify a background color too, or you can get some weird results (if I remember correctly).
~~Ian
Bookmarks