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
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
Depending on complexity,
Center or left align depending...HTML Code:Texttextexttexttext....texttext...<br> <img src="something.jpg" alt="blah">
Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum
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.
"Specify the pixel size?" Eh?you will likely have to specify the [...] pixel size.
Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!
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.
Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!
Bookmarks