Jump to content

looking for a fixed width...


co.ador

Recommended Posts

<li style="padding:3; border:0; margin:0; float:left; text-align:center; "><p style=" padding:8px; border:0; margin:0; text-align:center; left:5px;" ><a href="',$uri,'"  >',$alt,'</a></p></li>

 

Guys I want the text of this variable ',$alt,' which is a piece of text "$alt=Air Jordan exponent" to have a fixed width to avoid it to extend all the way to the right, instead I want the text to go down if it is too long...

Link to comment
https://forums.phpfreaks.com/topic/174386-looking-for-a-fixed-width/
Share on other sites

Thank you...

 

When I fixed a width then the thumbs goes all over

 

 

I think something is wrong with the structure of the <li> tags

 

 

<li style="padding:3; border:0; margin:0; float:left; text-align:center; "><p style=" padding:8px; border:0; margin:0; text-align:center; left:5px; width:50;" ><a href="',$uri,'"  >',$alt,'</a></p><a href="',$uri,'" title="',$alt,'" style="padding:0; border:0; margin:0; " ><img  width="',$width,'" height="',$height,'" alt="',$alt,'" src="',$srcp,'"   /></a></li>

 

 

below is the second part of the code above and it contain a picture box.

<a href="',$uri,'" title="',$alt,'" style="padding:0; border:0; margin:0; " ><img  width="',$width,'" height="',$height,'" alt="',$alt,'" src="',$srcp,'"   /></a>

 

The way it display is a text above the picture but when a width is fixed the thumbs display not in order they go all over.

 

it display a line then the next line display two thumbs and then the next line display all thumbs it goes kind of crazy...

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.