How to work with CSS efficiently?


Tags: css,twitter-bootstrap

Problem :

I have spent many hours trying to find out what causes what behavior changes when I made some small alterations to the styles in a web page from the standard MVC template in VS 2013. It uses Twitter Bootstrap.

I find it extremely difficult to trace styles sprawled all over the place. For example, the menu in the layout page is tagged with at least six classes: navbar navbar-inverse navbar-fixed-top container navbar-collapse and collapse. It is time consuming trying to find out which style of which class is affecting some behavior. The F12 Toolbar in Chrome helps a bit, but I find it confusing also.

Can people share any tricks and how they climb the CSS curve.



Solution :

Chrome DevTools via F12 is your best option. It would be in your best interest to become effective with it.

Here is Google's documentation on how to use Chrome DevTools to edit and inspect the DOM:

https://developer.chrome.com/devtools/docs/dom-and-styles


    CSS Howto..

    How to have choices that change the background of a site

    How to stop background layering with CSS?

    How would I generate a css, js and html file using php?

    How to display source code with indent in a web page? HTML? CSS?

    How to style in IE6 CSS?

    How to add padding to a ul/li menu with a background image?

    How would I go about making my q and a page like this: http://www.text-link-ads.com/r/faq

    Tab menu in CSS - how to set an active tab

    How to use add/subtract in css propert?

    How can i concatenate the following css string in php without creating another variable or breaking the string?

    How to make only background image transparent in responsive square grid?

    How can i make it through using bootstrap grid?

    How to dim an image keeping transparency untouched with CSS or JS?

    How to make an ad wrapper which displays a message if a user has adblock running?

    How quora put that image on their home page? [closed]

    how to auto adjust table td width from the content

    How do I stop my :after content from blocking my anchor?

    How do I change the color of Semantic UI icons?

    How can i make this css star smaller?

    How to use a Drive hosted css to customize the receiver?

    Space on Navigation right and left…how to remove it?

    How to change the css of color of select2 tags?

    How to Include Multiple Javascript Files in .NET (Like they do in rails)

    Menu hover effect - how to reproduce this effect?

    How to put only certain elements of a div in a css box

    CSS? How is this arrow made?

    Show different forms using buttons with animation

    How to get access to file css in JSF 2.0

    CSS: How to select only the first non-adjacent sibling after the element

    Showing divs in th on the same line