Posts Tagged ‘prevalence’

Multiple CSS increases productivity of hiding and showing with display attribute

Monday, April 30th, 2007

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)


Books Now Reading

My Sites