Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
putting text right below an image
Old 09-09-2008, 12:28 PM putting text right below an image
Skilled Talker

Posts: 85
Trades: 0
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
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
allan16 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 09-09-2008, 02:21 PM Re: putting text right below an image
Defies a Status

Posts: 2,071
Name: carl
Location: UK
Trades: 0
Hi

I think you need to post some code, CSS if thats how you've styled your site.

Have your zero'd the padding and margines? - for the images you would zero the bottom, for the text you would zero the top. Doing that should mean the text sits right underneath the image.
You will need to set a seperate class for the text I would imagine you dont want all text to have 0 padding etc.
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
bakerc is offline
Reply With Quote
View Public Profile Visit bakerc's homepage!
 
Old 09-09-2008, 02:56 PM Re: putting text right below an image
angele803's Avatar
Perfectly Imperfect

Posts: 1,772
Name: Stephanie
Location: Oklahoma
Trades: 2
You might also want to look into "definition lists"
They can work out well for pictures with captions
__________________

Please login or register to view this content. Registration is FREE
angele803 is offline
Reply With Quote
View Public Profile
 
Old 09-09-2008, 03:20 PM Re: putting text right below an image
Defies a Status

Posts: 2,071
Name: carl
Location: UK
Trades: 0
I thought of that but can you put dl's directly under the picture? I thought they were indented or can that be changed (I don't know if you can)
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
bakerc is offline
Reply With Quote
View Public Profile Visit bakerc's homepage!
 
Old 09-09-2008, 05:07 PM Re: putting text right below an image
serandfae's Avatar
Do the "Evil Nanner" !!!

Posts: 9,007
Name: Tim Daily
Location: Apex, NC, US, Sol 3
Trades: 0
You put the <img> inside the <dt>, and the text inside the <dd>. Yes, you will have to put some CSS rules for how they display, ie list-style-type:none; and so on.

Once enough users are using a version of IE that supports the table, table-row, and table-cell display properties (say, 2058) there'll be even better ways to do it.

Until then, why not just use tables and iframes? (duck)


tim
__________________
SEO "experts" smell like Big Fish_|_
Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

serandfae is offline
Reply With Quote
View Public Profile Visit serandfae's homepage!
 
Old 09-09-2008, 05:24 PM Re: putting text right below an image
Defies a Status

Posts: 2,071
Name: carl
Location: UK
Trades: 0
The devil strikes again

Must admit I have only read about definition lists and played with them on my machine which is why I wasn't too sure if you could 'un indent' the definition description.
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
bakerc is offline
Reply With Quote
View Public Profile Visit bakerc's homepage!
 
Old 09-09-2008, 07:52 PM Re: putting text right below an image
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
You can control most things with CSS, especially lists. Indenting is nothing but a default behavior that you can cancel out with CSS.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 09-09-2008, 11:01 PM Re: putting text right below an image
serandfae's Avatar
Do the "Evil Nanner" !!!

Posts: 9,007
Name: Tim Daily
Location: Apex, NC, US, Sol 3
Trades: 0
Altering the display of an unordered list or definition list is at the heart of Suckerfish menus, for instance. If you wanted, you could put a background image in each <dd>, define the proportions and force the text to the bottom. I'd say the other way is better, but that's the beauty of CSS's flexibility.

tim
__________________
SEO "experts" smell like Big Fish_|_
Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

serandfae is offline
Reply With Quote
View Public Profile Visit serandfae's homepage!
 
Old 05-10-2009, 10:22 AM Re: putting text right below an image
Junior Talker

Posts: 1
Name: rommel smith
Trades: 0
hello guys,

Thanks for the posting, it helps me a lot when in comes to customize my page. Continue share this info to everyone.
__________________

Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE
rsmith is offline
Reply With Quote
View Public Profile
 
Old 05-10-2009, 10:31 AM Re: putting text right below an image
Leopard's Avatar
Extreme Talker

Posts: 242
Trades: 0
I would make one recommendation, Don't use tables anymore, use CSS. CSS makes it more accessible for more users, it is easier to change things in the long run, it is easy to learn, and it is better for web-page voice readers for those who are blind.
Leopard is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to putting text right below an image
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.44299 seconds with 12 queries