View Full Version : Alignment
Freeman
05-12-2006, 02:11 PM
I need text to be aligned on top of a picture. Can I do this without having to build table and all that fun stuff? JF
djr33
05-12-2006, 06:28 PM
Depending on complexity,
Texttextexttexttext....texttext...<br>
<img src="something.jpg" alt="blah">
Center or left align depending...
If you simply want the text to be on top of the picture, the line break will do the trick; however, if you really want to align the text (like a caption), then you will likely have to specify the font style and pixel size.
you will likely have to specify the [...] pixel size."Specify the pixel size?" Eh?
The default font size/style/weight/family may or may not yield the desired alignment.
You mean to specify the font size in pixels?
No, that's not clever.
Specify a containing DIV around the text and the image, with its width set to that of the image.
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.