Jump to content

Recommended Posts

hi

 

I have problem with my textarea.

what I am trying to do that I want the font be BOLD & color in the textarea just like in the FCKEDITOR.

but I don't know ho I do this.

 

I put in the testarea:

<center><b>hi</b></center>

 

but the hi doesn't appear bold just like what I write with the <b> & <center> tags.

so please help me.

 

thanks.

Link to comment
https://forums.phpfreaks.com/topic/90867-need-help/
Share on other sites

I just need the text in the textarea appear with bold and color and every thing just like in the forums when the user is going to register

 

to accept the terms of use so (vb forums) so I do not know how to do this.

 

maybe you can help me with this.

 

 

thanks for you any way.

Link to comment
https://forums.phpfreaks.com/topic/90867-need-help/#findComment-466227
Share on other sites

better solution:

 

input {

font-weight: bold;

}

 

will change all textareas to have bold text. - But I warn you, everything in input fields, boxes, submit buttons will change too. You can also take it to the next step and do this:

 

input type=[textarea] {

font-weight: bold;

}

 

I don't know if the 2nd example works

Link to comment
https://forums.phpfreaks.com/topic/90867-need-help/#findComment-467353
Share on other sites

better solution:

 

input {

font-weight: bold;

}

 

will change all textareas to have bold text. - But I warn you, everything in input fields, boxes, submit buttons will change too. You can also take it to the next step and do this:

 

input type=[textarea] {

font-weight: bold;

}

 

I don't know if the 2nd example works

 

The only issue with that is that all of your input fields will then be in bold; buttons included - as your previously stated. That is why I gave the textarea's id a specific font-weight style. It is probably better to style an id or class for this one; instead of creating more specific classes and ids for the non-bold input fields - you know what I mean. ;)

Link to comment
https://forums.phpfreaks.com/topic/90867-need-help/#findComment-467420
Share on other sites

 

The only issue with that is that all of your input fields will then be in bold; buttons included - as your previously stated. That is why I gave the textarea's id a specific font-weight style. It is probably better to style an id or class for this one; instead of creating more specific classes and ids for the non-bold input fields - you know what I mean. ;)

 

I agree with you. But my second example would only affect textareas - except it isn't supported in like 90% browsers, except opera.

Link to comment
https://forums.phpfreaks.com/topic/90867-need-help/#findComment-467685
Share on other sites

input type=[textarea] {

font-weight: bold;

}

 

I believe that the correct way to write this is

input:textarea {
font-weight:bold;
}

 

The code varies a great deal since it isn't "officially" a standard. Therefore, Opera and Firefox have different ways to support it. I do believe that your method is currently supported by more browsers than my method is.

 

Link to comment
https://forums.phpfreaks.com/topic/90867-need-help/#findComment-472280
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

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