In my html page, I have an image which has been floated left. All texts are supposed to appear on the right and the bottom of the image, this is working as expected.
Only problem I am facing is with the blockquotes. Expected result : on the right of the image-> start quotation mark - quote - end quotation mark. Actual result: Start quotation mark is missing.
Please note that if I put all the text including blockquote in a div element and float it, this issue disappears. But I don't want to float this element.
It would be really helpful if someone can refer this code and suggest any solution: Anshul's html
.contain img {
width: 100%;
height: 100%;
padding-right: 25px;*/
}
.main-div{
float:left;
width: 40%
}
.thin-black-border {
border-color: #686464;
border-width: 05px;
border-style: solid;
}
.header{
font: 200 80px'Oleo Script', Helvetica, sans-serif;
color: #F4E6E6;
text-shadow: 4px 4px 0px rgba(0,0,0,0.1);
}
/* =Structure
-------------------------------------------------------------- */
p {
margin-bottom: 30px;
}
p:last-child {
margin-bottom: 0;
}
/* =Blockquote
-------------------------------------------------------------- */
blockquote {
position: relative;
marign: 0px;
padding: 30px 30px;
text-align: center;
font-size: 30px;
/*display:inline-block;*/
}
blockquote:before, blockquote:after {
position: absolute;
width: 60px;
height: 60px;
font-size: 120px;
line-height: 1;
}
blockquote:before {
top: 0;
left: 0;
content: "\201C";
}
blockquote:after {
top: 0;
right: 0;
content: "\201D";
}
<body>
<div style="width:100%; height: 100px;background-color:#3B3838" >
<h1 class="text-center header">Madhubala</h1>
</div>
<div class = "main-div contain"> <img src="https://nehamalude.files.wordpress.com/2011/02/madhubala.jpg"/> </div>
<!-- If I don't comment the code below, start quotation mark shows up -->
<!--<div style="float:left; width: 60%; "> -->
<p><blockquote><span title = "Theatre Arts - American magazine"> The Biggest Star in the World - and she's not in Beverly Hills!</span></blockquote></p>
<p>Text.....</p>
<!--</div> -->
</body>