Log in

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...

JRS
05-19-2006, 10:33 AM
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.

Twey
05-19-2006, 10:41 AM
you will likely have to specify the [...] pixel size."Specify the pixel size?" Eh?

JRS
05-19-2006, 10:51 AM
The default font size/style/weight/family may or may not yield the desired alignment.

Twey
05-19-2006, 10:59 AM
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.