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 01-04-2013, 05:25 AM   PM User | #1
logepoge1
New Coder

 
Join Date: Oct 2012
Posts: 44
Thanks: 3
Thanked 0 Times in 0 Posts
logepoge1 is an unknown quantity at this point
Floating Menu Bar

My Website

On my google chrome the menu floats over the youtube videos but on others' browsers and my other browsers in goes under the videos but over the articles. Any fix on this?

I figured all you need is the CSS:

Code:
/* Screen CSS */

body 
{
    background-image: url('wallpaper.jpg');
	background-repeat: no-repeat;
	background-attachment: fixed;
	
}

#ticker { width: 100%; left: 10px; top: 10px; color: white; }

#thanksarticle 
{
    background-color: grey;
    border-radius: 20px;
    padding-left: 1%;
    padding-right: 1%;
    float: left;
	margin-top: 2px;
}

#thanks { text-decoration: none;}

#title {background-color: grey;
    border-radius: 20px;
	text-align: center;
	margin-right: 40%;
	margin-left: 40%;
	font-size: 50px;}

#main 
{
    background-color: grey;
    border-radius: 20px;
    padding-left: 1%;
    padding-right: 1%;
    margin-top: 1%;
    width: 45%;
    float: left;
}

#vid { float:right;
        background-color: grey;
		width: 560px;
		padding: 1em;
		border-radius: 20px;
        margin-top: 10px;
        }
        
div.floating-menu 
{
    position:fixed;
    top: 20px; 
    right: 50px;
    background:grey;
    width:150px;
    z-index:100;
    text-align:right;
	border-radius: 20px;
}

div.floating-menu a, div.floating-menu h3 
{
    display:block;
    margin:0 0.5em; 
    text-decoration:none;
}

#artright 
{
    background-color: grey;
    border-radius: 20px;
    padding-left: 1%;
    padding-right: 1%;
    margin-top: 1%;
    width: 45%;
    float: right;
}

#article2
{
    clear: both;
    float: left;
    background-color: grey;
    border-radius: 20px;
    padding-left: 1%;
    padding-right: 1%;
    margin-top: 1%;
	margin-bottom: 10px;
    width: 45%;
    
}

a 
{
    color: black;
    text-decoration: none;
}

a:hover 
{
     color:#00A0C6; 
     text-decoration:none; 
     cursor:pointer;  
}
        
footer {background-color:grey;
		border-radius: 20px;
        text-align: center;
        margin-top: 20px;
        clear: both;}
logepoge1 is offline   Reply With Quote
Old 01-04-2013, 06:02 AM   PM User | #2
LearningCoder
Regular Coder

 
LearningCoder's Avatar
 
Join Date: Jan 2011
Location: The Pleiades
Posts: 860
Thanks: 68
Thanked 28 Times in 28 Posts
LearningCoder is an unknown quantity at this point
It's appears all the same for me and I've just checked in FF, IE and GC. The menu stays above all the content when you scroll down, in all those browsers.

It sounds like a z-index issue to me. You've only declared z-index on one element. I'm not sure maybe try explicitly declaring z-indexes for the elements you are having issues with, but make sure the z-index is less than the value of the menu's z-index.

Regards,

LC.
__________________
Carewizard - http://www.carewizard.co.uk

Last edited by LearningCoder; 01-04-2013 at 06:05 AM..
LearningCoder is offline   Reply With Quote
Old 01-04-2013, 06:05 AM   PM User | #3
logepoge1
New Coder

 
Join Date: Oct 2012
Posts: 44
Thanks: 3
Thanked 0 Times in 0 Posts
logepoge1 is an unknown quantity at this point
Yeah its working for me and i have IE9, and chrome 22. I think it is because of the 2 articles over each other
logepoge1 is offline   Reply With Quote
Old 01-04-2013, 06:07 AM   PM User | #4
LearningCoder
Regular Coder

 
LearningCoder's Avatar
 
Join Date: Jan 2011
Location: The Pleiades
Posts: 860
Thanks: 68
Thanked 28 Times in 28 Posts
LearningCoder is an unknown quantity at this point
Which articles are over each other? I don't see any?

Regards,

LC.
__________________
Carewizard - http://www.carewizard.co.uk
LearningCoder 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 05:52 AM.


Advertisement
Log in to turn off these ads.