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 2 of 2
  1. #1
    New Coder
    Join Date
    Dec 2012
    Posts
    12
    Thanks
    5
    Thanked 0 Times in 0 Posts

    Question Placing a nav bar over-in between 2 divs

    Hello,

    Maybe any1 knows how can I achieve a result with a navigation bar as it is displayed in this photoshop rendered image?




    I cannot place it there in CSS because it keeps pushing out div 1 from div 2 :/

    Help me please

    Grateful,

    Ren

  • #2
    Senior Coder
    Join Date
    Feb 2009
    Location
    Ilkley, West Yorkshire, UK
    Posts
    2,956
    Thanks
    9
    Thanked 727 Times in 721 Posts
    A few possibilities, but you could use absolute positioning - in your html put div 3 within div 1. On div 1, set position:relative, on div 3, set position:absolute. The add top and left settings to the css for div 3 to achieve your desired positioning.

    That should do it, but dependent upon your html and css elsewhere you may need to set the z-index as well to ensure div 3 appears on top of div 2.

    If this doesn't work, then post a link to your page, or failing that, your entire html and css.
    Use the W3C HTML Validator and CSS Validator to check your code and Firebug to see what css is applied to an element
    Read Steve Krug's book Don't Make Me Think - essential reading on web usability
    I don't recommend much, but I do recommend Clook for UK web hosting


  •  

    Posting Permissions

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