newcoder1010 Posted April 27, 2017 Share Posted April 27, 2017 Hello, HTML: <ul class="responsive-menus-simple" id="rm-no-id-main"> <li><a href="#" data-toggle="modal" data-target="#login-modal">Login</a></li> <li><a href="#" data-toggle="modal" data-target="#register-modal">Register</a></li> </ul> I would like to remove the register link. I cant do it from html. How to apply display:none; to the 2nd item (register)? Thank you. Link to comment Share on other sites More sharing options...
Ingolme Posted April 27, 2017 Share Posted April 27, 2017 Can you not remove it from the HTML? That would be the ideal solution. In CSS, you can give a class name to the object or you can use the :nth-child selector. .responsive-menus-simple li:nth-child(2) { display: none; } Link to comment Share on other sites More sharing options...
newcoder1010 Posted April 27, 2017 Author Share Posted April 27, 2017 Thank you so much. I have some issue with HTML access. CSS is work around for now. Thank you again. 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