У меня есть блок содержимого, содержащий изображение размером 460x160. Все, что мне нужно сделать, это разместить изображение в правом нижнем углу и обернуть его текстом.
Код: Выделить всё
[img]...[/img]
text text text text text text ...
Код: Выделить всё
------------------
| text text text |
| text text text |
| text text -----|
| text text | |
------------------
Код: Выделить всё
#contents img { float:right; }
------------------
| text text | |
| text text -----|
| text text text |
| text text text |
------------------
Лучшее, что я придумал на данный момент:
Код: Выделить всё
#contents img { float:right; margin-top: 90%} // really needs to be 100%-160px
------------------
| text text |
| text text |
| text text -----|
| text text | |
------------------
Код: Выделить всё
#contents { position:relative; }
#contents img { position:absolute; right:0; bottom:0; }
-or-
// move the img tag under the text in the html and:
#contents img { float:right; margin-top:-160; }
------------------
| text text text |
| text text text |
| text text -----|
| text text | te |
------------------
Итак... как мне это сделать? это?
Подробнее здесь: https://stackoverflow.com/questions/499 ... -right-div