You are here: PSPad forum > English discussion forum > Re: I don't understand some CSS highlighting
Posted by: Joel | Date: 2022-01-24 15:46 | IP: IP Logged
Hello,
Most of the selectors in my style sheet are highlighted as bold darkblue text, as expected, like this:
.content {
width:60%;
margin:auto;
}
However, in the style sheet that I am making, some of the selectors are normal black, and some are normal red, like this:
.content {
width:60%;
margin:auto;
}
nav.top-nav li {
display:inline;
padding:0px 12px 0px 0px;
}
This seems to happen only when I am applying @media queries.
The stylesheet validates according to W3C, so I am not sure some selectors are a different colour and weight?
.
Posted by: pspad | Date: 2022-01-25 10:59 | IP: IP Logged
Hello
Please send example of whole structure. I guess your second example is included in some other style.
Red is "undefined property", see the Highlighter settings / CSS colors. I guess it's included again in some existing structure
Posted by: Andreas | Date: 2022-01-25 23:24 | IP: IP Logged
I already reported this back in 2016
forum.pspad.com
Jan, notice the nested curly braces. I think that's the cause.
Edited 1 time(s). Last edit at 2022-01-25 23:28 by Andreas.
Posted by: Joel | Date: 2022-01-29 00:45 | IP: IP Logged
pspad:HelloPlease send example of whole structure. I guess your second example is included in some other style.
Red is "undefined property", see the Highlighter settings / CSS colors. I guess it's included again in some existing structure
I don't think an example would explain it more clearly than I did. It is simple, anything that's within a @media query has this problem. I've noticed it many times before, but finally decided to ask about it. Apparently I'm not alone, as Andreas also reported it 5½ years ago.
Editor PSPad - freeware editor, © 2001 - 2024 Jan Fiala, Hosted by Webhosting TOJEONO.CZ, design by WebDesign PAY & SOFT, code Petr Dvořák, Privacy policy and GDPR