co.ador Posted September 15, 2009 Share Posted September 15, 2009 <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... Quote Link to comment Share on other sites More sharing options...
saltedm8 Posted September 15, 2009 Share Posted September 15, 2009 as long as it has no height and you have set a width, as soon as the text is too long, it will go to the next line Quote Link to comment Share on other sites More sharing options...
co.ador Posted September 16, 2009 Author Share Posted September 16, 2009 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... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.