View Full Version : Sinking DIV (i.e. not floating...)
bassleader
09-27-2002, 01:05 PM
I want two images to float on the right hand side of my page while the text wraps around and underneath it. I thought the best way would be to place the images in a DIV and float that, but it remains glued to the left of the page. Here is the code I am using:
<div style="width: 200px; float: right;">
<img src="image_1.jpg" width="200" height="396"><br>
<img src="image_2.jpg" width="200" height="154">
</div>
<p>This is the text I want to wrap around the images....
</p>
What am I doing wrong?
BL
AnOdeToNoOne
09-27-2002, 05:25 PM
how about this :-)
<body>
<div style="width: 200px; float: right;">
<img src="image_1.jpg" width="200" height="396"><br>
<img src="image_2.jpg" width="200" height="154">
This is the text I want to wrap around the images....
</div>
sorry if its wrong
adios
09-27-2002, 05:31 PM
A little unclear what you want...
<img style="float:right;" src="image_1.jpg" width="200" height="396"><br>
<img style="float:right;" src="image_2.jpg" width="200" height="154">
<p>This is the text I want to wrap around the images....This is the text I want to wrap around the images....This is the text I want to wrap around the images....This........
Roy Sinclair
09-27-2002, 05:57 PM
I tried it and it works, try adding a border to the div so you can see it's edges and get a better idea of what it's really doing.
bassleader
09-27-2002, 07:27 PM
Thanks guys.
It turns out this is a cross-browser thing. The code works fine in every browser except the one I happened to be using at the time, namely the preview window in Dreamweaver. Sorry if I've wasted your time.
BL
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.