Skip to main content

Posts

CSS Tutorial 21

 <!DOCTYPE html> <html lang="en"> <head>     <meta charset="UTF-8">     <meta name="viewport" content="width=device-width, initial-scale=1.0">     <title>Alignment</title>     <style>         *{         box-sizing: border-box;         }         body{font-family: cursive;}         .container{             background-color: lightyellow;             /* padding: 21px; */             border: royalblue 3px solid;             width: 900px;             margin: 33px auto;         }         .items{             background-color: lightseagreen;             border: ...

CSS Tutorial 20

 <!DOCTYPE html> <html lang="en"> <head>     <meta charset="UTF-8">     <meta name="viewport" content="width=device-width, initial-scale=1.0">     <title>BoX Modle</title> </head> <style>     .container{         background-color: rosybrown;         border: royalblue 2px solid;         padding-top: 10px;         padding-left: 20px;         padding-right: 30px;         padding-bottom: 40px;          /* top right bottom left */         /* padding: 5px 7px 8px 10px; */         margin-top: 0px;         margin-left: 0px;         margin-right: 0px;         margin-bottom: 0px;          } </style> <body>     ...

CSS Tutorial 19

 <!DOCTYPE html> <html lang="en"> <head>     <meta charset="UTF-8">     <meta name="viewport" content="width=device-width, initial-scale=1.0">     <title>Height, width, border and background. </title>     <style>         #firstpara {             background-color: red;             height: 100px;             width: 200px;             border-radius: 11px;             border: green 3px solid;         }         /* border-color: green;     border-style: solid;       border-width: 3px;} */         #secondpara {             height: 100px;             width: 200px;       ...

CSS Tutorial 18

 <!DOCTYPE html> <html lang="en"> <head>     <meta charset="UTF-8">     <meta name="viewport" content="width=device-width, initial-scale=1.0">     <title>Colers in CSS</title>     <style>         /* this is simple color by name. */         #firstpara{color: darkmagenta;}         /* this is rgb color by red green and blue value. */         #secondpara{color: rgb(92, 214, 182);}         /* this is hexadecemel color by #valuess */         #thirdpara{color: #d83d3d;}     </style> </head> <body>     <h2>This is my first BoX</h2>     <p id="firstpara">This is a paragraph from first BoX</p>     <h2>This is my second BoX</h2>     <p id="secondpara">This is a paragraph from seco...

CSS Tutorial 17

 <!DOCTYPE html> <html lang="en"> <head>     <meta charset="UTF-8">     <meta name="viewport" content="width=device-width, initial-scale=1.0">     <title>CSS fonts</title>     <style>         p{             font-family:cursive, Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;             font-size: 33px; /*1/96 pixele of per inch*/            line-height: 5em;         }        span{font-weight: bold;        font-style: italic;}     </style> </head> <body>     <h2>CSS fonts</h2>     <p>let's play with <span>Fonts</span>. It is very exciting.</p> </body> </html>

CSS Tutorial 16

 <!DOCTYPE html> <html lang="en"> <head>     <meta charset="UTF-8">     <meta name="viewport" content="width=device-width, initial-scale=1.0">     <title>Developer Tools</title>   <style>         h2{background-color: darkkhaki;         color: darkmagenta;}   </style> </head> <body>     <!-- this tools use in google chrome -->     <h2>Chrome Inspect Tools</h2>     <p>we can use Inspect elemente to change our <code></code></p> </body> </html>

CSS Tutorial 15

 <!DOCTYPE html> <html lang="en"> <head>     <meta charset="UTF-8">     <meta name="viewport" content="width=device-width, initial-scale=1.0">     <title>CSS selecters</title>     <style>         /* Element selector */         p{color: coral;         font-weight: bold;}         /* ID selector */         #first{color: cyan;}         /* Class selector */         .blueelement{color: blue;}         .bgpink{background-color: pink;}         /* gruping selector */         footer, span{color: darkgreen;}     </style> </head> <body>          <h1>         CSS selecters     </h1>     <p  id="first" ...