What HTML or CSS code

Discussion in 'HTML & Website Design' started by Johnn Rian, Nov 7, 2008.

  1. #1
    Need help here.

    If i want to move my image in any part of my page. What HMTL tag or CSS i will use.

    i tried <div>position absolute</div> but its not working since.

    Can anyone suggest?

    Thanks
     
    Johnn Rian, Nov 7, 2008 IP
  2. moneyzeal

    moneyzeal Peon

    Messages:
    109
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You are using the wrong code.You will have to use <float>, <Padding>, <Margin> etc tags whatever you need.
    Here is a sample code of Image placement. That make the image to align right and 10 pixel below from the top, 25 pixel far from the right.
    You can change the attribution to place your image in your desirable position.

    <div style="float: right; padding-top:25px; padding-right:10px; width: 300px; height: 200px; background-image:url(imageurl.jpg);">
    </div>
     
    moneyzeal, Nov 7, 2008 IP
  3. Johnn Rian

    Johnn Rian Banned

    Messages:
    34
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thank you for your help.
     
    Johnn Rian, Nov 7, 2008 IP