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 9 of 9
  1. #1
    New Coder
    Join Date
    Mar 2008
    Posts
    88
    Thanks
    12
    Thanked 0 Times in 0 Posts

    Is it possible???

    Is it possible with a design where the body is styled to always center to do accurate positioning on elements within the centered body?
    In particular I need to use z-index.
    I want my menu to overlap and be invisible until rolling over a particular place.
    Possible??

  • #2
    New to the CF scene
    Join Date
    May 2009
    Location
    Raleigh, NC, USA
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I did something to this effect once for a class I was taking. I believe to get your desired effect you could use relative positioning on the elements within the centered body. Possibly a combination of float and relative positioning for an overlapping menu. Good luck!

  • #3
    New Coder
    Join Date
    Mar 2008
    Posts
    88
    Thanks
    12
    Thanked 0 Times in 0 Posts
    Any tips on how as I am stumped.
    It seems the z-index doesn't work properly or more likely i do not understand it

  • #4
    New to the CF scene
    Join Date
    May 2009
    Location
    Raleigh, NC, USA
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by beedie View Post
    I want my menu to overlap and be invisible until rolling over a particular place.
    Possible??
    If you're trying to use z-index to make the div invisible until you roll over a particular place z-index is not designed to do that. In my opinion you would have to use javascript for that or at least that would be my first option. Think of z-index as the same thing as layers in Photoshop. A div with a z-index of -1 which is positioned over a div with a z-index of 0 will be layered behind the div with the z-index of 0 because its z-index is lower. Exactly the same way that layers work in Photoshop.

    The only way to change this behavior on the fly would be using Javascript.

    Also keep in mind that z-index only works on elements that have been positioned.

  • #5
    Master Coder
    Join Date
    Apr 2003
    Location
    in my house
    Posts
    5,211
    Thanks
    39
    Thanked 201 Times in 197 Posts
    do you mean that you want your nav menu to expand when you mouseover it and to hide, when you don't?

    if so, you can do it with CSS. check out 'son of suckerfish' or 'suckerfish menu'

    bazz
    "The day you stop learning is the day you become obsolete"! - my late Dad.

    Why do some people say "I don't know for sure"? If they don't know for sure then, they don't know!
    Useful MySQL resource
    Useful MySQL link

  • Users who have thanked bazz for this post:

    beedie (05-14-2009)

  • #6
    New Coder
    Join Date
    Mar 2008
    Posts
    88
    Thanks
    12
    Thanked 0 Times in 0 Posts
    bazz
    That is a useful menu but what I am trying to do is have a menu triggered by an area tag on a map.
    Basically my header image has the menu titles in it along the bottom. I want to get a sub menu to drop below each of theses titles.
    So instead how do i get the area to trigger the drop down?
    Is this going to be possible?
    image mapping:
    Code:
     <map  name="map1" id="map1">
      <area shape="rect" coords="760,75,900,110" alt="register" href="register.php" >
     
     </map>

  • #7
    Master Coder
    Join Date
    Apr 2003
    Location
    in my house
    Posts
    5,211
    Thanks
    39
    Thanked 201 Times in 197 Posts
    check out these two.

    http://www.htmldog.com/articles/suckerfish/bones/

    http://www.alistapart.com/articles/hybrid/

    If I understand you correctly, you want a horizontal nav bar from which several sections drop down, depending on which part of the bar you hover on? this type of menu is what you want. If you are placing it on top of an image/map then make the first level of links have perhaps the &nbsp; in it and give it background:none; in your css. then it should look like you are clicking the image but you are really clicking the menu.

    bazz
    "The day you stop learning is the day you become obsolete"! - my late Dad.

    Why do some people say "I don't know for sure"? If they don't know for sure then, they don't know!
    Useful MySQL resource
    Useful MySQL link

  • #8
    New Coder
    Join Date
    Mar 2008
    Posts
    88
    Thanks
    12
    Thanked 0 Times in 0 Posts
    So then i have to get the &nbsp; to somehow be over my image to give that impression. Can it be placed on top of the image?
    Would it be a lot simpler to cut the bottom off the header image into image files for each of the menu items?

  • #9
    Master Coder
    Join Date
    Apr 2003
    Location
    in my house
    Posts
    5,211
    Thanks
    39
    Thanked 201 Times in 197 Posts
    It may be easier. I have not done that yet. You may not need the &nbsp; It might be OK to set a height and width for each link but I can;t recall if that works in all browsers.

    too tired after another all nighter.

    bazz
    "The day you stop learning is the day you become obsolete"! - my late Dad.

    Why do some people say "I don't know for sure"? If they don't know for sure then, they don't know!
    Useful MySQL resource
    Useful MySQL link


  •  

    Posting Permissions

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