CSS Menu Positioining

This is a discussion on "CSS Menu Positioining" within the Web Page Design section. This forum, and the thread "CSS Menu Positioining are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Sep 27th, 2006, 07:01
New Member
Join Date: Sep 2006
Location: india
Age: 24
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
CSS Menu Positioining

Hello Experts in CSS,

I downloaded a Horizontal menu which is built using CSS and Javascript and I customized it according to my desire.

The menu is not positioning properly in different screen resolutions and the reason I found is because, the menus top and left values are for screen resolution and not for the layout which is 780px width. I want the menu position exactly on the same spot in every resolution.


Could some one help me figure this out this would be really greateful to them.

You can find the menu here http://www.150dpi.com/cssmenu/

And the CSS file at http://www.150dpi.com/cssmenu/macsafari.css

Thank You,

Sathish

Last edited by sathish16; Sep 27th, 2006 at 12:44. Reason: for better understanding
Reply With Quote

  #2 (permalink)  
Old Sep 27th, 2006, 11:16
Ryan Fait's Avatar
SuperMember

SuperMember
Join Date: May 2006
Location: Las Vegas
Posts: 3,786
Thanks: 0
Thanked 0 Times in 0 Posts
Re: CSS Menu Positioining

I'm confused...
Reply With Quote
  #3 (permalink)  
Old Sep 27th, 2006, 12:45
New Member
Join Date: Sep 2006
Location: india
Age: 24
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Re: CSS Menu Positioining

Can you please read it now. I made some edit with my text.

Thanks


Quote:
Originally Posted by ryanfait View Post
I'm confused...
Reply With Quote
  #4 (permalink)  
Old Sep 27th, 2006, 16:02
Most Reputable Member
Join Date: Apr 2006
Location: Cornwall, UK
Posts: 1,310
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Skype™ to ukgeoff
Re: CSS Menu Positioining

Oh dear! Here we go again.

There is a link to a tutorial in the sticky at the top of this forum. Follow it and learn how to create your own horizontal and vertical menus using css to produce dropdown menus.

BTW. I think your menu has more that resolution problems. I looked at it using Firefox and its behaviour is awful.
Reply With Quote
  #5 (permalink)  
Old Sep 27th, 2006, 23:14
Ryan Fait's Avatar
SuperMember

SuperMember
Join Date: May 2006
Location: Las Vegas
Posts: 3,786
Thanks: 0
Thanked 0 Times in 0 Posts
Re: CSS Menu Positioining

Is it supposed to do anything? If so, it doesn't work at all in Safari 2.
Reply With Quote
  #6 (permalink)  
Old Sep 28th, 2006, 03:24
New Member
Join Date: Sep 2006
Location: india
Age: 24
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Re: CSS Menu Positioining

Hello All,

Thanks for your suggestions on using a full CSS based menu. The menu which is displaying at incorrect position in Firefox or whatever browser is not because of problem with the menu. I made the positinoinig like that. I was testing it and as I was not able to get what I wanted, I just left it as it is.

And my question was very simple, is there a way that I can position the menu's TOP and LEFT values in reference with the layout and not the screen size.

If I manage to do it then screen resolutions wont be a problem as my menus left and top values will refer to the layout design each time in any screen resolution.

I am attaching an image of what I mean layout LEFT and TOP.

Thanks

Sathish

Last edited by sathish16; Sep 28th, 2006 at 09:33.
Reply With Quote
  #7 (permalink)  
Old Sep 28th, 2006, 04:36
Ryan Fait's Avatar
SuperMember

SuperMember
Join Date: May 2006
Location: Las Vegas
Posts: 3,786
Thanks: 0
Thanked 0 Times in 0 Posts
Re: CSS Menu Positioining

Oh, yes. You'd have to apply a position: absolute; to the container that the navigation is in. It'll cause more problems that you'll have to work out, but that'll fix what you're asking.
Reply With Quote
  #8 (permalink)  
