Skip to main content

Side-war using HTML and CSS

hello student here we will see that how to make side war using html and css i hope that you will like of this tutorial and if you want amazing source code  so dont forget to supporting us through subscribe and share of this bog website among your friends for next topic 


lets break of this topic 

1. Here you can create a header part and set of this on top through position absolute 

#menu {
            background-colordarkred;
            colorwhite;
            positionabsolute;
            top0px;
            line-height40px;
            height40px;
            width100%;
            padding-left10px;
            text-transformuppercase;
        }


  in this header part we will take any tag where we will use a javascript function onclick  and you can choose any name of this function i choosed open because  we want to open of this head 

2. and next topic is here we will  take a div or nav tag for  storing 
 <li> tag .
you can take any href link under  <li> tag. we did not take any  link in this li tag because 
 it is a sample. in css of this nav. we will css of this nav tag like this .

 #head {
            padding-top40px;
            background-colorblack;
            height100%;
            width0%;
            colorwhite;
            positionfixed;
            top0px;
            z-index1;
            overflow-xhidden; /* don t forget of this*/
            left0px;
            transition: width 1s ease-in-out;
        }

3. we set of this 







you can use of  this source code through copy and paste .
according to video . background image will not show in your pc because it is not save in your pc 

 <!DOCTYPE html>

<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        * {
            padding0px;
            margin0px;
            box-sizingborder-box;
        }
        
        body {
            background-imageurl("domenico-loia-hGV2TfOh0ns-unsplash.jpg");
/* here you can set any other background in from your pc*/
            height100vh;
            background-positioncenter;
            background-sizecover;
            background-repeatno-repeat;
        }
        
        #head {
            padding-top40px;
            background-colorblack;
            height100%;
            width0%;
            colorwhite;
            positionfixed;
            top0px;
            z-index1;
            overflow-xhidden;
            left0px;
            transition: width 1s ease-in-out;
        }
        
        ul li {
            line-height40px;
            height40px;
            text-aligncenter;
            text-transformcapitalize;
        }
        
        .close {
            cursorpointer;
            positionabsolute;
            top5px;
            right5px;
            font-size20px;
            colorwhite;
            font-weightbolder;
        }
        
        ul li:hover {
            colorgreen;
        }
        
        .youtube {
            positionabsolute;
            top5px;
            left5px;
        }
        
        #menu {
            background-colordarkred;
            colorwhite;
            positionabsolute;
            top0px;
            line-height40px;
            height40px;
            width100%;
            padding-left10px;
            text-transformuppercase;
        }
    </style>
</head>

<body>
    <header id="head">
        <a class="youtube">Easy coding.7</a>
        <!-- here &time is code of icon -->
        <a class="close" onclick="myClose()">&times;</a>
        <nav>
            <ul>
                <li>home</li>
                <li>about</li>
                <li>products</li>
                <li>pricing</li>
                <li>subscribe</li>


            </ul>



        </nav>


    </header>

    <a id="menu" onclick="onOpen()">menu</a>
    <script>
        function onOpen() {
            document.getElementById('head').style.width = "40%";



        }

        function myClose() {
            document.getElementById('head').style.width = "0px";
        }
    </script>
</body>

</html>

Comments

Popular posts from this blog

Top 10 Data Analysis Tools For Your Business with Review Rated

  Top 10 Data Analysis Tools For Your Business with   Review and Rated            Data analysis  is one of the most backbone of the any success business now a days . you can not predict a success business without data analysis.  indirect or direct every business involve in Data analysis.  every business organization  want to make his own approach in the whole market through this Data analysis .  Example : what will demand of any product in Future    according to previous selling product or on demand  products  that why every business organization or business needs Data analysis . Here we will see that top 10 ten Data analysis Tools for your any business and if you are student and you are  interest to learn Data analysis and you need any free data analysis tool for exercise so don't  worry you will get two free tools with download link at the last of this all tools in this web page . There are ...

Function in Python programming language

  Function in Python? In Python, a function is a group of related statements that performs a specific task. Functions help break our program into smaller and modular chunks. As our program grows larger and larger, functions make it more organized and manageable. Furthermore, it avoids repetition and makes the code reusable. Syntax of Functio n def function_name ( parameters ): """ docstring """ statement(s) Above shown is a function definition that consists of the following components. Keyword  def  that marks the start of the function header. A function name to uniquely identify the function. Function naming follows the same rules of writing identifiers in Python. Parameters (arguments) through which we pass values to a function. They are optional. A colon (:) to mark the end of the function header. Optional documentation string (docstring) to describe what the function does. One or more valid python statements that make up the function body. Stateme...

Fahrenheit temperature and Kelvin changing in Celsius temperature with text in speech

Fahrenheit temperature and Kelvin changing in Celsius temperature with out in speech If you want of this source code in java language so click on it Get  How to speech of output : first we need to  import gtts and playsound package in python our code editer because in this program we want to speech of every output . then we will save of this variable with  obj.save( "any_name.mp3" )    and we also want to speech of this. after saving of this. we write like this  playsound( "any_name.mp3" )   for speech of obj.save. It is only for Text speech you can also use of this code-source for text -speech  #librery which by we can change text in speech in present of internt your system from gtts import gTTS #import playsound for play text speech from playsound import playsound #syntax of this is variable_name=gTTS(text="your text ", lang='language' ,slow=True or False) obj=gTTS( text = "text here for speeching ok my dear " , lang = '...