ToYourEscape
02-28-2004, 11:32 AM
I want to know how to align text with an image i have. I want the text to be centered, underneath the image I have.
Thanks,
Dave
Thanks,
Dave
|
Click to See Complete Forum and Search --> : Aligning text and images ToYourEscape 02-28-2004, 11:32 AM I want to know how to align text with an image i have. I want the text to be centered, underneath the image I have. Thanks, Dave ray326 02-28-2004, 04:08 PM You could put the pair in a properly styled div. Just make the div about (=>) the width of the image. <style type="text/css"> .foo { width:150px; text-align:center; } </style> <body> <div class="foo"> <img src="someimage" width="149" height="100" /> <p>Here's some text to be centered under the image.</p> </div> </body> webdeveloper.com
Copyright Internet.com Inc., All Rights Reserved. |