Half a croissant, on a plate, with a sign in front of it saying '50c'

h a l f b a k e r y
See website for details.

idea: add, search, annotate, link, view, overview, recent, by name, best, random

meta: news, help, about, links, report a problem

account: Browse anonymously, or get an account and write.

User:
Pass:

or Create a new account.


       

Store CSS Rules In Persistence Layer
Put your CSS rules in a database, offering better management during development.
  (+1, -3)
(+1, -3)
  [vote for,
against]


When working with Cascading Style Sheets (CSS) it can quite easily mushroom into an unmanageable haystack behind your back right under your nose.

Most slightly complex sites these days are also working with a persistence layer - for example, a database.

My idea is to put the CSS rules into that database.

This way, some bright spark can develop a front end that resembles something like what I imagine a spreadsheet to be like, if I'd ever sat in front of one in my life. A way of collating different views of the data groupings, which can be switched on the fly.

Thus, one can view and edit the CSS rules as 'which selectors share this rule' type of formatting, and at a moments notice, the quickness of the mouse deceives the hand, and lo! you're now working with your CSS in 'which rules are pertinent to this selector' kind of arrangement. Or even more esoteric views, if you want.


Ian Tindale, Jul 04 2008

[link]






       // mushroom into an unmanageable haystack behind your back right under your nose //   

       [marked-for-mixed-metaphor]

8th of 7, Jul 05 2008
  

       Since the CSS section can form a part of the page document, and since more and more these days, pages are being built 'on the fly' rather than existing as a repository of static files - this is eminently doable - so much so, I would have thought that it must be implemented somewhere out there already.

zen_tom, Jul 05 2008
  
      
[annotate]
  


 
back: main index
 business 
 computer 
 culture 
 fashion 
 food 
 halfbakery 
 home 
 other 
 product 
 public 
 science 
 sport 
 vehicle