Here is my CSS
.blockquote {
font-size: 1.4em;
margin: 30px auto 30px;
width: 90%;
font-family: Open Sans;
font-style: italic;
color: #D2B39B;
padding: 1.2em 30px 1.2em 75px !important;
border-left: 8px solid #D2B39B;
line-height: 1.4;
position: relative;
background: #f5f5f5;
}
.blockquote::before {
font-family: Arial;
content: "201C";
color: #D2B39B;
font-size: 4em;
position: absolute;
left: 10px;
top: -10px;
}
.blockquote::after {
content: '';
}
Here is a pictures of the result in the website I am building :
https://github.com/EstefanTT/public/blob/main/stackOverflow_blockQuote.png
2
Answers
use
z-index:1;
on the image since the default z-index value for page elements is 0, elements with z-index > 0 appear in-front of elements without a set z-index value.MDN doc : https://developer.mozilla.org/en-US/docs/Web/CSS/z-index
Just add
display: flex;
(flow-root
,grid
,table
,table-cell
) toblockquote
.Or add
overflow: hidden;
toblockquote
: