Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- body
- {
- font-size: 24px
- }
- #myid
- {
- color: red;
- }
- .myclass
- {
- color: green /* применился ко всем */
- }
- #myid2.myclass
- {
- font-weight: bold;
- }
- .myclass.mysuperclass
- {
- text-decoration: underline;
- }
- #myid3.myclass.mysuperclass
- {
- font-style: italic;
- }
- /* 2 id невалидно */
- #myid4#mysuperid.myclass.mysuperclass
- {
- background: yellow;
- }
Add Comment
Please, Sign In to add comment