Old Sep 28th, 2006, 05:25
New Member
Join Date: Sep 2006
Location: india
Age: 24
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Re: CSS Menu Positioining

Thanks for the idea. I even did that. Below my CSS code.

#menuRealEstate {
DISPLAY: block; Z-INDEX: 300; LEFT: 0px; VISIBILITY: hidden; WIDTH: 138px; POSITION: absolute; TOP: 10px
}


The above is the code that refers to the first drop down menu. I made the position to absolute. Still have the problem.

Can you please look at my code and see what could be wrong.

Thanks



body
{
background-color: #FFFFFF;
font-size:12px;
font-family:Verdana, Arial, Helvetica, sans-serif;
margin-top: 0px;
}
#outer
{
width: 780px;
background-color:#FFFFFF;
margin-top: 0px;
margin-bottom: 0px;
margin-left: auto;
margin-right: auto;
padding: 0px;
margin: 0 auto
}
.nav2 {
PADDING-RIGHT: 0px;
PADDING-LEFT: 0px;
PADDING-BOTTOM: 0px;
PADDING-TOP: 0px;
}
#menuRealEstate {
DISPLAY: block; Z-INDEX: 300; LEFT: 0px; VISIBILITY: hidden; WIDTH: 138px; POSITION: absolute; TOP: 10px
}
#header {
padding: 0px;
margin: 0px;
text-align: center;
}
#menu {
padding: 0px;
margin: 0px;
text-align: center;
background-color:#84575A;
}
#banner {
padding: 0px;
margin: 0px;
text-align: center;
}

#menuHome {
DISPLAY: block; Z-INDEX: 300; LEFT: 125px; VISIBILITY: hidden; WIDTH: 140px; POSITION: absolute; TOP: 76px
}
#menuRentals {
DISPLAY: block; Z-INDEX: 300; LEFT: 59px; VISIBILITY: hidden; WIDTH: 138px; POSITION: absolute; TOP: 0px
}
#menuRoommates {
DISPLAY: block;
Z-INDEX: 300;
LEFT: 125px;
VISIBILITY: hidden;
WIDTH: 138px;
POSITION: absolute;
TOP: 76px;
text-decoration : none;
}
#menuMerchandise {
DISPLAY: block; Z-INDEX: 300; LEFT: 125px; VISIBILITY: hidden; WIDTH: 138px; POSITION: absolute; TOP: 76px
}
#menuAutos {
DISPLAY: block; Z-INDEX: 300; LEFT: 125px; VISIBILITY: hidden; WIDTH: 138px; POSITION: absolute; TOP: 50px
}
#menuEmployment {
DISPLAY: block; Z-INDEX: 300; LEFT: 125px; VISIBILITY: hidden; WIDTH: 138px; POSITION: absolute; TOP: 76px
}

Last edited by sathish16; Sep 28th, 2006 at 09:34.
Reply With Quote
  #9 (permalink)  
Old Sep 28th, 2006, 09:31
New Member
Join Date: Sep 2006
Location: india
Age: 24
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Re: CSS Menu Positioining

Hello People,

I figured out and made teh menu work like I wanted. Anways.. thanks for all those who really tried to help me.

Sathish
Reply With Quote
Reply

Tags
css, menu, positioining

Thread Tools

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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
css menu csun PHP Forum 4 Aug 1st, 2007 20:37
I have a normal css menu, but want ot add drop down menu to it multichild Web Page Design 7 Jan 9th, 2007 16:07
Add Sub Menu DannyP43 JavaScript Forum 10 Sep 3rd, 2006 19:47
CSS menu cbrams9 Web Page Design 1 Aug 3rd, 2006 15:46
Help with pop-up menu please!!!?? aseriouslyfunkydiva Graphics and 3D 1 Nov 16th, 2005 15:11


All times are GMT. The time now is 16:28.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43