Open Source Tutorials - Open Source Training
Open source training & tutorials from experienced, passionate people
chrome icon firefox icon ie icon opera icon safari icon Sings in these Browsers
A- A A+

By A Web Design

Welcome, Guest
Username Password: Remember me

More than one declaration to a selector
(1 viewing) (1) Guest
All your queries regarding CSS will be solved in this forum
  • Page:
  • 1
TOPIC:

More than one declaration to a selector

More than one declaration to a selector 1 year, 8 months ago #210

  • shama
  • OFFLINE
  • Senior Boarder
  • Posts: 63
  • Karma: 0
Can I attach more than one declaration to a selector?

Re: More than one declaration to a selector 1 year, 8 months ago #216

  • kuldeep
  • OFFLINE
  • Junior Boarder
  • Posts: 35
  • Karma: 0
Yes. If more than one declaration is attached to a selector they must appear in a semi colon separated list,

e.g.;

Selector {declaration1; declaration2}

P {background: white; color: black}
  • Page:
  • 1
Time to create page: 2.05 seconds
OSV Newsletter


Receive HTML?

NOTE: To prevent subscription to the OSV newsletter, uncheck the checkbox above.
Guest Blog for OSV
Free Ebook Download