How To Group CSS Definitions Together?
Submitted by: AdministratorIf you have multiple CSS definitions to be applied to the same HTML tag, you can write them together delimited with semicolon (;). The following CSS provides you a good example of CSS definition groups:
pre.code {background-color: #efefef; width: 502px;
margin: 4px; padding: 4px}
The above CSS code is identical to the following CSS code:
pre.code {background-color: #efefef}
pre.code {width: 502px}
pre.code {margin: 4px}
pre.code {padding: 4px}
Submitted by: Administrator
pre.code {background-color: #efefef; width: 502px;
margin: 4px; padding: 4px}
The above CSS code is identical to the following CSS code:
pre.code {background-color: #efefef}
pre.code {width: 502px}
pre.code {margin: 4px}
pre.code {padding: 4px}
Submitted by: Administrator
Read Online Cascading Style Sheet CSS Job Interview Questions And Answers
Top Cascading Style Sheet CSS Questions
☺ | How To Use IDs to Override Classes in CSS? |
☺ | What Is the HTML Element Formatting Model in CSS? |
☺ | What Are the Formatting Behaviors of HTML Elements? |
☺ | What Is a ID Selector in CSS? |
☺ | What Is CSS (Cascading Style Sheets)? |
Top Top World Wide Web Categories
☺ | Cascading Style Sheet CSS Interview Questions. |
☺ | HTML5 Interview Questions. |
☺ | Basic Internet Interview Questions. |
☺ | Domain Name System (DNS) Interview Questions. |
☺ | JavaScript Interview Questions. |