473,385 Members | 1,893 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

text wrap in thumbnail

Hallo,
I have the following css for thumbnails
#duimnagel
{
float:left;
padding:15px 15px 15px 15px;
text-align:center;
height:120px;
}

#duimnagel p
{
text-align:center;
}
This is for a div inwhich thumbnails are displayed each one following the
other, breaking off at the end of the line to further on the next line.
Now, caption text is not wrapped to a new line, so the space the thumbnail
takes can become quite large, with empty spaces left and right of the
picture. Is there a way to wrap the text to a new line?
Thanks, Sjef


Oct 9 '08 #1
2 2320
On 10/09/08 05:56 am, Sjef wrote:
>
This is for a div inwhich thumbnails are displayed each one following the
other, breaking off at the end of the line to further on the next line.
Now, caption text is not wrapped to a new line, so the space the thumbnail
takes can become quite large, with empty spaces left and right of the
picture. Is there a way to wrap the text to a new line?
Use a DIV that contains the image and caption; float the DIV, not the
image. You then set the DIV's width to the width of the image plus padding
and margin. Then the text in the paragraph wraps within the confines of
the DIV.
Or simply set the width of the paragraph to that of the image.

--
jmm (hyphen) list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)
Oct 9 '08 #2
In article <48***********************@text.nova.planet.nl>,
"Sjef" <ma*************@planet.nlwrote:
Hallo,
I have the following css for thumbnails
#duimnagel
{
float:left;
padding:15px 15px 15px 15px;
text-align:center;
height:120px;
}

#duimnagel p
{
text-align:center;
}
This is for a div inwhich thumbnails are displayed each one following the
other, breaking off at the end of the line to further on the next line.
Now, caption text is not wrapped to a new line, so the space the thumbnail
takes can become quite large, with empty spaces left and right of the
picture. Is there a way to wrap the text to a new line?
Thanks, Sjef
I think have just the thing for you, it was the format for my own
daughter's wedding pics so it can't be all bad!

<http://preview.tinyurl.com/2jcs5r>

or, if you trust me,

<http://tinyurl.com/2jcs5r>

--
dorayme
Oct 9 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Steve | last post by:
Hi, I have a nice little script that works well displaying images on my website. It's a script where if you clik a thumbnail image a pop up window opens that contains a larger version of the same...
8
by: Keith Thompson | last post by:
I checked the FAQ, but didn't find an answer to this question. I also checked the O'Reilly HTML and CSS books, with a similar lack of results, though I could have missed something in the CSS book....
10
by: Dan V. | last post by:
Is it possible to have 2 divs beside each other and one not wrap around? I realize the 2 div's are floating left but I can only think of this as the best solution for now. I am trying to get...
4
by: ziggy.696040 | last post by:
My web page has thumbnail pictures, and when the user clicks on a thumbnail, I change the image source of a full-size image elsewhere on the page. I'd also like to change the caption of the...
8
by: Chris Beall | last post by:
I'm struggling with how to handle, on a web page, images that contain text that the user must be able to read. Examples: tombstone photos, photos or scans of historic documents (handwritten or...
1
by: Xah Lee | last post by:
The following is a program to generate thumbnail images for a website. Useful, if you want to do that. It is used to generate the thumbnails for my “Banners, Damsels, and Mores” project...
2
by: Azzuron | last post by:
We are trying to translate some raw flat data into a cart. What we have done is BCP the raw files into the database, and then we begin to run a series of SQL commands to copy the data and format it...
1
by: veer165 | last post by:
I have a list of items... And i want a little thumbnail of each item to be displayed when the mouse is over a particular text ... Say if i have a list of fruits i want an apple thumbnail on the...
1
anfetienne
by: anfetienne | last post by:
i have this code below that i made....it loads vars from txt file splits it then puts it into an array....once in an array it the brings the pics in from the array to create thumbnails and a larger...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.