Welcome Guest, Not a member yet? Register   Sign In
Formatting Tables with CSS
#11

[eluser]pickupman[/eluser]
[quote author="John_Betong" date="1271412331"] 
Try this:
Code:
// old
    <tr class="&lt;?php echo alternator('alt,'');?&gt;">

  // New
    <tr style="&lt;?php echo alternator('background:#cfc','background:#ffc'); ?&gt;">
&nbsp;
&nbsp;
&nbsp;
edit: added missing #[/quote]
Inline style is bad practice as it is a pain to go back and edit the colors. Best to use a css class.


Messages In This Thread
Formatting Tables with CSS - by El Forum - 04-15-2010, 07:23 PM
Formatting Tables with CSS - by El Forum - 04-15-2010, 07:36 PM
Formatting Tables with CSS - by El Forum - 04-15-2010, 07:37 PM
Formatting Tables with CSS - by El Forum - 04-15-2010, 08:38 PM
Formatting Tables with CSS - by El Forum - 04-15-2010, 10:06 PM
Formatting Tables with CSS - by El Forum - 04-15-2010, 10:48 PM
Formatting Tables with CSS - by El Forum - 04-15-2010, 11:05 PM
Formatting Tables with CSS - by El Forum - 04-15-2010, 11:43 PM
Formatting Tables with CSS - by El Forum - 04-16-2010, 12:17 AM
Formatting Tables with CSS - by El Forum - 04-16-2010, 05:54 AM
Formatting Tables with CSS - by El Forum - 04-16-2010, 06:39 AM
Formatting Tables with CSS - by El Forum - 04-16-2010, 08:18 AM
Formatting Tables with CSS - by El Forum - 04-16-2010, 06:53 PM
Formatting Tables with CSS - by El Forum - 04-17-2010, 01:16 AM



Theme © iAndrew 2016 - Forum software by © MyBB