Skip to main content

Creating attractive menu using html and css











Creating attractive menu using HTML and css


Step 1: Create or download image you want here we are going to use image as shown to set menu hover .

 Final look of our template is like 

 

 Step 2: create a HTML page attractive menu.html  following code in body tag




<body>
<div id="header">
<h1>Ahmednagar City Gallery</h1>
<div id="templatemo_menu">
                  
            <ul>
                <li><a href="index.html" class="current">Home</a></li>
                <li><a href="portfolio.html">Portfolio</a></li>
                <li><a href="services.html">Services</a></li>
                <li><a href="contact.html">Contact Us</a></li>
       
            </ul>       
       
        </div> <!-- end of templatemo_menu -->
</div>

<div id="nav">
History<br>
Tourist Spots<br>
Femous places <br>
Tourist Guide<br>
Femous Things <br>

</div>

<div id="section">
<h1>Ahmednagar is very nice city..</h1>
<h1>Ahmednagar is very nice city..</h1>
<h1>Ahmednagar is best city..</h1>
<p>
</p>
</div>
<div id="footer">
<h1>copyright@</h1>
</div>
</body>




Step 3: write CSS Class or Copy paste following  CSS code to to <head> tag




<head>
<style>

    #header{
        background-color:black;
        color:white;
        text-align:center;
        padding:5px;
        }
   
     #templatemo_menu {
    float: left;
    width: 700px;

    align:center;
}

#templatemo_menu ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

#templatemo_menu ul li {
    padding: 0px;
    margin: 0px;
    display: inline;
}

#templatemo_menu ul li a {
    float: left;
    display: block;
    width: 130px;
    height: 50px;
    padding: 17px 10px 0 0;
    margin: 0 30px 0 0 ;
    font-size: 16px;
    text-align: center;
    text-decoration: none;
    color: #6d450f;   
    font-weight: bold;
    outline: none;
}

#templatemo_menu ul li a:hover, #templatemo_menu ul li .current {
    color: #fff;
    background: url('templatemo_menu_hover.png')
}


#templatemo_top_wrapper {
    width: 100%;
    height: 100px;
    background:url('templatemo_menu.jpg') no-repeat top center;
}

#templatemo_top {
    width: 970px;
    height: 100px;
    margin: 0 auto;
    padding: 0 30px 0 80px;
    background: url('templatemo_menu.jpg') no-repeat top center;
}





#templatemo_header_wrapper {
    clear: both;
    width: 100%;
    height: 300px;
    background: url(images/templatemo_header.jpg) no-repeat top center;
}

#templatemo_header {
    width: 920px;
    height: 250px;
    margin: 0 auto;
    padding: 50px 80px 0 80px;
    background: url(images/templatemo_header.jpg) no-repeat top center;
}

#templatemo_header  #site_title {
    float: left;
    width: 500px;
    padding-top: 30px;
    padding-left: 100px;
}

#templatemo_header  #site_title h1 {
    margin: 0;
    padding: 0;
    color: #fff;
}

#templatemo_header  #site_title h1 a {
    margin: 0px;
    padding: 0px;
    font-size: 50px;
    color: #ffef38;
    font-weight: normal;
    text-decoration: none;
}

#templatemo_header  #site_title a span {
    display: block;
    font-size: 16px;
    color: #FFFFFF;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
    letter-spacing: 2px;
    margin-top: 20px;
    margin-left: 5px;
}


#nav
    {
    line-weight:30px;
    background-color:;
    height:300px;
    width:100px;
    float:left;
    padding:5px;
clear:both;
    }

    #section
        {
        width:350px;
        float:left;
        padding:10px;
        }

    #footer{
        background-color:black;
        color:white;
        clear:both;
        text-align:center;
        padding:4px;
        }

</style>
</head>




complete code is  save this code as template.html put menu image and HTML file in same folder


<html>
<head>
<style>


    #header{
        background-color:black;
        color:white;
        text-align:center;
        padding:5px;
        }
   

   




    #templatemo_menu {
    float: left;
    width: 700px;

    align:center;
}

#templatemo_menu ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

#templatemo_menu ul li {
    padding: 0px;
    margin: 0px;
    display: inline;
}

#templatemo_menu ul li a {
    float: left;
    display: block;
    width: 130px;
    height: 50px;
    padding: 17px 10px 0 0;
    margin: 0 30px 0 0 ;
    font-size: 16px;
    text-align: center;
    text-decoration: none;
    color: #6d450f;   
    font-weight: bold;
    outline: none;
}

#templatemo_menu ul li a:hover, #templatemo_menu ul li .current {
    color: #fff;
    background: url('templatemo_menu_hover.png')
}


#templatemo_top_wrapper {
    width: 100%;
    height: 100px;
    background:url('templatemo_menu.jpg') no-repeat top center;
}

