Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
What is the easiest way to create a menubar?
Old 09-07-2009, 04:07 AM What is the easiest way to create a menubar?
fresh-d's Avatar
Super Talker

Posts: 145
Trades: 0
I tried to create an image and then line up the links to the correct position but it is kinda hard to line up the links to their right positions.

Here is what my attempt looks like: http://hmgi.info/daovang/

Thanks.
__________________

Please login or register to view this content. Registration is FREE
fresh-d is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 09-07-2009, 06:36 AM Re: What is the easiest way to create a menubar?
Super Talker

Posts: 101
Trades: 0
This works:

HTML Code:
/* --- Body */
body {
 background: #000000;
 text-align: center;
 color: #FFFFFF;
}

#body {
 text-align: left;
 margin: 0px auto;
 width: 750px;
}

/* --- Logo */
#logo {
 width: 300px;
 height: 50px;
 background: url(graphics/logo.png);
 margin: 0px 0px -10px -15px;
}

/* --- Menubar & Navigation*/
#menubar {
 background: url(graphics/menubar.png);
 width: 750px;
 height: 36px;
 margin: 5px 0px 0px px;
}

#navigation {
 margin-left: 20px
}

#navigation li{
 display: block;
 float: left;
 line-height: 35px;
}

#navigation li a{ 
 padding: 9px 25px 7px 25px;
}

/* --- Main */
#main {
 text-align: left;
 height: 500px;
 margin: 0px 0px 0px 0px;
}

HTML Code:
<div id="menubar">

<div id="navigation">
        <li><a href="index.html" id="nav-home">Home</a></li>
        <li><a href="aboutus.html" id="nav-aboutus">About Us</a></li>
        <li><a href="services.html" id="nav-services">Services</a></li>
        <li><a href="contactus.html" id="nav-contactus">Conact Us</a></li>
</div>

</div>
Just so you know, if you have 0 as the value you don't have to put px. Just put 0.

Last edited by Towhid; 09-07-2009 at 06:37 AM..
Towhid is offline
Reply With Quote
View Public Profile
 
Old 09-17-2009, 12:17 AM Re: What is the easiest way to create a menubar?
Skilled Talker

Posts: 72
Location: singapore
Trades: 0
set a width of your #navigation li around 100px and you need to hide you text link
by using this trick

#navigation li a { dispay:block; width:100px; height:50px; text-indent:-5000px cursorointer; overflow:hidden; }
__________________

Please login or register to view this content. Registration is FREE
zelllibin is offline
Reply With Quote
View Public Profile Visit zelllibin's homepage!
 
Reply     « Reply to What is the easiest way to create a menubar?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.20381 seconds with 12 queries