I need to refresh an existing page using CSS already in place. I am not allowed to touch existing HTML. My only option is to create other CSS / CSS3 codes to override the existing one. No JS. No jQuery.
The following is an example of existing HTML. My target result is to create an override of CSS / CSS3 code to cancel the position, bringing the βsecondβ class to the first in the list of orders.
I started searching about this, but I could not find any good resources. So I just thought that there might be CSS3 code that could do this, like the CSS code that I presented below:
HTML:
<ul id="mainList"> <li class="first">i am first</li> <li class="second">i am second</li> <li class="third">i am third</li> </ul>
From this world of CSS Code:
.second { list-position: rank(1); } .first { list-position: rank(2); }
Any suggestions would be highly appreciated.
The riddle is here β http://jsfiddle.net/philcyb/mL41up6t/
source share