Solved

how put color in   hr and textbox

Posted on 2001-09-15
11
331 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
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 25 total points
ID: 6484605
<FORM>
<TEXTAREA rows="10" cols="50" style="background-color:#000000>
</TEXTAREA>
</FORM>
0
Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

 
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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Which non-HTML GUI front end to use with Java? 3 24
Index on a Table 6 25
jQuery Dialog Autoresize Bug 2 24
.htaccess css/images no longer loading 4 35
SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
In this tutorial viewers will learn how to position items using CSS's three positioning types Create a new HTML document with an internal stylesheet.: Create another div in CSS and name it Absolute : Type "position:absolute;" and "top:10px; left:50p…
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…

807 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