Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 14 of 14

Thread: Div position

  1. #1
    New Coder
    Join Date
    Dec 2008
    Location
    Latvia, Riga
    Posts
    28
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Exclamation Div position

    I have one question/problem about div positioning.

    I have two divs - #menu and #sidebar1. In #menu is flash file which overlays #sidebar1. But #menu flash file is behind #sidebar1. I've tried with z-index, but nothing happened.

    Code:
    #menu {
    	background-image:url(../images/sidebar1.png);
    	background-repeat:repeat-y;
    	height:50px;
    	border-bottom-style:solid;
    	border-bottom-width:2pt;
    	border-bottom-color:#024302;
    	float:left;
    	z-index:5;
    }
    Code:
    #sidebar1 {
    	float: left; 
    	width: 11em; 
    	background-image:url(../images/sidebar1.png); 
    	background-repeat:repeat-y;
    	padding-left: 15px;
    	z-index:0;
    }

  • #2
    New Coder
    Join Date
    Dec 2008
    Location
    Latvia, Riga
    Posts
    28
    Thanks
    0
    Thanked 0 Times in 0 Posts
    cmon, somebody can help?

  • #3
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,865
    Thanks
    160
    Thanked 2,224 Times in 2,211 Posts
    Sorry, we can't guess the rest of your code!
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • #4
    New Coder
    Join Date
    Dec 2008
    Location
    Latvia, Riga
    Posts
    28
    Thanks
    0
    Thanked 0 Times in 0 Posts
    What is the coda that you need? Other css?

  • #5
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,865
    Thanks
    160
    Thanked 2,224 Times in 2,211 Posts
    If possible, a link to your page would be better!
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • #6
    New Coder
    Join Date
    Dec 2008
    Location
    Latvia, Riga
    Posts
    28
    Thanks
    0
    Thanked 0 Times in 0 Posts
    http://xfr33.l4rge.com/

    This is link. There is flash menu.

  • #7
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,865
    Thanks
    160
    Thanked 2,224 Times in 2,211 Posts
    Your menu is currently showing over the side bar in FF2 and IE6.

    Anyway removing <param value="transparent" name="wmode"/> and wmode="transparent" may bring it forward, in any other browsers.
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • #8
    New Coder
    Join Date
    Dec 2008
    Location
    Latvia, Riga
    Posts
    28
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Ok, but then I need transparent background. How can I do that?

  • #9
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,865
    Thanks
    160
    Thanked 2,224 Times in 2,211 Posts
    Which is your browser?
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • #10
    New Coder
    Join Date
    Dec 2008
    Location
    Latvia, Riga
    Posts
    28
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I have IE 8 and FF 3

  • #11
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,865
    Thanks
    160
    Thanked 2,224 Times in 2,211 Posts
    Umm.. you need to set position:relative/absolute to work the z-index property. So have a try by setting position:relative; to your menu selector.
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • #12
    New Coder
    Join Date
    Dec 2008
    Location
    Latvia, Riga
    Posts
    28
    Thanks
    0
    Thanked 0 Times in 0 Posts
    HUGE thanks

  • #13
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,865
    Thanks
    160
    Thanked 2,224 Times in 2,211 Posts
    Quote Originally Posted by xfr33 View Post
    HUGE thanks
    You're welcome. btw, please provide as many relevant information that you can provide(hope you may have got some of them now) while asking for help here in future. This is mentioned in http://www.codingforums.com/postguide.htm too (under #3). Help us to help...
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • #14
    New Coder
    Join Date
    Dec 2008
    Location
    Latvia, Riga
    Posts
    28
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Ok, I will


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •