Hello and welcome to our community! Is this your first visit?
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
    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
    Thanked 4,731 Times in 4,693 Posts
    You didn't say which corner, so I assumed upper-right.

    Nothing to do with JavaScript.

    Just use CSS.

    Silly example:
    <div style="width: 100%; text-align: right; background-color: yellow;">
       <img src="test.jpg" alt="here"/>
    <div style="position: relative; width: 2000px; background-color: pink;">
    stuff in here
    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