I am making a site where images should be displayed next to text content - a kind of pseudo-column layout, as the images and text come from the same HTML source.
I found a fairly simple way to do this by putting the images as their own paragraphs and floating. Would there be an even simpler way (in relation to html) to do this without these additional paragraphs and only attribute additional css images?
If the floating image is in the same paragraph as the text, then paragraphs with and without images will differ in width.
EDIT . Basically, I'm looking for as simple HTML markup as possible for posting images like this . CSS can be complicated;)
CSS: p { width: 500px; } p.image { float: right; width: 900px; } Current HTML: <p class="image"><img src="image.jpg" /></p> <p>Some text here.</p> Is the above possible with this HTML? <p><img src="image.jpg" /></p>
css positioning
user131342
source share