- This topic is empty.
Viewing 5 posts - 1 through 5 (of 5 total)
Viewing 5 posts - 1 through 5 (of 5 total)
- The forum ‘CSS’ is closed to new topics and replies.
The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Hello.
I have problem with css with two div.
My first div contain texts while second div contains images. I need to put the image div in top right corner of text div.
My div structures as below :
text text text .... more text
image image
I want to archieve this :
text text – image –
text text – image –
text text text text
text text text text
text text text text
I illustred this problem with an image. Link at : http://www.freeimagehosting.net/8gpb3
Please help me to solve this problem. Thanks.
Put the images div inside the text div and float the images right.
Here you go: http://jsfiddle.net/Paulie_D/w9mQt/
Thanks Paulie_D and andy_unleash. Both of you have similar solution by putting image div inside text div but my situation not allow me to do so . Both my div is independent div and can not put one inside another. Any idea how to solve this ? Thanks again.
can you place the images div before the text div in the source order? if so, do that and float the images div right
.right{
float:right;
margin-left:10px;
margin-bottom:10px;}