Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Jul 2011
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Exclamation Load an Image in Corner of Website?

    How can I make it to where an image will load in the corner of a website?

    Specifically, I have part of a template I want all people to see, however, some people either get it cut off or not shown at all because of their resolution.

  • #2
    Supreme Master coder! Old Pedant's Avatar
    Join Date
    Feb 2009
    Posts
    25,216
    Thanks
    75
    Thanked 4,344 Times in 4,310 Posts
    You didn't say which corner, so I assumed upper-right.

    Nothing to do with JavaScript.

    Just use CSS.

    Silly example:
    Code:
    <html>
    <body>
    <div style="width: 100%; text-align: right; background-color: yellow;">
       <img src="test.jpg" alt="here"/>
    </div>
    <div style="position: relative; width: 2000px; background-color: pink;">
    stuff in here
    </div>
    </body>
    </html>
    An optimist sees the glass as half full.
    A pessimist sees the glass as half empty.
    A realist drinks it no matter how much there is.


  •  

    Posting Permissions

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