Member
Member
Noppes   2010-07-02, 09:51
#1

Hi,

I have a question or a little problem with the comment_form.php extension. For each inputbox (e.g. email, website..) is a label declared
Example:

But for the name input box there is nothing like this. Why? I would like to change the font size and colour for label, but for the input box this didn't work out. Is this a bug or is this on purpose?

Thanks

Noppes

Administrator
Administrator
acrylian   2010-07-02, 11:25
#2

Looks like a mistake. But that plugin supports custom theme forms. Just copy the actual comment_form.php file (that in the folder) to your theme and modifiy it to your liking

Member
Member
Noppes   2010-07-02, 14:47
#3

Thanks. I fixed it.

Member
Member
sbillard   2010-07-02, 16:27
#4

Why don't you just style the input ID 'name'? The `` tags are to keep the checkbox and text together for clicking. No checkbox for the 'name' input field.

Administrator
Administrator
acrylian   2010-07-02, 17:30
#5

[i]The tags are to keep the checkbox and text together for clicking. No checkbox for the 'name' input field.[/i]
No, that is not correct, sbillard. Labels are for all types of form elements.

Member
Member
sbillard   2010-07-02, 22:59
#6

So, are you sayuing that the labels do not keep the text an checkbox together so that when you click on the text the box gets checked?

Administrator
Administrator
acrylian   2010-07-03, 08:10
#7

Of course labels do that for checkboxes and for all other form elements as well. But the actual purpose of labels is to keep the text and its form element semantically tied together.

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.