Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

how put color in   hr and textbox

Posted on 2001-09-15
11
Medium Priority
?
338 Views
Last Modified: 2010-04-09
hi i want to put color in textbox and hr
and ­ is not working in ie
0
Comment
Question by:tarun209
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
11 Comments
 
LVL 1

Author Comment

by:tarun209
ID: 6484571
plz help me
0
 
LVL 7

Expert Comment

by:ClassyLinks
ID: 6484592
are you using a style sheet or want to do it inline?


Try this for your hr:

<hr color="#FF0000">

And what exactly do you want to color in the text box?  The text?  The backround??
0
 
LVL 7

Accepted Solution

by:
ClassyLinks earned 100 total points
ID: 6484605
<FORM>
<TEXTAREA rows="10" cols="50" style="background-color:#000000>
</TEXTAREA>
</FORM>
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 1

Expert Comment

by:baltman
ID: 6484765
ClassyLinks is right, although the coloring of the textbox will not work in Netscape. If I recall correctly, there is no way to modify the color of a textbox in Netscape.

To add to ClassyLinks HR code:
<HR NOSHADE COLOR="#FF0000" WIDTH="50%">

This will create a horizontal rule without shade (like a single straight line), color Red, and half of the abailable width.
Again, this is not intended as an answer, the credit should go to ClassyLinks, if ever....just a suggestion...

BA
0
 
LVL 2

Expert Comment

by:TenTonJim
ID: 6486660
also, to trick the sorry browser...oops I mean Netscape 4.x into creating a colored phony <hr> create a dummy table and color it:

<table width="100%" cellspacing="0" cellpadding="0" border="0" bgcolor="#0000FF">
<tr>
<td width="100%"><img src="spacer.gif" width="1" height="2"></td>
</tr>
</table>

This would create a 2 pixel high blue line that works even in NS4.x for an example see http://artifexbid.com (my day job) they have green "<hr>" tags all throughout the site that are cross browser (actually are tables).

Classylinks covered the <textarea> answer, no love for that in NS4.x


Jim S.
0
 
LVL 2

Expert Comment

by:udnimbalkar
ID: 6513548
check this for ie

<html>
<style>
hr { color: red}
input { background:blue}
</style>
<body>
<hr>
<input>
</body>
</html>
0
 
LVL 53

Expert Comment

by:COBOLdinosaur
ID: 6694892
This question has been abandoned.  I will make a recommendation to the
moderators on its resolution in a week or two.  I appreciate any comments
that would help me to make a recommendation.

Cd&
0
 
LVL 53

Expert Comment

by:COBOLdinosaur
ID: 6714270
It is time to clean this abandoned question up.  

I am putting it on a clean up list for CS.

<recommendation>
Points to ClassyLinks

</recommendation>

If anyone participating in the Q disagrees with the recommendation,
please leave a comment for the mods.

Cd&
0
 
LVL 7

Expert Comment

by:ClassyLinks
ID: 6715353
Thanks Cd&  ;)
0
 
LVL 1

Expert Comment

by:Computer101
ID: 6716520
Comment from ClassyLinks accepted as answer.

Thank you
Computer101
Coommunity Support Moderator
0
 
LVL 7

Expert Comment

by:ClassyLinks
ID: 6717690
Thanks!
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

636 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question