Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Alternating line colors for TEXTAREA 1

Status
Not open for further replies.

medic

Programmer
Jun 14, 2000
459
US
Hi,

Is there a way to make a TEXTAREA with lines of alternating background colors (e.g. white & lightgray lines)? If not, can anyone suggest a similar control that can do this?

TIA

Medic
 
Well... it's a bit of kludge, but you could do something like:
Code:
<html>
<body>
<textarea rows=&quot;24&quot; cols=&quot;80&quot; style=&quot;background:#ffffff url(stripedBgImg.gif);&quot;>
Hello, everybody...
</textarea>
</body>
</html>
... just make your &quot;stripedBgImg&quot; the right size stripes in grey and white... It would fill the entire text-area, not just the areas with text in them, but it'd work if carefully applied. Of course, you'll also need to set the text styles for the text area to match your image row-height.

Hope that's not completely useless information.
 
Good hack - nice one :)

Posting code? Wrap it with code tags: [ignore]
Code:
[/ignore][code]CodeHere
[ignore][/code][/ignore].
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top