Ecommerce software home
Shopping Cart Software Forum for Ecommerce Templates
Shopping Cart Software Forum for Ecommerce Templates
Home | Profile | Register | Active Topics | Members | Search | FAQ
Click Here To Login
Forgot your Password?



Find us on Facebook

Follow us on Twitter

View our YouTube channel

Ecommerce Templates on Google Plus


 All Forums
 Technical
 PHP (Unix / Linux / Apache) versions
 CSS Menus - Help with Positioning
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

sharonchinn
New Member

USA
68 Posts

Posted - 10/19/2012 :  21:15  Show Profile
I've been using the vertical CSS flyout menus on my site, but I just can't keep them in a specific position so the flyouts sit next to the previous category it relates to. The position keeps changing depending on how wide my browser window is.

Site: http://www.decorativepaintingstore.com

Can you offer any suggestions on what I need to change?

Here's is my css code:

/* DYNAMIC CSS MENUS */
/*vertical home categories*/
ul.ectmenu1 {
list-style:none;
font-size:10px;
padding:0px;
}
/*categories without sub categories*/
li.ectmenu1 {
border:0px dotted #ffffff;
padding:0px;
}
/*category links which spawn sub-categories*/
li.ectmenuhassub1 a{
display:block;
padding:0px;
}
/*mouse over properties of the category links which spawn sub-categories
*/
li.ectmenuhassub1 a:hover{
display:block;
padding-top:3px;
background-color:#FFFFFF;
color:#f27b01;
}
/*link properties*/
li.ectmenu1 a{
display:block;
padding:0px;
}
/*mouse over properties*/
li.ectmenu1 a:hover{
background-color: #FFFFFF;
color: #f27b01;
border-color: #999999;
border-style:solid;
border-width:1px;
}
/*properties of flyout menus*/
li.ectsubmenu1{
display: block;
width:200px;
padding:0px;
position: relative;
left: -325px;
top: -220px;
z-index: 5000;
background-image: url(images/JPG_GIFS_tole_decorative_painting/Body_BG.jpg);
border-color: #999999;
border-style: solid;
border-width: 1px;
}
/*mouse over properties of flyout menus*/
li.ectsubmenu1 a:hover{
background-color: #FFFFFF;
color: #f27b01;
}
/* END DYNAMIC CSS MENUS */

Vince
Administrator

31259 Posts

Posted - 10/20/2012 :  05:30  Show Profile
Andy and Marlene are much more experienced in CSS than me and they won't be around till Monday I'm afraid. But in the meantime, if you use the standard CSS definition that comes with the template does this still happen? If not, can you start with the standard and add your changes testing after each one till you find which setting causes this?

Vince

Click Here for Shopping Cart Software
Click Here to sign up for our newsletter
Click Here for the latest updater
Go to Top of Page

Andy
Administrator

69140 Posts

Posted - 10/20/2012 :  06:00  Show Profile
Hi

It's caused by conflicts with relative positioning

Remove this

position:relative

from the classes

.sidebar1
li.ectsubmenu1

And see if that sorts it out.

Andy

Ecommerce templates

ECT newsletter
ECT hosting suggestions

Dreamweaver templates

Follow us on Twitter, Facebook, Google + and YouTube



Go to Top of Page

sharonchinn
New Member

USA
68 Posts

Posted - 10/20/2012 :  08:08  Show Profile
Thank Vince and Andy for taking time to respond.

Andy your suggestion gets them positioned in the right place and they don't move when the browser window changes sizes, but now the flyout boxes are falling behind the main content of my page.

Any suggestions for that. I remember having that problem when I first started working with the css menus and that is why I had the z-index code added. Maybe I have that in the wrong place.
Go to Top of Page

sharonchinn
New Member

USA
68 Posts

Posted - 10/20/2012 :  08:53  Show Profile
Never mind... through trial and error I found if I added the z-index value here, it fixed that new problem:

ul.ectmenu1 {
list-style:none;
font-size:10px;
padding:0px;
z-index:5;
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Shopping Cart Software Forum for Ecommerce Templates © 2002-2013 ecommercetemplates.com Go To Top Of Page
This page was generated in 0.06 seconds. Snitz Forums 2000