function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Coral RacingCoral Racing 

VF Email Template HTML Table formatting Help?

Hi

I have a template that looks like this:



User-added image

Now I have been asked if this can be modified so the last row second column cell has a white background and not blue.
How would I change the inline css to show this from this?
TH {font-size: 14px; font-face: Ariel;BACKGROUND: #C6DBEF; border-width: 1;  width: 400px; text-align: left }
TD {font-size: 14px; font-face: Ariel; text-align: left;COLOR:#FFFFFF; BACKGROUND: #1669BC }
TABLE {border: solid #CCCCCC; border-width: 1}
TR {border: solid #000000; border-width: 1; vertical-align: top; text-align: left; width: 400px;}
</STYLE>
<font face="ariel" size="2">

I would appreciate any suggestions, as I cannot figure it out?

Do I need a second TH?

Many thanks

Sonya
 
Best Answer chosen by Coral Racing
Coral RacingCoral Racing
I added the following directly into my code:
 
<td style=”background:#ffffff”>
 

All Answers

Coral RacingCoral Racing
I added the following directly into my code:
 
<td style=”background:#ffffff”>
 
This was selected as the best answer
Kamal BelayacKamal Belayac
hello Sonya , 
You can use last-child for that you should do :
table tr : last-child td : last-child { background : value .... ;}
which means for table last tr , last td ( last row last cell )
If it's ok mark as solved if it doesn't bother you =) .

best regards,
 
Kamal BelayacKamal Belayac
ok thought you've been adding the rows programmatically in that case wouldn't work =) have a good day .