Jump to content

Recommended Posts

Hi, I am having a problem getting text to fit on a single line below my images when the text is too long. It seems quite simple, but I can't figure it out for the life of me. Here's a link showing the issue (as you can see, because the text below "White Oak Amaretto" is on two lines, the images are no longer aligned at the top): http://ezliquidators.1free.ws/products.php?mat=hardwood

 

It really wouldn't be much of a problem if the text continues to appear on two lines as long as the images stay aligned. That's the main concern. Here is the CSS:

 

#tile
{
width: 98%;
height: 98%;
padding: 1% 1% 0px 1%;
}
#tileinfo
{
padding-left: 10px;
padding-right: 10px;
display: table-cell;
}
td
{
width: 14%;
height: 14%;
}
table
{
width: 94%;
padding-left: 1%;
}

#dimension
{
margin-left: 10px;
padding-left: 70px;
padding-top: 0.1%;
margin-right: 20px;
height: 21px;
background: url(dimhead.png) no-repeat;
color: #252525;
}

 

The other thing I don't understand is that if there are fewer than 5 images to be shown, the images just take up the entire space, even though I've set the table cells at 14% width and height. Any help would be greatly appreciated.

 

Cheers,

 

Chahe

Link to comment
https://forums.phpfreaks.com/topic/239265-making-text-fit-on-one-line-below-image/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.