Forum Moderators: not2easy
I simply have two boxes using divs:
#box1{
width:300px;
height:200px;
}
#box2{
width:50px;
height:50px;
}
How should I do to make box2 sit in the bottom right corner of box1 with text wrapped around? I thought I'd use float:right but it only puts the box to the right where it's inserted, not necessarily at the bottom...Also played around with position, but I can't get it right at all. Either it was positioned almost right but layered on top of the text in box1, or totally not in place. :(
Trying to be visual (x are text):
------
¦text¦
¦x---¦
¦x¦x¦¦
¦x---¦
------
Thanks to any helpful soul out here!
/Martin
if each of your paragraph's is wrapped in <p></p> tags for each paragraph then float:right box2 and put it in the last paragragh contained in box1
Should work for you
That's actually what I've been doing and most of the time it works out ok, but if there's unsufficient amount of text, the box2 doesn't align nicely in the corner.
Any other tips?