3 Replies - 425 Views - Last Post: 26 January 2009 - 07:46 AM

#1 jason-pc  Icon User is offline

  • D.I.C Head

Reputation: 1
  • View blog
  • Posts: 61
  • Joined: 10-January 09

is this possible? style="some_css_name some_other_css_name"

Posted 25 January 2009 - 05:58 AM

i wish to have a way to use different css's within my divs and tables.

for example

colour and background colour for each seperate table or div.

instead of having to create a css name for every possible combination of colours and background colours.

can this be done ?
Is This A Good Question/Topic? 0
  • +

Replies To: is this possible? style="some_css_name some_other_css_name"

#2 ericr2427  Icon User is offline

  • D.I.C Regular
  • member icon

Reputation: 38
  • View blog
  • Posts: 376
  • Joined: 01-December 08

Re: is this possible? style="some_css_name some_other_css_name"

Posted 25 January 2009 - 10:18 AM

Wouldn't it just be easier to manually set the color and background for each one?
<div style="color: #000000; background: #FFFFFF;">


Was This Post Helpful? 0
  • +
  • -

#3 Arenlor  Icon User is offline

  • D.I.C Regular
  • member icon

Reputation: 34
  • View blog
  • Posts: 389
  • Joined: 26-April 06

Re: is this possible? style="some_css_name some_other_css_name"

Posted 26 January 2009 - 07:37 AM

You mean without using IDs?
Was This Post Helpful? 0
  • +
  • -

#4 thehat  Icon User is offline

  • awake ? web();
  • member icon

Reputation: 106
  • View blog
  • Posts: 951
  • Joined: 28-February 08

Re: is this possible? style="some_css_name some_other_css_name"

Posted 26 January 2009 - 07:46 AM

You can use multiple class names.
.blue {
	  color:#00f;
}
.red {
	  color:#f00;
}
.blue_bg {
	  background-color:#00f;
}
.red_bg {
	  background-color:#f00;
}


<div class="blue red_bg"></div>
<div class="red blue_bg"></div>


Was This Post Helpful? 0
  • +
  • -

Page 1 of 1