Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / ColdFusion / Advanced Techniques / November 2004



Tip: Looking for answers? Try searching our database.

CSS - images with text under image

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
want-a-be - 15 Nov 2004 22:52 GMT
I'm developing a page where I have 8 images lined up (horizontal) and I would
like some text under each img. I'm learning CSS and trying to do this without
tables. How do I go about getting some text to appear under each image. Also, I
defined each image as a link that would open up that an email request for that
person in the image. I can get the text to the side of each image but not sure
how to get it under and still have the images lined up next to each other.

Any help would be great.

thanks,
silversalmon - 29 Nov 2004 17:11 GMT
you could try along the lines of
<div id="imgstrip">
<span><img><p>image text</p></span>
<span><img><p>image text</p></span>
<span><img><p>image text</p></span>
</div>

make <span> inline, set borders on image and define span width/height etc with
css

#imgstrip p {display:block; padding-top: 0.5em; }
#imgstrip span {display: inline}

or you might need to insert <br /> after <img>
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.