Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 09-10-2012, 03:57 PM   PM User | #1
willscarlet
New Coder

 
Join Date: Aug 2012
Posts: 65
Thanks: 5
Thanked 0 Times in 0 Posts
willscarlet is an unknown quantity at this point
css menu

I have a logo set up in the middle of my main menu bar and i was wondering if you guys knew of a better way to do it.

Code:
/* -- Menu : Begin -- */
#menu_outline {
	border-top:5px solid white;
	border-bottom:5px solid white;
	width: 100%;
	height:30px;
	background: url(../img/background/metal.jpg) top center repeat;
	padding: 1px 0;
}

menu {
	width: 970px;
	margin: 0 auto;
	position: relative;
}

menu a.menu_btn {
	font-family: sans-serif;
	text-transform: uppercase;
	font-size: 14px;
	color: #fff;
	text-decoration: none;
	font-weight: bold;
	outline: none;
	padding: 10px 60px;
	float: left;
	
	-webkit-border-radius: 6px;
	-moz-border-radius: 6px;
	border-radius: 6px;
	position: relative;
	behavior: url(../js/PIE.html);
	
	-webkit-transition: all .3s linear;
	-moz-transition: all .3s linear;
	-o-transition: all .3s linear;
	transition: all .3s linear;
}

menu a.menu_btn u {
	font-family: "calluna-sans-1","calluna-sans-2", sans-serif;
	text-transform: uppercase;
	font-size: 14px;
	color: #fff;
	text-decoration: none;
	outline: none;
	padding: 10px 60px;
	float: left;
	list-style-type: none;
	-webkit-border-radius: 6px;
	-moz-border-radius: 6px;
	border-radius: 6px;
	position: relative;
	behavior: url(../js/PIE.html);
	
	-webkit-transition: all .3s linear;
	-moz-transition: all .3s linear;
	-o-transition: all .3s linear;
	transition: all .3s linear;
}

menu a.menu_btn:hover, menu a.menu_btn.active {
	background: #b2b0b3;
	height: 10px;
	color: white;
}

menu .linebreak {
	float: left;
	padding-top: 13px;	
}

menu .linebreakright {
	float: right;
	padding-top: 13px;	
}
/* -- Menu : End -- */

/* -- Logo : Begin -- */
#logo1 {
	background-image: url(../img/background/photo.JPG);
    position: absolute;
    top: -20px;
	left: 330px;
	height: 100px;
	width: 280px;
	z-index: 999;
	border: 2px solid #00ff01;
}

/* -- Logo : End -- */
Then my menu just looks like this:

Code:
<menu>

<!-- Logos: Begin -->

<a id="logo1" href = "../index.html"></a>

<!-- Logos: End -->

<ul><a href="../index.html" class="menu_btn" style="float: left;">Home</a></ul>

<ul><a href="index.html" class="menu_btn" style="float: left;">About Us</a></ul>

<ul><a href="http://www.crossfitsumter.com/forum/" target = "_blank" style="float: right;" class="menu_btn" >Forums</a></ul>

<ul><a href="../contacts/index.html" style="float: right;" class="menu_btn active" >Contacts</a></ul>

<div class="clear"></div>
</menu>
willscarlet is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 08:24 AM.


Advertisement
Log in to turn off these ads.