1) Use multiple classes inside the class attribute, separated by whitespace (ref):
<a class="c1 c2">aa</a>
2) To target elements that contain all of the specified classes, use this CSS selector (no space) (ref):
.c1.c2 {
}
More Related Contents:
- Vertically center element on HTML page with some content on top (Bootstrap)
- CSS Button styling – Need some help -html css RADIO BUTTON LINK
- Make body have 100% of the browser height
- Using relative URL in CSS file, what location is it relative to?
- How to create a circle with links on border side
- Why the content is not covered by the background of an overlapping element?
- How to animate underline from left to right?
- Placing border inside of div and not on its edge
- CSS background image to fit width, height should auto-scale in proportion
- Drop-down menu that opens up/upward with pure css
- How to wrap text around an image using HTML/CSS
- Fullscreen responsive background image in CSS
- Bootstrap 4 Cards of same height in columns
- Adding external CSS in an HTML file
- Html Select box options on Hover?
- Calculator keypad layout with flexbox
- :not(:empty) CSS selector is not working?
- How to exclude particular class name in CSS selector?
- How to make div element auto-resize maintaining aspect ratio?
- floating elements behavior
- Is it possible to make a div 50px less than 100% in CSS3? [duplicate]
- How do I prevent the padding property from changing width or height in CSS?
- Div width 100% minus fixed amount of pixels
- overflow:scroll; in
- How do I style the HTML form validation error messages with CSS?
- How can I target a specific column or row in a CSS grid layout?
- How to create a triangle in CSS3 using border-radius
- Adding style to file upload button in css
- What are the default values for justify-content & align content?
- Is it possible to hide the title from a link with CSS?