I'm all questions today...
Is it possible to locate an image through a "div style" tag next to the image?
Example (in BODY of page):
<div style="top: 200px;"><img src="ai-board1.jpg"></div>
This didn't work for me.
THANKS.
I'm all questions today...
Is it possible to locate an image through a "div style" tag next to the image?
Example (in BODY of page):
<div style="top: 200px;"><img src="ai-board1.jpg"></div>
This didn't work for me.
THANKS.
It did work for me:
HTML Code:<div style="top:200px;"> <img src="http://h1.ripway.com/rangana/images/Picture4.jpg"></div>Please provide a link to the page in question.
Learn how to code at 02geek
The more you learn, the more you'll realize there's much more to learn
Ray.ph!
questions (08-09-2008)
I had to do this for it to work:
<div style="margin: 200px;">
Don't know why...
The "top" attribute only does anything if the "position" attribute is set as well (for example, "position: absolute" or "position: relative").
- Mike
questions (08-09-2008)
So you were trying to add 200px between the top of the div and the image? If it's the image that you're aligning, you should generally add the styles to the image. In this case, it would be something like:
HTML Code:<div id="container"> <img src="image.jpg" alt="image"> </div>Code:#container { position:relative; } #container img { position:absolute; top:200px; }
Bookmarks