#templatemo_top {
    width: 970px;
    height: 100px;
    margin: 0 auto;
    padding: 0 30px 0 80px;
    background: url('templatemo_menu.jpg') no-repeat top center;
}





#templatemo_header_wrapper {
    clear: both;
    width: 100%;
    height: 300px;
    background: url(images/templatemo_header.jpg) no-repeat top center;
}

#templatemo_header {
    width: 920px;
    height: 250px;
    margin: 0 auto;
    padding: 50px 80px 0 80px;
    background: url(images/templatemo_header.jpg) no-repeat top center;
}

#templatemo_header  #site_title {
    float: left;
    width: 500px;
    padding-top: 30px;
    padding-left: 100px;
}

#templatemo_header  #site_title h1 {
    margin: 0;
    padding: 0;
    color: #fff;
}

#templatemo_header  #site_title h1 a {
    margin: 0px;
    padding: 0px;
    font-size: 50px;
    color: #ffef38;
    font-weight: normal;
    text-decoration: none;
}

#templatemo_header  #site_title a span {
    display: block;
    font-size: 16px;
    color: #FFFFFF;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
    letter-spacing: 2px;
    margin-top: 20px;
    margin-left: 5px;
}


#nav
    {
    line-weight:30px;
    background-color:;
    height:300px;
    width:100px;
    float:left;
    padding:5px;
clear:both;
    }

    #section
        {
        width:350px;
        float:left;
        padding:10px;
        }


    #footer{
        background-color:black;
        color:white;
        clear:both;
        text-align:center;
        padding:4px;
        }


</style>
</head>
<body>
<div id="header">
<h1>Ahmednagar City Gallery</h1>



<div id="templatemo_menu">
                   
            <ul>
                <li><a href="index.html" class="current">Home</a></li>
                <li><a href="portfolio.html">Portfolio</a></li>
                <li><a href="services.html">Services</a></li>
                <li><a href="contact.html">Contact Us</a></li>
       
            </ul>       
       
        </div> <!-- end of templatemo_menu -->
</div>





<div id="nav">

History<br>
Tourist Spots<br>
Femous places <br>
Tourist Guide<br>
Femous Things <br>

</div>


<div id="section">
<h1>Ahmednagar is very nice city..</h1>

<h1>Ahmednagar is very nice city..</h1>

<h1>Ahmednagar is best city..</h1>
<p>
</p>


</div>

<div id="footer">
<h1>copyright@</h1>
</div>
</body>
</html>                           

 

to download attractive menu tempate click here 

 

Assinement solve by Student

Pallavi Rachcha  MCA II (IMS Ahmednagar)

HTML5 CSS3 Sesson

Popular posts from this blog

Design Marathi website Using HTML CSS

          Design Marathi website Using HTML CSS,मराठी वेबसाईट designing HTML ,step by step Marathi website, how to display Marathi content in your website, Design Marathi website step by step , Marathi website using HTML and CSS, How To Design website using different Languages  Design Marathi website Using HTML CSS, Design Marathi website Using PHP, Design Marathi website Using JSP, Design Marathi website Using ASP, Design Marathi website Using C# Dot Net, Design Marathi website Using Vb Dot Net, मराठी वेबसाईट मराठी वेबसाईट बनवन अगदी सोप आहे मी या ब्लॉग मध्ये दिलेल्या स्टेप्स वापरून तुम्ही काही क्षणात मराठी वेब पेज तयार करू शकता  Design Marathi website Using HTML CSS,मराठी वेबसाईट designing HTML ,step by step Marathi website, how to display Marathi content in your website, Design Marathi website step by step , Marathi website using HTML and CSS, How To Design website using different Languages    Design Marathi website U

Create HTML CSS javascript News Box , HTML CSS News Slider Download

Create HTML CSS javascript News Box , HTML CSS News Slider Download, HTML News Box For Your Website Free Download, java script news box For your Website, HTML CSS News Box Tutorial, HTML CSS News Box Example With Source code, HTML CSS Link Slider, HTML Slider Menu ,java script news box For your Website, HTML News box source Code example, News Slider   Here Is Example Of News Box slider for Your Website you can use it wiht PHP, ASP, ASP.NET, JSP,HTML 1.HTML Code  Save this code as index.HTML <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title itemprop="name"></TITLE> <meta name="description" itemprop="description" content=""/> <META NAME="Keywords" CONTENT=""/>  <meta name=&quo

rowspan and colspan in html table

html table rowspan colspan tutoral, rowspan and colspan in html table, html table , html table video tutorial , html table with colspan and rowspan  html table rowspan colspan tutoral, rowspan and colspan in html table, html table , html table video tutorial , html table with colspan and rowspan  saving details Month Savings Savings for holiday! January $100 $50 February $80 click here to download html table colspan rowspan tutorial