Forums

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?

  • This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #39372
    JohnMotylJr
    Participant

    Howdy yall,
    Im basically using

    * {
    margin:0;
    padding:0;
    }

    How would i say i want everything to reset except my pre tags?

    #107900
    *:not(pre) { ... }

    The browser support is not perfect, as you might expect, not working in IE8 and below.

    #107902
    JohnMotylJr
    Participant

    @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.

    #107905

    No worries!

Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘CSS’ is closed to new topics and replies.