-
Apply CSS Style on all elements except with a SPECIFIC ID Use the :not selector: div:not(#div1){ color:red; }
Update: CSS2 selector, similar answer to Tom Heard-s: div{ color:red; }
div[name="div1"]{ color:blue; }
http://stackoverflow.com/questions/19464660/apply-css-style-on-all-elements-except-with-a-specific-id http://selectivizr.com/ https://developer.mozilla.org/en-US/docs/Web/CSS/%3anot?redirectlocale=en-US&redirectslug=CSS%2F%3Anot
- hide img tag if src is empty but without javascript/jQuery or css3 You can use [attr=val] selector
img[src=""] { display: none; }
The above selector will simply match, if the src attribute has no value. This selector is a general one and will match all the img tag in the document with an empty src, if you want to target specific ones, than use more specific selector like
.class_name img[src=""] { display: none; }
/**/ http://www.tutorialrepublic.com/codelab.php?topic=bootstrap&file=warning-alert-message http://www.w3schools.com/bootstrap/bootstrap_alerts.asp