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 03-21-2012, 03:35 PM   PM User | #1
aliahad
New to the CF scene

 
Join Date: Nov 2011
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
aliahad is an unknown quantity at this point
CSS question

I have a drop down menu and also I am using two javascript function one is for date and one is for time, but when I use the menu it doesn't cover the javascript, the minute and seconds still show up in the background.

any help is appreciated.

Thanks,
Ali.
Attached Thumbnails
Click image for larger version

Name:	3-20-2012 3-03-22 PM.jpg
Views:	27
Size:	7.6 KB
ID:	10947   Click image for larger version

Name:	3-20-2012 3-04-32 PM.jpg
Views:	24
Size:	26.8 KB
ID:	10948   Click image for larger version

Name:	3-20-2012 3-03-53 PM.jpg
Views:	20
Size:	14.6 KB
ID:	10949  

Last edited by aliahad; 03-21-2012 at 03:37 PM.. Reason: Adding attachments
aliahad is offline   Reply With Quote
Old 03-21-2012, 04:25 PM   PM User | #2
Raphael
New Coder

 
Join Date: Mar 2009
Posts: 70
Thanks: 3
Thanked 3 Times in 3 Posts
Raphael is an unknown quantity at this point
Check the z-index of the dropdown & make sure it's higher than the stuff below it.
Raphael is offline   Reply With Quote
Old 03-21-2012, 04:45 PM   PM User | #3
aliahad
New to the CF scene

 
Join Date: Nov 2011
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
aliahad is an unknown quantity at this point
this is the current code:

Code:
 
#navMenu ul li:hover ul {
visibility:visible;
z-index:9999;
display:block !important;	
 }
I also changed the value but it is not working.
aliahad is offline   Reply With Quote
Old 03-21-2012, 05:06 PM   PM User | #4
Raphael
New Coder

 
Join Date: Mar 2009
Posts: 70
Thanks: 3
Thanked 3 Times in 3 Posts
Raphael is an unknown quantity at this point
Is it happening in all browsers?
Raphael is offline   Reply With Quote
Old 03-21-2012, 05:10 PM   PM User | #5
teedoff
Senior Coder

 
Join Date: Aug 2010
Location: High Point, NC
Posts: 3,325
Thanks: 5
Thanked 363 Times in 360 Posts
teedoff is on a distinguished road
For z-index to work, you need to set the positions attributes to the affected elements.

Can you post a link to your live site?
__________________
Teed
teedoff is offline   Reply With Quote
Old 03-22-2012, 08:27 PM   PM User | #6
aliahad
New to the CF scene

 
Join Date: Nov 2011
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
aliahad is an unknown quantity at this point
Teed,

It's an internal site...not sure I can post this link...

Code:
     <li style="font-size: 0.7em"> <a href="#">Tax Departments</a>
      <ul>
    <li><a href="#">Employment Tax</a></li>
    <li><a href="#">Income Tax</a></li>
    <li><a href="#">License</a></li>
    <li><a href="#">National</a></li>
    <li><a href="#">Property Tax</a></li>
    <li><a href="#">Real Estate</a></li>
    <li><a href="#">Sales Tax</a></li>
    <li><a href="#">Tax Audits</a></li>
    <li><a href="#">Tax Planning</a></li>
    <li><a href="#">Tax Systems</a></li>
    <li><a href="#">Unclaimed Property</a></li>
  </ul>
     
     </li>
CSS:
Code:
  #navMenu li {
	margin:0;
	padding:0;
	list-style:none;
	float:left;
	position:relative;
	/*for 1280 screen*/
width:210px;
	/*for 1360 screen
width:223px;*/
/*background-color: #09F;*/
background-color:#900 !important;
	display:inline-block !important;
	z-index:1;
 }
aliahad 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 09:52 AM.


Advertisement
Log in to turn off these ads.