I have no problem floating the div to top right side, but how do I do the same but to the bottom?
Test object: http://jsfiddle.net/wQbB3/
.panel-2col-stacked {
margin-top: 0;
padding-top: 0;
}
.panel-2col-stacked .panel-col-top, .panel-2col-stacked .panel-col-bottom {
clear: none !important;
width: auto;
}
.panel-col-top {
float: right;
margin: 0 0 0 25px;
vertical-align: bottom;
}
So I need to float the .panel-col-top
div.
Note that I cannot change HTML structure in the systems core, so the divs and containers has to be exactly the same as in the example above. So I guess this is just a CSS question or JS is welcome too. I can replace/switch the panel-col-top content with panel-col-bottom if needed though.
Some Photoshop skills:
Should be something like:
JS solutions are welcome.
3
Answers
Try this:
html
css
fiddle
Change a bit with jquery approach:
js
fiddle jquery approach
After some research i ended with this using prepend():
js
fiddle with .prepend() approach
Using HTML and CSS, the best way to do that is using 2 paragraphs and the
align
img attribute.HTML:
I updated the JS Fiddle. You can check it here: http://jsfiddle.net/wQbB3/6/
Here’s some JS libraries to wrap text around an image: