mercredi 24 janvier 2018

small circled images/icons around HTML text

Suppose I want to draw a small icon/image left to my HTML code in the webpage as shown in the below wireframe. How can I make this happen? I tried to do this myself but it's not working and rather showing the whole picture above it, whereas I want to display the image in the same row as my h1 heading. Following is the code segment:

 div class="row">
  <div class="col-sm-4">
    <div class="row">
      <div class="col-12">
    <img class="img-circle" src="download.jpg">
    <h1> A heading </h1>
    </div>
    </div>
    <hr> <br>
    <p> "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum." </p>
  </div>

Following is the wireframe of above code: A wireframe

And following is the output: But Stack overflow won't let me show :(




Aucun commentaire:

Enregistrer un commentaire