Forum:What is the css select code for "edit" pages?

I need to make a CSS change on edit pages on my wiki. Essentially, I applied a padding-bottom to the body of my wiki but I don't want it to be active on edit pages. What CSS code can I use to "select" the edit pages and set the padding-bottom to 0px?

Also, for future reference, is there a way I can easily find out what these CSS selectors are? It'd be nice to have a big list/to be able to look at the CSS source file itself. I'm not sure if either of these are possible, but it'd be nice.

Matortheeternal (talk) 02:01, September 7, 2012 (UTC)

CSS selectors just describe the tree path that reaches an element from the root. There isn't a magic cookbook, you just need to look at the page HTML structure (Use "Inspect Element" in Chrome/Firefox, or Developer Tools in Internet Explorer) and construct a selector that is specific enough to match when you want it to but not when you don't want it to. CSS2.1 Selector Specification, CSS3 Selector Specification (may not work properly in Internet Explorer), Random tutorial I found on Google. Lunarity 02:41, September 7, 2012 (UTC)


 * I know that CSS selectors just describe a tree path, I just didn't know what the path was for the edit pages. I thought about viewing the HTML source but the last time I looked at wiki HTML I got so confused my brain nearly 'sploded.  Inspect element, on the other hand, will do the job quite nicely I think.  Thanks! :)   Matortheeternal (talk) 03:54, September 7, 2012 (UTC)