Jump to content

ui block styling


IndianaGuy

Recommended Posts

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;
}
Link to comment
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 {
Link to comment
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
×
×
  • Create New...