Solved

how put color in   hr and textbox

Posted on 2001-09-15
11
332 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 25 total points
ID: 6484605
<FORM>
<TEXTAREA rows="10" cols="50" style="background-color:#000000>
</TEXTAREA>
</FORM>
0
Technology Partners: 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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

730 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