• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

CSS question

 
Hendra Kurniawan
Ranch Hand
Posts: 239
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


as you can see, I need to declare div#myDiv over and over again. is it possible to do something like this:
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64620
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No.
 
Albareto McKenzie
Ranch Hand
Posts: 299
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not in CSS but you can do something like that using sass and scss. But it is not CSS, you have to compile your files and they will generate a css for you.
 
Rob Crowther
author
Ranch Hand
Posts: 297
5
Android Fedora Firefox Browser
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
One day it will be possible one way or another in 'raw' CSS, but it's not finalized and no current browser support.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic