Как мне дать приоритет классу CSS над идентификатором? ⇐ CSS
-
Anonymous
Как мне дать приоритет классу CSS над идентификатором?
I have a element like this:
#idname{ border: 2px solid black; } .classname{ border: 2px solid gray; } it is a test
I want to give a bigger priority to its CSS class instead of its CSS id. Is it possible? (In other word I want to set gray-color as its border)
Источник: https://stackoverflow.com/questions/356 ... over-an-id
I have a element like this:
#idname{ border: 2px solid black; } .classname{ border: 2px solid gray; } it is a test
I want to give a bigger priority to its CSS class instead of its CSS id. Is it possible? (In other word I want to set gray-color as its border)
Источник: https://stackoverflow.com/questions/356 ... over-an-id
Мобильная версия