How to overlap various content?

Wayward

Currently I'm trying to make it so that my content from .wrap-artist displays above the background image with a blur.

CSS

.wrap-artwork {
    left: 0;
    right: 0;
    z-index: 1;
    display: block;
    background-image: url('https://i1.sndcdn.com/artworks-000183268921-teibnr-t500x500.jpg');
    background-size: cover;
    background-position:center;
    height: 150px;
    margin-bottom: 20px;
    margin-top: -1px;
    margin-right: -16px;
    margin-left: -16px;
    -webkit-filter: blur(8px);
    -moz-filter: blur(8px);
    -o-filter: blur(8px);
    -ms-filter: blur(8px);
    filter: blur(8px);
}

.wrap-artist {
    position: relative;
    left: 0;
    right: 0;
    z-index: 9999;
    margin-left: 20px;
    margin-right: 20px;
}

.container {
   margin-top: 25px;
   max-width: 100%;
   margin-left: auto;
   margin-right: auto;
   background-color: #ffffff;
   border: 1px solid #ddd;
   width: 1080px;
   overflow: hidden;
   padding-bottom: 25px;
}

I've tried messing around with the positions but with the structure I'm using it doesn't seem to be working at all.

HTML

<div class="container">
    <div class="wrap-artwork"></div>
        <div class="wrap-artist">
        this is our image content
        </div>
    <div class="col-md-8">
        some other content here     
    </div>

    <div class="col-md-4">
        finally some sidebar content here
    </div>
</div>

Hopefully someone can help me, I used this question for guiding me but must have miss understood something in the first answer.

    .wrap-artwork {
		left: 0;
		right: 0;
		z-index: 1;
		display: block;
		background-image: url('https://i1.sndcdn.com/artworks-000183268921-teibnr-t500x500.jpg');
		background-size: cover;
		background-position:center;
		height: 150px;
		margin-bottom: 20px;
		margin-top: -1px;
		margin-right: -16px;
		margin-left: -16px;
		-webkit-filter: blur(8px);
		-moz-filter: blur(8px);
		-o-filter: blur(8px);
		-ms-filter: blur(8px);
		filter: blur(8px);
	}
	
    .wrap-artist {
		position: relative;
		left: 0;
		right: 0;
		z-index: 9999;
		margin-left: 20px;
		margin-right: 20px;
    }

    .container {
       margin-top: 25px;
       max-width: 100%;
       margin-left: auto;
       margin-right: auto;
       background-color: #ffffff;
       border: 1px solid #ddd;
       width: 1080px;
       overflow: hidden;
       padding-bottom: 25px;
    }
<div class="container">
		<div class="wrap-artwork"></div>
			<div class="wrap-artist">
			this is our image content
			</div>
		<div class="col-md-8">
			some other content here		
		</div>
		
		<div class="col-md-4">
			finally some sidebar content here
		</div>
</div>

Vincent G

You want something like that ? : See this fiddle

If so, you have to add relative position to the .container parent and replace relative position to absolute with top property on .wrap-artist class.

.wrap-artist {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    margin-left: 20px;
    margin-right: 20px;
}

.container {
   margin-top: 25px;
   max-width: 100%;
   margin-left: auto;
   margin-right: auto;
   background-color: #ffffff;
   border: 1px solid #ddd;
   width: 1080px;
   overflow: hidden;
   padding-bottom: 25px;
   position: relative;
}

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How to make Toolbar not overlap other content in Android?

From Dev

How to make Floating Action Button / Content overlap two divs in MaterializeCSS

From Dev

How to solve Navbar overlap with body content or other page in CSS

From Dev

Content section overlap footer

From Dev

How are various glyphs encoded inside a PDF content stream?

From Dev

How to replace some specific content (of various lines) of a file with the command sed?

From Dev

RelativeLayout background drawable overlap content

From Dev

TabContainer multiline tabs overlap with content

From Dev

How to make content next to a fixed-position menu not overlap in smaller resolutions

From Dev

How can we share the Icon image with dynamic content overlap on it through implicit intent?

From Dev

How to make alerts overlap?

From Dev

how to overlap UINavigationBar with animation?

From Dev

how to prevent the datalabels to overlap

From Dev

How to overlap navigation bar

From Dev

How to check if videos overlap

From Dev

How to overlap images in a JFrame

From Dev

Dompdf default page header content overlap

From Dev

prevent content to overlap margin of sticky header

From Dev

iOS 7 status bar supposed to overlap content?

From Dev

Force navbar to not overlap content on in-page navigation

From Dev

JX-Browserview overlap existing content of the system

From Dev

How do I make fixed nav-bar with jQuery slidetoggle method push content down rather than overlap it?

From Dev

How to achieve content overlap when expanding (collapsing) menu with navbar-static-top (similar to navbar-fixed-top behavior)

From Dev

Capitalize first letter of various tags content element

From Dev

How to find the time overlap in MSSQL

From Dev

How to prevent text to overlap the image?

From Dev

How to compute percentage of overlap in R

From Dev

How to overlap panels in Java Swing?

From Dev

How to overlap columns in Bootstrap 3?

Related Related

  1. 1

    How to make Toolbar not overlap other content in Android?

  2. 2

    How to make Floating Action Button / Content overlap two divs in MaterializeCSS

  3. 3

    How to solve Navbar overlap with body content or other page in CSS

  4. 4

    Content section overlap footer

  5. 5

    How are various glyphs encoded inside a PDF content stream?

  6. 6

    How to replace some specific content (of various lines) of a file with the command sed?

  7. 7

    RelativeLayout background drawable overlap content

  8. 8

    TabContainer multiline tabs overlap with content

  9. 9

    How to make content next to a fixed-position menu not overlap in smaller resolutions

  10. 10

    How can we share the Icon image with dynamic content overlap on it through implicit intent?

  11. 11

    How to make alerts overlap?

  12. 12

    how to overlap UINavigationBar with animation?

  13. 13

    how to prevent the datalabels to overlap

  14. 14

    How to overlap navigation bar

  15. 15

    How to check if videos overlap

  16. 16

    How to overlap images in a JFrame

  17. 17

    Dompdf default page header content overlap

  18. 18

    prevent content to overlap margin of sticky header

  19. 19

    iOS 7 status bar supposed to overlap content?

  20. 20

    Force navbar to not overlap content on in-page navigation

  21. 21

    JX-Browserview overlap existing content of the system

  22. 22

    How do I make fixed nav-bar with jQuery slidetoggle method push content down rather than overlap it?

  23. 23

    How to achieve content overlap when expanding (collapsing) menu with navbar-static-top (similar to navbar-fixed-top behavior)

  24. 24

    Capitalize first letter of various tags content element

  25. 25

    How to find the time overlap in MSSQL

  26. 26

    How to prevent text to overlap the image?

  27. 27

    How to compute percentage of overlap in R

  28. 28

    How to overlap panels in Java Swing?

  29. 29

    How to overlap columns in Bootstrap 3?

HotTag

Archive