SitePoint Sponsor

User Tag List

Results 1 to 5 of 5

Hybrid View

  1. #1
    SitePoint Member
    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.

  2. #2
    SitePoint Wizard creole's Avatar
    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

  3. #3
    SitePoint Wizard Ian Glass's Avatar
    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;
    }
    ~~Hope This Helps

  4. #4
    SitePoint Member
    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

  5. #5
    SitePoint Wizard Ian Glass's Avatar
    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

Posting Permissions

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