Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how do i use css to wrap text around an image bottom right?

Status
Not open for further replies.

pushyr

Programmer
Jul 2, 2007
159
GB
i'm trying to acheive this type of text wrap around an image using css. i can align the image to the right but i just cant seem to get the image to align to the bottom.

i've tried vertical-align: bottom:, and float: bottom: ...but neither of these work. need your help!!

xxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxx +----------------+
xxxxxxxx | |
xxxxxxxx | |
xxxxxxxx | |
xxxxxxxx +----------------+

here's my code...

Code:
#imageright {

  display:block;
  margin:0;
  
  float:right;
  float:bottom;
  
  vertical-align:bottom;
  
  padding-left:7px;
  padding-top:7px;
  
  }
 
Try putting the text before the image in source order. Also remove the "float:bottom" from your CSS - there is no such value for the "float" property.

Hope this helps,
Dan



Coedit Limited - Delivering standards compliant, accessible web solutions

[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top