Jump to content

Vertical images center


Recommended Posts

Hello,

I'm using w3-third class to show images. Can I center images vertically, since they have not the same height ?

Tried many options but I could not find the right one.

Thanks

 

 

<body>

<div class="w3-card-4 w3-margin" style="width:50%">
  <div class="w3-display-container w3-text-white">
    <img src="largeimg" alt="Lights" style="width:100%">
  </div>

      
  <div class="w3-row w3-padding ">

    <div class="w3-third w3-center">
      <h3><br></h3>
      <img src="img1" style="width:90%">
    </div>

    <div class="w3-third w3-center">
      <h3><br></h3>
      <img src="img2" style="width:90%">
    </div>

    <div class="w3-third w3-center">
      <h3><br></h3>
      <img src="img3" style="width:90%">
    </div>

  </div>
</div>

</body>

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...