Topic: float an image
I want to float all images to the left
with text wrapping it to the right.
How can I achive this?
You are not logged in. Please login or register.
PunBB Forums → PunBB 1.2 troubleshooting → float an image
I want to float all images to the left
with text wrapping it to the right.
How can I achive this?
<div><span style="float: left;"><img alt="" src="../../img/blank.gif"></span>
<span style="float: right;">This is my text</span></div>
<div><span style="float: left;"><img alt="" src="../../img/blank.gif"></span> <span style="float: right;">This is my text</span></div>
This is correct for html but not for posting in punBB.
I hope to adjust a css page to make it universal for all posts.
Any tips on this?
An image tag should be <img src="" alt="" />.
img { float: right; }
An image tag should be <img src="" alt="" />.
It does not matter. Once it is in the line. It works for me the way I showed him and it is also w3c approved.
Meowmeow wrote:An image tag should be <img src="" alt="" />.
It does not matter. Once it is in the line. It works for me the way I showed him and it is also w3c approved.
The alt attribute is required for image tags
I believe they were debating the placement, i.e: src alt versus alt src.
Silly me, I somehow missed that in the original code
I believe they were debating the placement, i.e: src alt versus alt src.
Or more importantly the fact that the <img> tag should be self closing.
Oops. I never noticed that trailing slash missing. Must admit, I always use the <img ... /> method.
momotaro - if you want all images users include in posts/signatures to be floated to the left, there are two places you could work from:
A: You could edit your include/parser.php file. Look around line #300 - it's where the BBCode image tags get turned into HTML.
B: You could edit your style/imports/base.css file. Look around line #199 - that's where you'll find the CSS for images in posts.
I'd recommend option B, as it's much simpler. However, with option A and some tweaking, you could make floating optional via BBCode.
PunBB Forums → PunBB 1.2 troubleshooting → float an image
Powered by PunBB, supported by Informer Technologies, Inc.