How to disable CSS in Browser for testing purposes


Tags: html,css,browser

Problem :

Is there any way I can disable all external CSS in a browser (Firefox, Chrome...)?

When using slower internet connection, sometimes only the bare HTML is loaded by the browser without the CSS info. It looks like the page has been laid raw on the screen. You would have noticed this with StackOverflow too.

I want to make sure that my web page shows up OK even if the CSS files are not loaded.

I didn't mean I want to convert external CSS to inline. But I want a way to explicitly disable all CSS from the browser so that I can reposition my elements in a better, readable way.

I know I can remove the <link rel='stylesheet'> entries, but what if I have a lot of linked pages?



Solution :

The Web Developer plugin for Firefox and Chrome is able to do this

Once you have installed the plugin the option is available in the CSS menu. For example, CSS > Disable Styles > Disable All Styles

Alternatively with the developer toolbar enabled you can press Alt+Shift+A.


    CSS Howto..

    Nested CSS: How to get to the child?

    How can I use Perl to get a list of CSS elements with a color or background color attribute?

    How to build a mobile version of a non-mobile website? [closed]

    CSS Less changes not showing. Compile or IIS error?

    CSS list styling - how to reduce the distance between parent and children of the previous parent?

    How to add animated gif to an image sprite?

    How to make irregularly-shaped SVGs overlap while maintaining all areas clickable?

    How to fit elements in 100% width without absolute positioning?

    How to give padding bottom for overflow hidden div?

    how to place elements inside divs horizontally

    Asp.Net-MVC: How to style <%=Html.ActionLink()%> with Css?

    how to place css div container “text-align: center ;”

    How can I avoid using too many classes in CSS?

    how to increase/decrease font-size from external css [closed]

    :hover property overriden after jquery effect, how to get it back?

    How to animate 2 parallel lines in order to form an X on click using CSS and JQuery

    How to display only the
      that has a selected
    • in it, including all of the
    • s in that parent ul, not just the selected ones?

    How to display highlighted sprite

    How to use Materialize css Tabs in Meteor?

    Bootstrap table table-condensed table-hover, Top Border not showing

    How to make sure the UI always shrinks and fit to the window irrespective of the resolution and device via viewport or CSS

    CSS: Is there a limit on how many classes an HTML element can have?

    Show Item when Hover Over Parent

    How to set margin left and right to the center div when using float:left

    How to dynamically generate droppable/draggable/sortable div elements within a div?

    How to position an image to the right of a center aligned title with HTML & CSS

    How to make a div appear when hyperlink is clicked once and disappear when hyperlink is clicked a second time? Can this be repeated?

    How do I specify IE 11 specific css file?

    How to properly escape attribute values in css/js attribute selector [attr=value]?

    How can I set my image's hover when hovering my text?