salhzmzm Posted February 13, 2008 Share Posted February 13, 2008 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. Quote Link to comment https://forums.phpfreaks.com/topic/90867-need-help/ Share on other sites More sharing options...
GameYin Posted February 13, 2008 Share Posted February 13, 2008 What DOC type are you using? Try <strong> instead of <b> Quote Link to comment https://forums.phpfreaks.com/topic/90867-need-help/#findComment-465756 Share on other sites More sharing options...
salhzmzm Posted February 13, 2008 Author Share Posted February 13, 2008 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. Quote Link to comment https://forums.phpfreaks.com/topic/90867-need-help/#findComment-466227 Share on other sites More sharing options...
phpQuestioner Posted February 13, 2008 Share Posted February 13, 2008 You can do this with CSS; like so: <style type="text/css"> #tos {font-weight:bold;width:300px;height:100px} </style> <textarea id="tos"></textarea> Quote Link to comment https://forums.phpfreaks.com/topic/90867-need-help/#findComment-466334 Share on other sites More sharing options...
GameYin Posted February 14, 2008 Share Posted February 14, 2008 Well that too Quote Link to comment https://forums.phpfreaks.com/topic/90867-need-help/#findComment-466692 Share on other sites More sharing options...
TheFilmGod Posted February 15, 2008 Share Posted February 15, 2008 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 Quote Link to comment https://forums.phpfreaks.com/topic/90867-need-help/#findComment-467353 Share on other sites More sharing options...
phpQuestioner Posted February 15, 2008 Share Posted February 15, 2008 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. Quote Link to comment https://forums.phpfreaks.com/topic/90867-need-help/#findComment-467420 Share on other sites More sharing options...
TheFilmGod Posted February 15, 2008 Share Posted February 15, 2008 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. Quote Link to comment https://forums.phpfreaks.com/topic/90867-need-help/#findComment-467685 Share on other sites More sharing options...
salhzmzm Posted February 15, 2008 Author Share Posted February 15, 2008 thanks very much. and I want for example to change the font and bgcolor and font color and every thing how I can do this. just like FCKeditor but without the toolbars for it. thanks very much again Quote Link to comment https://forums.phpfreaks.com/topic/90867-need-help/#findComment-467985 Share on other sites More sharing options...
Guardian-Mage Posted February 20, 2008 Share Posted February 20, 2008 input type=[textarea] { font-weight: bold; } I believe that the correct way to write this is input:textarea { font-weight:bold; } Quote Link to comment https://forums.phpfreaks.com/topic/90867-need-help/#findComment-472221 Share on other sites More sharing options...
TheFilmGod Posted February 20, 2008 Share Posted February 20, 2008 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. Quote Link to comment https://forums.phpfreaks.com/topic/90867-need-help/#findComment-472280 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.