Skip to content Skip to sidebar Skip to footer

How To Limit The Number Of Characters For Strong Tag?

can anyone pls tell me 'how to limit the number of ccharacters for a product name' I mean here: http://laptopsisland.com/shop/c/netbooks/ Some product names are very big, because o

Solution 1:

you can't..strong tag defines an important text. Whatever your text inside the strong tag will be diplayed. If you want to limit the number of characters use text box. try this:

<inputtype="text"class="below-thumb" value="product_name" maxlength="10">

hope this helps you out.

UPDATE: to set the textbox ineditable and remove the border, add these line of codes as an attribute to your textbox.

readonly="readonly" style="border:0px"

Post a Comment for "How To Limit The Number Of Characters For Strong Tag?"