html - Text | Image | Text - 1 Horizontal Row - Bootstrap -


first of all, apologise fact appear asking same question has been answered several times on here already.

despite spending last 1-2 hours trying find answer, have caved in , looking give me, explain why wrong.

edit can't 2 div's of text, , image in 1 row using bootstrap.

i want text | pic | text.

here's html using bootstrap:

            <div class="container">         <div class="row-fluid">         <div class="mainleftinfo col-lg-3 col-md-3 col-sm-12 col-xs-12">             <h3 style="bold">the story</h3>             <p>text text text</p>         </div>         </div>         </div>         <div class="container">             <div class="row">                 <div class="picofme col-lg-3 col-md-3 col-sm-12 col-xs-12">                     <img src="pictures\jacksparrow.jpg" alt="a picture of me!">                 </div>                 <div class="mainrightinfo col-lg-3 col-md-3 col-sm-12 col-xs-12">                     <h3> interests, hobbies , addictions </h3>                         <ul>                             <li>gaming (xbox & pc)</li>                             <li>animals</li>                             <li>web development</li>                             <li>red bull</li>                             <li>chocolate</li>                         </ul>                     <h3> location </h3>                         <p> cranleigh, surrey</p>                     <h3> skillset (so far) </h3>                         <ul>                             <li>html</li>                             <li>css</li>                             <li>javascript</li>                             <li>responsive web design (bootstrap)</li>                             <li>ability liase , discuss technical concepts non-technical people</li>                         </ul>                 </div>         </div>         </div> 

heres css:

.picofme img {     border: 20px solid white;     border-radius: 100%;     width: 200px;     height: 200px;     margin: 0 auto; } 

you need 1 container on page, , move col-* divs the ` this:

  <div class="container">     <div class="row">       <div class="mainleftinfo col-md-4 col-sm-12 col-xs-12">         <!-- story -->       </div>       <div class="picofme col-md-4 col-sm-12 col-xs-12">         <img src="pictures\jacksparrow.jpg" alt="a picture of me!">       </div>       <div class="mainrightinfo col-md-4 col-sm-12 col-xs-12">         <!-- interests -->       </div>     </div>   </div> 

comment bootstraps grid system: col-*adds 12; want change col-md-3 col-md-4? also, it's not necessary define same columns twice. col-md-4 create same col-lg-4 on wider screens. bootstrap works "bottom > up" (or "smaller > large")

see plunkr https://plnkr.co/edit/8zyl7podui9bzficlg19?p=preview


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -