The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Table <tr> Tag - Style, Adding an unique style to the table <tr> tag
jerryr125
post Dec 19 2019, 04:52 PM
Post #1





Group: Members
Posts: 1
Joined: 19-December 19
Member No.: 27,085



Hi -
I have a <table> in which I would like to add style to the <tr> tag.
I know I can do this via css but I CANNOT do so since the gmail output is cutting off the <STYLE> tag.
Therefore, in the <tr> tag I is there a way to add style so that every odd row has a background color of, say, green and every even row has a background color of, say, grey ?
<TR style = "???">

Any help is appreciated ! Jerryr
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Dec 19 2019, 11:19 PM
Post #2


Don't like donuts. Don't do MySpace.
********

Group: WDG Moderators
Posts: 18,566
Joined: 9-August 06
Member No.: 6



With the style attribute. But you need to add it to every TR that you want to style.

https://htmlhelp.com/reference/css/style-html.html#inlining
User is online!PM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 28th February 2020 - 08:15 PM