Turning off CSS
RWB
Icrontian
I am curious how you can turn off CSS in Firefox and Internet Explorer to see a sites appearance without the CSS.
TIA
TIA
0
Comments
using php.
Preview:
http://mj.motorspin.com/v4/main.php
in the head of your file put the following
[PHP]
<?php
// if statement
if( $_GET != 'false' )
{
?>
<link rel="stylesheet" href="style.css"/>
<?php
}
?>
[/PHP]
Then link as follows
[PHP]
<a href="main.php?css=false">turn off CSS</a>
<a href="main.php?css=true">turn on CSS</a>
[/PHP]
that should do it. If your file extension is not .php , obviously (depending on your php knowledge) it wont work, so just save as .php and also make sure if your host as php installed, again it wont work otherwise. Good luck!
Opera, Mozilla, FireFox, and IE actually can do this, though you have to get deep into the Preferences (Appearance part of Preferences for Mozilla and FireFox)or Internet Options depending on browser. In this case telling IE or any other browser to not use CSS is best universally done by having the browser override the CSS with its own settings. CSS or font pairs are overwritten, the browser does its own thing based on what you tell it to use for minimum size and font choices. Essentially you are telling the browser to use a fixed style set you choose, adn it is interesting to see how sites break when this is done. Make one with good CSS AND that holds up its basic structure when a browser overrides things fairly reasonably, then you have a REAL good site.
That's what I'm looking for...
I downloaded that web-developer extension, but that's not what I want (I also just want to disable CSS on pages).
I was showed this about a year ago when I was learning HTML and CSS to see what CSS could do.
Since then I've had to re-download Firefox, and so lost whatever that was.
What extensions do you have, kanezfan? Maybe I could figure which one I want based on that...
Edit: oh... sorry, I didn't realize how old this thread. I found it in a google search.