Thursday, January 10, 2019

CSS BOX

CSS BOX :           


This creates a box a around an HTML element , CSS border property defines a visible border around an element and padding property defines a padding space inside the border , margin property defines a margin space outside the border .

EXAMPLE:-

<html>

<head>
<style>

p {
    border:5px solid steelblue;
    padding:10px;
    margin:30px;
}

div {
    width: 320px;
    padding: 10px;
    border: 5px solid Turquoise;
    margin: 30px;
}

</style>
</head>
<body>

<p>CSS BOX EXAMPLE</p>

<div>

<p> This a Box </p>

</div>

</body>
</html>
"""""""""""""""""""""""'''''""""""""""""""""""
OUTPUT:-      
sk.
"""""""""""""""""""""""""""""""""""""""""""



No comments:

Post a Comment

Internal Javascripts

Internal Javascripts :    The script code can be written directly into the HTML document. script code is placed in header of the docume...