Monday, October 4, 2021

Responsive Web Page -Simple topnav

 Responsive Web Page -Simple Topnav Code

<!DOCTYPE html>>

<html>


<head>

    <meta charset="utf-8">

    <meta name="viewport" content="width=device-width, initial-scale=1">

    <link rel="stylesheet" type="text/css" href="nav.css">

    <title>CSS Button colors</title>

</head>


<body>

    <div class="topnav">

        <a href="#">link 1</a>

        <a href="#">link 2</a>

        <a href="#">link 3</a>

    </div>

    <div class="content">

        <h1>CSS Template</h1>

        <p>A topnav, content and a footer</p>

    </div>

    <div class="footer">

        footer

    </div>

</body>


</html>


CSS Simple topnav Style

*{

    box-sizing: border-box;

    font-family: Arial, Helvetica, sans-serif;

}

.topnav{

    overflow: hidden;

    background-color: #333;   

}

.topnav a{

    float: left;

    display: block;

    color: #f2f2f2;

    text-align: center;

    padding:14px 16px;

    text-decoration: none;

}

.topnav a:hover{

    background-color:#ddd;

    color: #000;

}

.content{

    background-color:#ddd;

    padding:10px;

    height:200px;    

}

.footer{

    background-color:#f1f1f1;

    padding:10px ;

}

Saturday, October 2, 2021

Responsive Web Page - fixed sidenav

 Responsive Web Page - fixed SideNav  Code

<!DOCTYPE html>>

<html>


<head>

    <meta charset="utf-8">

    <meta name="viewport" content="width=device-width, initial-scale=1">

    <link rel="stylesheet" type="text/css" href="nav.css">

    <title>CSS Button colors</title>

</head>


<body>

<div class="sidenav">

    <a href="#">Link 1</a>

    <a href="#">Link 1</a>

    <a href="#">Link 1</a>

</div>

<div class="content">

    <h1>CSS Temple</h1>

    <p>A full height, fixed sidenav and content</p>

</div>

</body>


</html>


CSS Fixed Sidenav Style

*{

    box-sizing: border-box;

}

body{

    margin:0;

    font-family: Arial, Helvetica, sans-serif;

}

.sidenav{

    height:100%;

    width:200px;

    position: fixed;

    z-index: 1;

    top:0%;

    left:0%;

    background-color:#111;

    overflow-x: hidden;

}

.sidenav a{

    color: #fff;

    padding:16px;

    text-decoration: none;

    display: block;

}

.sidenav a:hover{

    background-color: #ddd;

    color: #000;

}

.content{

    margin-left:200px;

    padding:20px;

}

Friday, October 1, 2021

Html&CSS Button Blackground-Colors Style

 Html&CSS Button Blackground-Colors  Style Code

<!DOCTYPE html>>

<html>


<head>

    <meta charset="utf-8">

    <meta name="viewport" content="width=device-width, initial-scale=1">

    <link rel="stylesheet" type="text/css" href="nav.css">

    <title>CSS Button colors</title>

</head>


<body>

<h1>CSS BUTTON COLORS</h1>

<p>Change the background color of a button with the background-color property:</p>

<button class="button">Green</button>

<button class="button button2">Blue</button>

<button class="button button3">red</button>

<button class="button button4">Gray</button>

<button class="button button5">Black</button>


</body>


</html>


CSS BLACKGROUND-COLORS STYLE

.button{

    background-color: #4cac50;

    border: none;

    color: #fff;

    padding:15px 32px;

    text-align: center;

    text-decoration: none;

    display: inline-block;

    font-size:16px;

    margin:4px 2px;

    cursor: pointer;

}

.button2{

    background-color: blue;

}

.button3{

    background-color: red;

}

.button4{

    background-color: gray;

}

.button5{

    background-color: black;

}

JavaScript Animated

  JavaScript Animated <!DOCTYPE html> <html> <style> #myContainer {   width: 400px;   height: 400px;   position: relative;...