2015-10-07 11 views
7

पर किसी छवि के चारों ओर लपेटें पाठ मुझे अपने कॉलम पर मेरी छवि के चारों ओर पाठ को लपेटने के साथ एक समस्या आई। मेरे पास एक टेम्पलेट है कि यह एकाधिक पेज चला रहा है। कुछ छवियां इतनी लंबी नहीं हैं कि यह पूरे कॉलम पर सक्षम न हो ... मुझे एहसास है कि वे 2 अलग-अलग divs में हैं, लेकिन अगर किसी के पास इसका समाधान है तो कृपया मुझे बताएं।बूटस्ट्रैप 3

आप पढ़ सकते हैं और देखते हैं कि मुद्दा है, तो आप अपने डुप्लिकेट नहीं देखेंगे ....

यहाँ मेरी कोड

<div class="row" data-sf-element="Row"> 
    <div id="contentPlaceholder_C002_Col00" class="sf_colsIn col-md-6" data-sf-element="Column 1"> 
    <div> 
     <div> 
     <h2>Contrary to popular belief, Lorem Ipsum is not simply r</h2> 
     <p>Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old. Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical literature, discovered the undoubtable source. Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of "de Finibus Bonorum et Malorum" (The Extremes of Good and Evil) by Cicero, written in 45 BC. This book is a treatise on the theory of ethics, very popular during th</p> 
     <p>Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old. Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical literature, discovered the undoubtable source. Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of "de Finibus Bonorum et Malorum" (The Extremes of Good and Evil) by Cicero, written in 45 BC. This book is a treatise on the theory of ethics, very popular during th</p> 
     </div> 
    </div> 
    </div> 
    <div id="contentPlaceholder_C002_Col01" class="col-md-6" data-sf-element="Column 2"> <img src="/images/default-source/careers/careers_1.jpg?sfvrsn=2" title="careers_1" alt="careers_1"> </div> 
</div> 
+1

संभावित डुप्लिकेट (http://stackoverflow.com/questions/20676250/bootstrap-how-to-make-text-wrap- चारों ओर एक छवि-पर-छोटे-डिवाइस) –

+1

यह आपकी जानकारी के लिए डुप्लिकेट नहीं है। दूसरा सवाल अलग दिखता है। – jheul

उत्तर

10

जब 2 कॉलम पाठ होगा का उपयोग कर कैसा दिखता है कभी छवि के चारों ओर लपेटा नहीं है।

आपको छवि और टेक्स्ट को एक कॉलम में रखना चाहिए और इसे पूरा करना चाहिए। फिर पाठ और छवि को एक div में लपेटें और उन्हें बाईं ओर फ़्लोट करें।

<div class="col-md-12"> 
    <div class="pull-left"><img src="YourImage.png"/></div> 
    <div class="pull-left">Your text goes here......</div> 
</div> 

आप छवि पर कुछ मार्जिन आवश्यकता हो सकती है ताकि पाठ छवि

+0

हाँ उत्तर के लिए धन्यवाद। मैंने सोचा लेकिन सोचा कि इस मुद्दे को दूर करने का कोई तरीका हो सकता है। – jheul

2

इस के लिए काम करता है के लिए बंद करने के लिए छड़ी नहीं करता है: इस की पंक्ति में कुछ (कोड एक उदाहरण है और नहीं परीक्षण किया है) मुझे।

<div class="col-md-12"> 
<img src="img/image.jpg" class="pull-left"> 
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Iste molestiae aliquam optio mollitia, unde quas eaque voluptatem dignissimos eos maiores magni reprehenderit nisi, corrupti nemo hic id cum quasi officiis!</p> 
</div> 
-2

लेकिन यदि आप अपना टेक्स्ट और छवि पक्ष चाहते हैं, तो यह आपकी मदद करेगा।

<div class="row"> 
<p class="col-md-8">Text goes here....</p> 
<img class="img-circle col-md-4" src="image goes here..." alt="image text"> 
</div> 
1

मैं एक पाठ-लिपटे छवि, एक शीर्षक, उपशीर्षक पाठ और लिंक के साथ इस पृष्ठ पर 2 कॉलम, प्रत्येक की है। मैं टेक्स्ट को लपेटने के लिए टेक्स्ट कॉलम के भीतर छवि को अपने कॉलम में घोंसला करता हूं। मोबाइल पर प्रदर्शित होने पर यह कोड पूर्ण कॉलम चौड़ाई में परिवर्तित हो जाता है। मुझे यकीन है कि अगर आप चाहते थे तो आप खींच सकते हैं, लेकिन यह मेरे लिए काम करता है। http://www.lbch.org/_Employment.html पर कार्रवाई में कोड देखें।

<div class="container"> 
    <div class="row"> 
    <div class="col-xs-12">Page Head Title & Text</div> 
    <div class="col-xs-12 col-md-6"> 
     <div class="col-xs-12 col-md-5"> 
     <img src="image" class="img-responsive" alt=""/> <br> 
     </div> 
     <div class="text-left"> 
     <h4 class="text-center"> 
      <strong>Article Title</strong><br> 
      <small>Article sub-title</small> 
     </h4> 
     <p>Text</p> 
     <p><a href="link">link text</a><strong> </p> 
     </div> 
    </div> 
    <div class="col-xs-12 col-md-6"> 
     <div class="col-xs-12 col-md-5"> 
     <img src="image" class="img-responsive" alt=""/> <br> 
     </div> 
     <div class="text-left"> 
     <h4 class="text-center"> 
      <strong>Article Title</strong><br> 
      <small>Article sub-title</small> 
     </h4> 
     <p>Text</p> 
     <p><a href="link">link text</a><strong> </p> 
     </div> 
    </div> 
    </div> <!--row--> 
</div> <!--container--> 
[बूटस्ट्रैप? - कैसे छोटे उपकरणों पर एक छवि के आसपास पाठ रैप करने के लिए] की
+0

आप इस कोड को http://www.lbch.org/_Employment.html पर कार्रवाई में देख सकते हैं। मैं निश्चित रूप से महान नहीं हूं जो मैं करता हूं, लेकिन यह मेरे मालिक को खुश बनाता है और इससे मुझे खुश कर दिया जाता है! जबरदस्त हंसी –

संबंधित मुद्दे