The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › CSS › What selector should i use to target everything EXCEPT?
Howdy yall, Im basically using
* { margin:0; padding:0; }
How would i say i want everything to reset except my pre tags?
everything
pre
*:not(pre) { ... }
The browser support is not perfect, as you might expect, not working in IE8 and below.
@joshuanhibbert, @jamy_za Thanks gents, implementing now. I normally use a proper reset but for what im working on, its really so small just needed a quick fix. Thanks again guys.
No worries!