Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 02-14-2013, 05:17 PM   PM User | #1
Antonel1
New to the CF scene

 
Join Date: Feb 2013
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Antonel1 is an unknown quantity at this point
Wrap text under thumbnails of different width sizes

Hello,

I have a page filled with thumbnails of different widths and heights. There is text that goes under each thumbnail. I want the text to stay within the parameters of the image width. I'm having problems getting the text not to exceed the width of the image.

Setting a width size for the text in css doesn't work because then it won't consider the images that are wider. Position absolute in css worked but the text no longer goes under the image but overlaps the image.

Can someone please help me solve this problem? What am I missing here?

Antonella
Antonel1 is offline   Reply With Quote
Old 02-14-2013, 05:26 PM   PM User | #2
Excavator
Master Coder


 
Excavator's Avatar
 
Join Date: Dec 2006
Location: Alaska
Posts: 9,410
Thanks: 22
Thanked 1,765 Times in 1,749 Posts
Excavator has a spectacular aura aboutExcavator has a spectacular aura aboutExcavator has a spectacular aura about
Hello Antonel1,
When putting captions with images it's easiest to just make a containing element to hold both. Look at how easy captions can be when you know the width of your containing element.

For the varying width images, it might be easy to make a couple different sized boxes to hold them?
__________________
Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad
Excavator is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 02:58 AM.


Advertisement
Log in to turn off these ads.