Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS WPs CSS settings in a WP site merged with another CMS system (genealogy) Reply To: WPs CSS settings in a WP site merged with another CMS system (genealogy)

#247561
Atelierbram
Participant

No it’s exactly the opposite, what is read last takes precedence! Like I wrote, loading mytngstyle.css after style.css would make, for example, the property/value-pair for background within the declaration block of body { background: /* stuff */ ;} override the one in style.css. So anything in your CSS, even if it’s in the same stylesheet and has the same specificity which comes after the same css-selector will override that one. Than there is also the cascade and inheritance which will come into play sooner or later as well. So trying to wrap your mind around specificity, the cascade an inheritance will help you much in understanding how CSS works.

Take it easy, take your time to let it all sink in ;) it’s easy to forget there’s really a lot to all this after doing this thing for awhile.