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

You can also combine multiple css classes, seperated by a space character.
E.g.

css file:
Code:
.row_without_color {
  text-align: center;
  width: 200px;
  font-family: verdana;              
  color: black;
  font-size: xx-large;
  font-weight: bold;
}

.row_red { background-color: red; }
.row_yellow { background-color: yellow; }
.row_yellowgreen { background-color: yellowgreen; }

controller (or view)
PHP Code:
$row1 = array(
 
 'data' => 'Some text',
 
 'class' => 'row_without_color row_yellow'
 
); 
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