Jump to content

limit form names then line break


searls03

Recommended Posts

What? Your question, at least to me, doesn't make any sense!

 

PS: The "font" tag is deprecated and underlining an input element makes no sense at all. You can use CSS to specify font type, color and decorations.

 

Ex:

input { color:brown; font-size:15px; text-decoration:underline; }

Oh lol, think I got it, but it has nothing to do with PHP.

 

CSS Code

input.link { width:100px; } /* change the value to your needs */

 

The width property will specify the dimensions of the button and if it's value attribute goes longer than 100px (or whatever), it will break the line.

You're right, didn't think well about it. Input button can't break, but you can use the button tag which is a lot more flexible. It acts in the same exact way as an input type submit.

 

<form action="reply.php?com_id=$com_id" method="post">
<button type="submit" name="submit" class="link">A very long lone which should normally break across several lines.</button>
</form>

 

CSS Code

button.link { background:none; border:none; width:100px; }

 

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.