newcoder1010 Posted August 15, 2016 Share Posted August 15, 2016 Hi, I have this html. <div class="field-items"><div class="field-item even">login</div><div class="field-item odd">create</div></div> Can I list these as login create How can I apply the css to make it like a list? Thanks. Link to comment Share on other sites More sharing options...
Ingolme Posted August 15, 2016 Share Posted August 15, 2016 I think drupal has an option to change the HTML of the items you're displaying, but if you can't do that, you can set the display property of the elements to "list-item". .field-items { padding-left: 30px; } .field-item { display: list-item; list-style-type: disc; } Link to comment Share on other sites More sharing options...
newcoder1010 Posted August 16, 2016 Author Share Posted August 16, 2016 It worked. Thanks. How can I change from bullets to numbers? Link to comment Share on other sites More sharing options...
Ingolme Posted August 16, 2016 Share Posted August 16, 2016 Just change the value of the list-style-type property. 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