मैं एक बबल बनाने की कोशिश करता हूं जो उत्तरदायी होगा उपयोगकर्ता डिवाइस पर कोई फर्क नहीं पड़ता और इसके बाएं साइट पर एक त्रिकोण भी है।बाएं साइट पर त्रिकोण के साथ उत्तरदायी बबल कैसे बनाएं
कैसे यह होना चाहिए लगता है कि:
मैं क्या करने की कोशिश की:
HTML:
.responsive-bubble {
position: relative;
display: inline-block;
max-width: 80%;
min-width: 80%;
min-height: 1.5em;
padding: 20px;
background: #ebebeb;
border: #ebebeb solid 4px;
-webkit-border-radius: 20px;
-moz-border-radius: 20px;
border-radius: 0px;
border-style: solid;
float: right;
}
.responsive-bubble:before {
content: "";
position: absolute;
bottom: calc(89% - 3px);
left: calc(-4% - 3px);
border-style: solid;
border-width: 18px 18px 0;
border-color: #7F7F7F transparent;
display: block;
width: 0;
z-index: 0;
}
<div class="responsive-bubble">“And here comes some really long text which doesnt mean anything however it have to be long to provide a lot of characters and see how this buble works when long text is here and even when nearly no text is here and so on. I hope you know what I mean
So i am adding few additional words! So i am adding few additional words! So i am adding few additional words!”</div>
<div class="responsive-bubble">“Some shorter text come here to see how it looks when it's not so many text HERE! Some shorter text come here to see how it looks when it's not so many text HERE!”</div>
<div class="responsive-bubble">“Some shorter text come here to see how it looks when it's not so many text HERE!”</div>
क्या काम नहीं करता:
ऐसा लग रहा है बबल यह स्वयं उत्तरदायी correc है टली, लेकिन मुझे बाईं ओर त्रिकोण के साथ समस्या है, यह सही स्थिति पर नहीं है बुलबुले पर निर्भर करता है।
डेमो:
डेमो मैं सीमा बदल गया है और इतने पर के लिए बस उपलब्ध कराने के लिए और अधिक जानकारी के: https://jsfiddle.net/jkdurdjr/2/
यहां जो कोई मुझे बता सकते हैं मैं गलत क्या कर रहा है?
आप इसे देखना चाहते हैं - http: // stackoverflow।कॉम/प्रश्न/30011363/पारदर्शी-आकार-साथ-तीर-इन-अपर-कोने/30011454 # 30011454 – Harry
मैं उलझन में हूं, इस तरह -> ** https: //jsfiddle.net/jkdurdjr/8/** – adeneo