- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Usage of CSS @import: rule
The @import: rule imports another stylesheet into the current style sheet. It should appear right at the start of the style sheet before any of the rules, and its value is a URL.
Example
You can write it like this:
<style> <!-- @import "mystyle.css"; or @import url("mystyle.css"); .......other CSS rules ..... --> </style>
The significance of the @import rule is that it allows you to develop your style sheets with a modular approach. You can create various style sheets and then include them wherever you need them.
- Related Articles
- Usage of @import Rule for CSS
- Usage of CSS !important rule
- Usage of CSS @charset rule
- Usage of CSS @font-face rule
- CSS @media rule
- CSS @page rule
- Usage of CSS visibility:hidden;
- Usage of CSS visibility:visible;
- Usage of CSS visibility property
- Usage of CSS grid property
- Usage of attr() CSS function
- Usage of var() CSS function
- Usage of calc() CSS function
- Usage of rgb() CSS function
- Usage of rgba() CSS function

Advertisements