CSS

CSS Full form of Cascading Style Sheets is a language (style sheet language). The CSS is being used for web pages formatting and managing all type content and text. The CSS is used for three type: Internal, external and inline. The css is used on
the mostly for web pages on the head section. How to use CSS?

(External Style)
<link href="style.css" rel="stylesheet" type="text/css" media="all">

(Internal Style)
<style>
    .testCssName {
        CSSProperty: CSSValue;
        ......................
    }
</style>

(Inline style)
<p style="color:#f00; font-size:15px;"> CSS learn from www.anythinglearn.com </p>

 How to import CSS file in CSS?

<style>
    @import url('css/styles.css');
</style>

You can call import between CSS files.
 
CSS Code import Syntax:


@import url('css/filename.css') optionalMediaName;

CSS Code import Example:
@import url('css/filename.css') print;


No comments:

Note: Only a member of this blog may post a comment.

Copyright Reserved to Anything Learn. Powered by Blogger.