newcoder1010 Posted July 23, 2016 Share Posted July 23, 2016 Hi, I have this #block-block-55 h2 { text-align:center;} #block-block-56 h2 { text-align:center;} #block-block-57 h2 { text-align:center;} How can I write one css for all so i dont have to write separately? Thanks. Link to comment Share on other sites More sharing options...
Ingolme Posted July 23, 2016 Share Posted July 23, 2016 You can use multiple selectors by separating them with a comma: #block-block-55 h2, #block-block-56 h2, #block-block-57 h2 { text-align:center; } 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