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
Old 05-08-2007, 07:06 AM CSS horizontal menu?
coldturkey's Avatar
Extreme Talker

Posts: 211
Name: Rachel
Location: Spain
Trades: 3
Ive just done a vertial menu in css - with background... but im having trouble doing a hornizontal menu bar only in css as i want each button to have a set amount of padding around it, and im not sure how to do this.
Can some one help?
Thanks
^^^Done that now - but i have another question now - je je!

How do i determine the possition of a id - it seems i cant move it to where i want and i dont know why!
__________________

Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE


Last edited by coldturkey; 05-08-2007 at 07:56 AM.. Reason: solved - another problem
coldturkey is offline
Reply With Quote
View Public Profile Visit coldturkey's homepage!
 
 
Register now for full access!
Old 05-08-2007, 08:08 AM Re: CSS horizontal menu?
coldturkey's Avatar
Extreme Talker

Posts: 211
Name: Rachel
Location: Spain
Trades: 3
How can I make this 150 from the top and 100 from the left??

Code:
#navcontainer ul li
{
list-style-type: none;
padding: 0;
margin: 0;
display: block;
float: left;
background: url("http://biphome.spray.se/karl10/images/navBarBg.gif") repeat-x 20px;
font: 10px/20px "Lucida Grande", verdana, sans-serif;
text-align: center;
}
 
#navcontainer a
{
color: #000;
text-decoration: none;
display: block;
width: 70px;
border-top: 1px solid #A8B090;
border-bottom: 1px solid #A8B090;
border-left: 1px solid #A8B090;
}
 
#navcontainer li#active { background: url("http://biphome.spray.se/karl10/images/navBarBgHover.gif") repeat-x 20px; }
#navcontainer a:hover { background: url("http://biphome.spray.se/karl10/images/navBarBgHover.gif") repeat-x 20px; }
__________________

Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE

coldturkey is offline
Reply With Quote
View Public Profile Visit coldturkey's homepage!
 
Old 05-08-2007, 09:30 AM Re: CSS horizontal menu?
Experienced Talker

Posts: 36
Trades: 0
Here is a lot of different css menu's you can look at to learn from.
http://css.maxdesign.com.au/listamatic/

Also, try using the edit button instead of double posting.
__________________

Please login or register to view this content. Registration is FREE
Phaaze is offline
Reply With Quote
View Public Profile
 
Old 05-08-2007, 12:40 PM Re: CSS horizontal menu?
coldturkey's Avatar
Extreme Talker

Posts: 211
Name: Rachel
Location: Spain
Trades: 3
Quote:
Originally Posted by Phaaze View Post
Here is a lot of different css menu's you can look at to learn from.
http://css.maxdesign.com.au/listamatic/

Also, try using the edit button instead of double posting.

Thank you but I have already looked at that site, and I have used menus off there before, but I have the same problem - when I write top: 150 px; left: 10 px; it doesnt work seem to work.

Can any on else see why adding
top: 150 px;
left: 10 px;
in the css code doesnt work and what esle i could put there to see if it works.

Hope some one can help.
Cheers
__________________

Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE

coldturkey is offline
Reply With Quote
View Public Profile Visit coldturkey's homepage!
 
Old 05-08-2007, 12:46 PM Re: CSS horizontal menu?
Novice Talker

Posts: 10
Trades: 0
margin-top: 150px;
margin-left: 10px;
atlantic is offline
Reply With Quote
View Public Profile
 
Old 05-08-2007, 02:02 PM Re: CSS horizontal menu?
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
Quote:
top: 150 px;
left: 10 px;
That will ONLY work if the element you're trying to move is set to either position: relative or position: absolute. Otherwise you have to use floats, padding and/or margins to put things where you want them.

You might want to check out this tutorial:
http://www.barelyfitz.com/screencast...s/positioning/
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 05-09-2007, 10:46 PM Re: CSS horizontal menu?
houdini987's Avatar
Extreme Talker

Posts: 155
Name: Brian Trudeau
Location: Enfield, CT
Trades: 2
Check out: http://www.webcredible.co.uk/user-fr...-buttons.shtml

I used that website to build some horizontally-aligned css rollover menu and it works great! (http://www.corazzinirealestate.com)
__________________
Trudeau Consulting LLC

Please login or register to view this content. Registration is FREE
houdini987 is offline
Reply With Quote
View Public Profile Visit houdini987's homepage!
 
Reply     « Reply to CSS horizontal menu?
 

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.69935 seconds with 12 queries