how to shorten these properties codes in only one line code: .font { font-style: italic;…
Jump to turn (7)
- 1how to shorten these properties codes in only one line code: .font { font-style:
- 2how to apply hover on all the rest of elements when I hove only one of them: e.g
- 3you didn't get me well, I need to span:hover not container:hover
- 4what's wrong with this code? .q5 ~ span { background-color: red; }
- 5what this unicode name?
- 6~
- 7what's wrong with this code and how to correct it? .q5 span:hover span:nth-child
- User
how to shorten these properties codes in only one line code: .font { font-style: italic; font-weight: bold; font-size: 30px; line-height: 30px; font-family: Arial, sans-serif; }
- Assistant
You can shorten the CSS rule by using the shorthand
fontproperty:css.font { font: italic bold 30px/30px Arial, sans-serif; } - User
how to apply hover on all the rest of elements when I hove only one of them: e.g: I have a container of three spans and I want them to turn to red color on hover, what should I do If I wanna hover only one of them and the hover applied on all of them?
- Assistant