Jump to content

Need help


salhzmzm

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

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.