The CTRL+SHIFT+S Test For Proper Page Architecture

Posted July 24, 2007 at 9:16 AM

Tags: HTML / CSS, Work

As of late, I have been really getting into trying to develop with tight CSS and web standards compliance. The other day, one of my co-workers, David Stamm (aka The Secret Weapon), told me that in FireFox's web developer plugin, the key stroke CTRL+SHIFT+S will turn on and off all style sheets in the current page. Using this during development has almost become an addiction - I'm constantly checking to see if my sites look Good without style (the new sites, not the existing ones that are already without hope). Going forward, and this may seem silly, but I am going to make it a priority to have all my client sites look good (degrade elegantly) without style sheets.

Please don't look at my site, www.bennadel.com, without style sheets :) It's lame. It will be redesigned one day with some better code.

Post Comment  |  Ask Ben  |  Permalink  |  Print Page




Reader Comments

Jul 24, 2007 at 9:35 AM // reply »
49 Comments

Oh yes - how did we ever do web development before Firefox and the web developer toolbar? :)

If you haven't checked out jQuery yet - I'd give it a peek. I just picked up the recently released book and it's really making me re-think how I implement CSS.


Jul 24, 2007 at 9:39 AM // reply »
6,516 Comments

@Jim,

Most definitely. Web Developer toolbar AND FireBug! I've barely scatched the surface of the FireBug functionality and already I can't live without it.

I love jQuery :D It's making me rethink how I do all my Javascript. It's funny that after like 8 years of web development, it's now that I am really going back and re-examining some of the most basic things like CSS and page structure.


Jul 24, 2007 at 10:53 AM // reply »
13 Comments

Handy tip Ben, thanks!


Jul 24, 2007 at 10:56 AM // reply »
49 Comments

The other one I use quite a bit is CTRL+SHIFT+A - it'll send the page you are working on to the W3C validator...


Jul 24, 2007 at 10:57 AM // reply »
6,516 Comments

Oh snap! I feel like between Web Developer and FireBug, I just need to sit down and read the manual (so to speak). I am certainly not leveraging these things as well as I could be.


Jul 24, 2007 at 11:12 AM // reply »
2 Comments

Hi Ben,

A very cool showoff the capabilities of css is www.csszengarden.com

This is the site that convinced me that css is the way and the site I show to my developer-friends.

- Mikkel


Jul 24, 2007 at 11:18 AM // reply »
6,516 Comments

@Mikkel,

CSS Zen Garden is the perfect! example of how a site should look when it degrades without CSS. It's so freakin' clean and readable. Good tie-in to the conversation. Thanks.


Jul 26, 2007 at 4:37 PM // reply »
11 Comments

A little bit of thread necromancy - sorry about that. I just can't resist though, after you said you're doing all your CSS development with Ctrl+Shift+S...

Try this: Ctrl+Shift+E. It'll pop up a sidebar that shows your your CSS. Even better: you can edit it and see the changes on the fly. Don't like that border/color/etc? Just change it... no need to refresh the page at all! Then just save it over the existing style sheet once you're happy.


Jul 26, 2007 at 4:45 PM // reply »
6,516 Comments

@Adam,

That's pretty cool! I just tried it. The only problem seems to be that it cannot keep the background image URLs properly calculated. For instance, my background URLs are like:

"../../images/logo.gif"

Because my CSS files are two levels deep. However, in the CTRL+SHIFT+E, I have to take out the ../../ cause it looks like the background images are relative to the page, not to the CSS file. But, cool, nonetheless.


Jul 26, 2007 at 5:20 PM // reply »
11 Comments

If you use a full qualified path ("http://..."), it will work. That's only an option sometimes, I realize, but better than nothing.


Jun 20, 2008 at 3:18 PM // reply »
1 Comments

You can use domain relative paths to images in your css (/images/bg.jpg) rather than full http:// paths and it will also work correctly.


Jul 3, 2008 at 11:38 PM // reply »
1 Comments

This is the first i heard of this, so i checked it out. Good idea. I don't see anything wrong with relying on style sheets, but i can see why you are interested in doing what you can with the minimum amount of interfering code as possible.

It will probably make it easier in the future when going back to edit everything so that you know where everything is at without so much code to look through.

-jared bartholomew


Dec 17, 2008 at 3:42 PM // reply »
1 Comments

thanxs for the post


Post Comment  |  Ask Ben

Recent Blog Comments
Nov 22, 2009 at 4:30 AM
jQuery Live() Method And Event Bubbling
dasegtezr ... read »
Nov 22, 2009 at 4:03 AM
jQuery Live() Method And Event Bubbling
C_fieri ... read »
Nov 22, 2009 at 1:56 AM
Learning ColdFusion 9: Using CFQuery In CFScript Can Enable SQL Injection Attacks
Why adobe would give you script equivalent of cfquery is beyond me. I love cfquery tag because it helps me wriite clean sql, and get away from the horrible jdbc queries If I wanted to write javali ... read »
Nov 22, 2009 at 1:45 AM
Streaming Text Using ColdFusion's CFContent Tag And The Variable Attribute
The reason you would want to do this is to stream. Ack json/xml files to ria clients I used thus technique before because putting json in response stream causes debugging info to come thru As well a ... read »
Nov 21, 2009 at 6:47 PM
Hal Helms - Real World Object Oriented Development, Sarasota - Day Five
@charlie griefer, Thank you.. ... read »
Nov 21, 2009 at 5:15 PM
Using ColdFusion Structures To Remove Duplicate List Values
@Jose Galdamez, Oh heh yeah I didn't paste the whole code. I should have defined the vars -- my bad. It's fixed thou. Thanks. ... read »
Nov 21, 2009 at 4:49 PM
Styling The ColdFusion 8 WriteToBrowser CFImage Output
Great work yet again Ben! Whilst I didn't use this whole code, I copied some of your regex code for a similar problem with the lack of an alt attribute and unescaped ampersands in CFIMAGE for Railo 3 ... read »
Nov 21, 2009 at 1:13 PM
My First ColdFusion Builder Extension - Encrypting And Decrypting CFM / CFC Files
@Ben, Because I am pedantic, I just want to make sure that everyone knows there is absolutely no encryption going on. There is only encoding and obfuscation. The cfencode tool only obfuscates your C ... read »