Multiple CSS increases productivity of hiding and showing with display attribute

With the prevalence of DHTML, much less AJAX, I have begun to use separate Cascading Style Sheets for development and publishing. Since styles override each other, the easiest way to accomplish this is to add a second style sheet link after the publishing CSS link and comment it out when one wants to test the page.

“dev.css” contains “display: block;” within all classes that in the publishing CSS contain “display: none;” much like that below:

.profile_box { display: none;} (index.css)

.profile_box { display: block; } (dev.css)

If you have found this post valuable, please share it with others: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • Facebook
  • del.icio.us
  • Google
  • StumbleUpon
  • TwitThis

A note about the author

Photograph of Stephen JamesI love working in a field that changes every day. I am a web developer/designer with an agency background. I have empathy for the user first, then developers, then machines. I follow web standards, coding conventions, then, I do whatever it takes to make it work. Visit my contact page, even if you would just like to say hello. To stay in touch, follow me on Twitter

Leave a Reply

You must be logged in to post a comment.


My Sites

Books Now Reading

  • Unfortunately, Amazon Web Services (AWS) has disabled wishlist requests. Please visit their site to view my Amazon Reading List.