Solved

css

Posted on 2011-09-08
2
288 Views
Last Modified: 2012-05-12
hey guys, i need help with css for an asp menu. i used css friendly to convert to menu to this

<div class="Menu" id="ctl00_Menu">
      <div class="AspNet-Menu-Horizontal">
                  <ul class="AspNet-Menu">
                        <li class="AspNet-Menu-Leaf">
                              <a href="javascript:__doPostBack('ctl00$Menu','bProfile')" class="AspNet-Menu-Link">
                                    Profile</a>
                        </li>
                        <li class="AspNet-Menu-Leaf">
                              <a href="javascript:__doPostBack('ctl00$Menu','bAbout Us')" class="AspNet-Menu-Link">
                                    About Us</a>
                        </li>
                        <li class="AspNet-Menu-WithChildren">
                              <a href="javascript:__doPostBack('ctl00$Menu','bServices')" class="AspNet-Menu-Link">
                                    Services</a>
                              <ul>
                                    <li class="AspNet-Menu-Leaf">
                                          <a href="javascript:__doPostBack('ctl00$Menu','bServices\\Deceased Estates')" class="AspNet-Menu-Link">
                                                Deceased Estates</a>
                                    </li>
                                    <li class="AspNet-Menu-Leaf">
                                          <a href="javascript:__doPostBack('ctl00$Menu','bServices\\Civil & Criminal Litigation')" class="AspNet-Menu-Link">
                                                Civil & Criminal Litigation</a>
                                    </li>
                                    <li class="AspNet-Menu-Leaf">
                                          <a href="javascript:__doPostBack('ctl00$Menu','bServices\\Family Law')" class="AspNet-Menu-Link">
                                                Family Law</a>
                                    </li>
                                    <li class="AspNet-Menu-Leaf">
                                          <a href="javascript:__doPostBack('ctl00$Menu','bServices\\Law of Persons')" class="AspNet-Menu-Link">
                                                Law of Persons</a>
                                    </li>
                                    <li class="AspNet-Menu-Leaf">
                                          <a href="javascript:__doPostBack('ctl00$Menu','bServices\\Criminal Law')" class="AspNet-Menu-Link">
                                                Criminal Law</a>
                                    </li>
                              </ul>
                        </li>
                        <li class="AspNet-Menu-Leaf">
                              <a href="javascript:__doPostBack('ctl00$Menu','bSupport Staff')" class="AspNet-Menu-Link">
                                    Support Staff</a>
                        </li>
                        <li class="AspNet-Menu-Leaf">
                              <a href="javascript:__doPostBack('ctl00$Menu','bContacts')" class="AspNet-Menu-Link">
                                    Contacts</a>
                        </li>
                  </ul>
 
      </div>


i need css to make it look like ths

 meu
please help
0
Comment
Question by:JCWEBHOST
2 Comments
 
LVL 19

Expert Comment

by:Bardobrave
Comment Utility
We cannot do your work for you. We can help you when you find a problem that don't know how to resolve or when you point a particular case in an element.

What you are asking here is probably something that you or someone on your company should do, we can help you to solve the issues you find doing that work, but not make your work for you.
0
 
LVL 9

Accepted Solution

by:
dexterrajesh earned 500 total points
Comment Utility
though not exactly with your code, this should help you

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>CSS Dropdown mainmenu</title>
<style type="text/css">
body {
	font-family: Verdana, Geneva, sans-serif;
	font-size: 100%;
	color: #666;
	background-color: #fff;
	margin-left: 20px;
	margin-top: 20px;
	margin-right: 20px;
	margin-bottom: 20px;
}

a, a:hover, a:active, a:focus {
	outline:0; 
	direction:ltr;
}
 
.wrapper {
	position:relative; height:25px;
}
	
.mainmenu {
	position:absolute; 
	z-index:100;
	font-family:Verdana, Geneva, sans-serif;
	font-weight:normal;
	font-size:90%;
	line-height:25px;
	left:50%; 
	margin-left:-303px; 
	width:606px;
}

ul.menu {
	padding:0; 
	margin:0; 
	list-style:none; 
	width:100px; 
	overflow:hidden; 
	float:left; 
	margin-right:1px;
}

