Hello, I am building a site where it will have several images and need to put a description text right below the image but I can't seem to get the text just right below it. I can only get it there but there is like a line in between and I dont want any spaces between the image and the text. (maybe a little but minimun) Thanks
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <title>Test Page</title> <style type="text/css" media="screen"> body { background-color: black; } img { display: block; width: 250px; height: 70px; border: 0; margin: 0; padding: 0; } div { background-color: white; border: 0; margin: 0; padding: 0; } </style> </head> <body> <img alt="logo" src="abc.jpg"> <div>text</div> </body> </html>
You don't say if there is a single image of a group of them. Try this layout for multiple images on a page using a floated UL/LI structure. There should be enough information there to work out a single image as well. Wrap the img and the text inside a div with a width if it is a single image. http://jlhaslip.com/samples/gallery/thumbs/index.html