Sign in to follow this  
Followers 0
IndianaGuy

ui block styling

3 posts in this topic

How would I select ui block-a with id "desc". Also, how would I select .ui block-a with class "titles" as the same time? Thank you in advance

 

 

.ui-block-a, {
    background-color: lightgray;
    border: 1px solid black;
    height: 300px;
    font-weight: bold;
    text-align: center;
}

Share this post


Link to post
Share on other sites

You can select multiple things using the comma. With an ID, you never need to prefix it with any other selectors because it's unique on the page. To search for something that contains two classes, attach both classes to the selector.

#desc, .ui-block-a.titles {

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0