If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 2 of 2
  1. #1
    Junior Member
    Join Date
    Apr 2014
    Member #

    Div overlap two other divs

    Hi there!

    Here's a picture of what I want to achieve.

    I have div #1 which is currently floated to the left, div#2 is set with a margin left. What I want is a third div to appear across each of the main divs, while the content in the other divs surrounds it. Meaning either the pictures push down the page, or text is wrapped around it.

    Any suggestions? I've always struggled with positioning


  3. #2
    Junior Member's Avatar
    Join Date
    May 2014
    Member #
    You can set div#3 to position:absolute (or position:fixed) and give it a higher z-index than the other two.

    Besides its also possible to inser div#3 into div#1 and push it with "position:relative; right: XXX px; z-index:2;" to it's desired position.

    You may have a look on this for further explantions:
    Last edited by; May 27th, 2014 at 03:04 AM.

Remove Ads

Posting Permissions

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

Tags for this Thread

All times are GMT -6. The time now is 04:51 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: