Welcome Guest, Not a member yet? Register   Sign In
CSS questions
#9

(08-31-2016, 06:32 AM)planteg Wrote: Hi Joel and Wouter60,

my mistake was:

Code:
$row1 = [
 'data' => 'Some text',
 'class' => 'row_without_color',
 'background-color' => 'yellow'      // CSS property
]

But that worked:

Code:
$row1 = [
 'data' => 'Some text',
 'class' => 'row_without_color',
 'bgcolor' => 'yellow'      // HTML property
]

Joel suggestion works fine also. This is what I implemented, because as far as I know it is recommended to use css (and css properties) over HTML.

Thanks


Woah! That's nice. I don't have any idea about bgcolor attribute (it's because I'm more on backend Smile ). I googled bgcolor if it has a compatibility issue but seems that there is no problem of using it. It is very simple instead of using style="background~~" attribute. Thanks for the share!
[Just a programmer] Cool [/Just a programmer]
Reply


Messages In This Thread
CSS questions - by planteg - 08-30-2016, 12:49 PM
RE: CSS questions - by StratoKyke - 08-30-2016, 04:52 PM
RE: CSS questions - by Joel Catantan - 08-30-2016, 05:13 PM
RE: CSS questions - by Wouter60 - 08-30-2016, 10:30 PM
RE: CSS questions - by planteg - 08-31-2016, 06:32 AM
RE: CSS questions - by Joel Catantan - 09-05-2016, 11:47 PM
RE: CSS questions - by Wouter60 - 08-31-2016, 07:18 AM
RE: CSS questions - by planteg - 08-31-2016, 07:46 AM
RE: CSS questions - by Wouter60 - 08-31-2016, 08:06 AM



Theme © iAndrew 2016 - Forum software by © MyBB