Showing posts with label CSS. Show all posts
Showing posts with label CSS. Show all posts

Sunday 7 March 2021

CSS TUT-5 How To Make Box Model CSS in HTML ?

 How To Make Box Model CSS in HTML ?

Box Model CSS

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>box model margin padding</title>
<style>

    *{

        box-sizingborder-box;
        padding0px;
        margin0px;
    }
    body{
        background-colorrgb(187218218);
    }
    .container{
        border3px solid blue;
        background-color#c4deea;
        padding14px 21px 14px 5px;
        margin27px 36px 47px 2px;
      border-radius12px;
      box-sizingborder-box;
    }
</style>
</head>
<body>
    <h2>this is box model</h2>
    
       
       <div class="container">
           <p id="frist">Lorem ipsum dolor sit amet consectetur adipisicing elit. 
               
            
            Illum ut sint voluptatum iusto atque vel pariatur officia maxime, 
            excepturi illo, veniam explicabo.
               
            Rem cum molestiae, maiores fugiat ex voluptatum quaerat.</p>
       </div>

       <div class="container">
           <p id="second">Lorem ipsum dolor sit amet consectetur adipisicing elit.
               
            
            Illum ut sint voluptatum iusto atque vel pariatur officia maxime,
             excepturi illo, veniam explicabo.
                
            Rem cum molestiae, maiores fugiat ex voluptatum quaerat.</p>
       </div>

       <div class="container">
           <p id="third">Lorem ipsum dolor sit amet consectetur adipisicing elit. 
               
            
            Illum ut sint voluptatum iusto atque vel pariatur officia maxime,
             excepturi illo, veniam explicabo.
               
            Rem cum molestiae, maiores fugiat ex voluptatum quaerat.</p>
       </div>

       <div class="container">
           <p id="fourth">Lorem ipsum dolor sit amet consectetur adipisicing elit. 
               
            
            Illum ut sint voluptatum iusto atque vel pariatur officia maxime,
             excepturi illo, veniam explicabo. 
               
            Rem cum molestiae, maiores fugiat ex voluptatum quaerat.</p>
       </div>
    
</body>
</html>


CSS TUT-4 How To Give Beautiful Heights, Widths, Border , Border-Radius and Background In HTML Using CSS ?

 How To Give Beautiful Heights, Widths,Border,Border-Radius and Background In HTML Using CSS ?

CSS  Design

<!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 backgrounds</title>
    <style>
        p{
        background-colorbrown;
    height400px;
width300px;
border-radius10px;
border:black;
border-stylesolid;
}
        #secondpara{
        background-color:green;
    height254px;
width300px;
border-radius10px;
border-bottomrgb(14115231);
border-leftrgb(23614713);
border-rightrgb(324876);
border-bottomrgb(23811162);
border-bottom-left-radius5px;
border-bottom-right-radius15px;

}

#image{colorred;
    bordersolid,black;
height630px;
width630px;
background-colorwhite;
background-imageurl(https://miro.medium.com/max/1200/1*pE2fOVDikEUwiQJlh4ggzg.jpeg);
background-repeatno-repeat;
background-positioncenter top;
}
#button{
    bordersolid;
    height25px;
    width25px;
    background-color:red;
}




    </style>
</head>
<body>
    <h2>This is backgrounds colors</h2>
    <p >This is my frist ever para written</p>
    <p id="secondpara">This is my second para</p>
<h2>This is third para for img</h2>
<p id="image">This is my image</p>
<h3>This is button to tap to enter in google </h3>
<a id="button" href="https://Google.com" target="_blank">Go To The Google Site Tap On It</a>


    
</body>
</html>


CSS TUT-3 How To Add Fonts-Family And Make Beauty In Fonts ?

 How To Add Fonts-Family And Make Beauty In Fonts ?

Fonts Size And Fonts-Family

<!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>
    <link rel="preconnect" href="https://fonts.gstatic.com">
    <link href="https://fonts.googleapis.com/css2?family=Abril+Fatface&family=Pacifico&family=Russo+One&display=swap" rel="stylesheet">
    <style>
        p{font-familyImpact, Haettenschweiler, 'Arial Narrow Bold'sans-serif;
    font-size30px;
}
span{font-weightbold;
font-styleitalic;}



    </style>
</head>
<body>
    <h2>This is tut for Fonts written</h2>
    <p>is this my beauty fonts no </p>
    <p>then which <span>One</span>  is my join family font </p>
</body>
</html>



CSS TUT-2 What Is CSS Selectors?

What Is CSS Selectors?

CSS Types of Selectors

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>CSS Selectors</title>
    <link rel="stylesheet" href="tut14.css">
</head>
<body>
    <h2>CSS Selectors</h2>
    <p id="fristpara">This is a simple css selectors 
    </p>
    <p class="secondpara">This is another Simple Free selectors</p>
    <span>This is a span </span>
    <strong>This is bold character keypads</strong>
<i>This is italic line is used in a html</i>
</body>
</html>

CSS Selectors


#fristpara{colorred;
background-colorroyalblue;
border-radius5px;
colorkhaki;}
.secondpara{backgroundroyalblue;}
span{background-colorred;}
/* this is a groupism selector */
i,strong{background-colorgreen;
colorhotpink;
borderindigo;}
.secondpara{border-bottomkhaki;}

CSS TUT-1 Simple CSS In Para ?

 Simple CSS In Para ?

CSS in Para

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>CSS tut13</title>
    <style>
        
        p{colorsilver;
        background-image-webkit-linear-gradient();}
        
        
        
        </style>
        <link rel="stylesheet" href="tut13.css">
</head>
<body>
    <h1>CSS HTML Tutorials</h1>
    <p >This is a html tutorials for Beginner</p>
    <div style="padding-left: 5px;">This is absolutely free CSS tutorials
        thank for subcribe 
    </div>
</body>
</html>



Python if / else

 Python if / else a1 = int ( input (" Enter the number: \n ")) a2 = int ( input (" Enter the number: \n ")) a3 = int ( i...