ul.menu a {
	background:#369;
	text-decoration:none; 
	color:#fff; 
	padding-left:5px;
}
 
ul.menu li.list {
float:left;
width:250px;
margin:-32767px -125px 0px 0px;
background:brown url(images/top1.png) no-repeat left bottom;
}

ul.menu li.list a.category {
position:relative;
z-index:50;
display:block;
float:left;
width:120px;
margin-top:32767px;
background:transparent;
}

ul.menu li.list a.category:hover,
ul.menu li.list a.category:focus,
ul.menu li.list a.category:active {
	margin-right:1px;
	background-image:url(images/tophover1.png);
	background-repeat:no-repeat;
	background-position:left top;

}

ul.submenu {
	float:left; 
	padding:25px 0px 0px 0px; 
	margin:0; 
	list-style:none; 
	background-image:url(images/tophover1.png);
	background-repeat:no-repeat;
	background-position:left top;
	margin:-25px 0px 0px 0px;
	}
	
ul.submenu li a {
float:left;
width:120px;
background:#369;
clear:left;
color:#fff;
}

ul.submenu li a.endlist {
	background:url(images/bottom1.png);
}
 
ul.submenu li a.endlist:hover,
ul.submenu li a.endlist:focus,
ul.submenu li a.endlist:active {
background:url(images/bottomhover1.png);
}
 
ul.submenu a:hover,
ul.submenu a:focus,
ul.submenu a:active {
background:#900;
margin-right:1px;
color:#fff;
}

</style>


</head>

<body>
<div class="wrapper">
<div class="mainmenu">
<ul class="menu">
<li class="list">
	<a class="category" href="#Home">Home</a>
</li>
</ul>
<ul class="menu">
<li class="list">
	<a class="category" href="#about">About Us&nbsp;&nbsp;&raquo;</a>
	<ul class="submenu">
		<li><a href="#about1">About link 1</a></li>
		<li><a href="#about2">About link 2</a></li>
		<li><a href="#about3">About link 3</a></li>
        <li><a href="#about4">About link 4</a></li>
		<li><a class="endlist" href="#about5">About link 5</a></li>
	</ul>
</li>
</ul>
<ul class="menu">
<li class="list">
	<a class="category" href="#articles">Articles&nbsp;&nbsp;&raquo;</a>
	<ul class="submenu">
		<li><a href="#articles1">Articles link 1</a></li>
		<li><a href="#articles2">Articles link 2</a></li>
		<li><a href="#articles3">Articles link 3</a></li>
		<li><a class="endlist" href="#articles4">Articles link 4</a></li>
	</ul>
</li>
</ul>
<ul class="menu">
<li class="list">
	<a class="category" href="#news">News&nbsp;&nbsp;&raquo;</a>
	<ul class="submenu">
		<li><a href="#news1">News link 1</a></li>
		<li><a href="#news2">News link 2</a></li>
		<li><a class="endlist" href="#news3">News link 3</a></li>
	</ul>
</li>
</ul>
<ul class="menu">
<li class="list">
	<a class="category" href="#donate">Donate</a>
</li>
</ul>
<ul class="menu">
<li class="list">
	<a class="category" href="#contact">Contact</a>
</li>
</ul>
<!-- end mainmenu --></div>
<!-- end wrapper --></div>
</body>
</html>

Open in new window

0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Hangfire / asp.net sample 3 27
Select2 jquery help 9 41
Wordpress CSS Link Issue 2 13
Printing a Google Form 2 0
This is a how to build your own CSS3 slideshow and when I say CSS3 I mean just CSS with no javascript in sight! There a few examples online of how to do this but most just show you an example without any explanation, others make it more complicat…
Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
In this tutorial viewers will learn how to define a gradient in CSS. Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Gradient. Define the background as "linear-gradient(to right, #ee3668, black)". Ensure you …
In this tutorial viewers will learn how to embed custom externally-hosted Google Fonts using the Google Font API in CSS Go to the Google Fonts website at google.com/fonts: Browse or search based on font properties or name to find a suitable font for…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now