Leea Posted August 3, 2018 Share Posted August 3, 2018 (edited) I am a newbie and clueless. I am taking over for someone. He had two css files. In addition to other stuff both files had something similar. The first one has: #main-content { position: relative; top: 0px; left: 0px; width: 95%; } and the second one has: #main-content { position: relative; top: 0px; left: 200px; width: 80%; } With the two of them how do you tell which is the active command? I learn by borrowing from others. thanks Lee Edited August 3, 2018 by Leea clarification Link to comment Share on other sites More sharing options...
Ingolme Posted August 3, 2018 Share Posted August 3, 2018 The last rule overrides the first one. There are a set of rules by which you can always determine which CSS will be used, you can read about it here: https://www.w3schools.com/css/css_specificity.asp 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now