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