Popular syntax

From rbachwiki
Revision as of 17:25, 28 November 2022 by Bacchas (talk | contribs) (Replaced content with "== Centering Text Vertically in DIV == HTML Markup <pre> <div class="main"> <div class="right"> <img src="https://picsum.photos/75/150?random=1" alt=""></div> <div class="left"> <p>some text</p></div> </div> </pre> '''CSS Markup''' <pre> .main{ display: flex; align-items: center; } </pre> ---- ==Back To Top- Home - Category==")
Jump to navigation Jump to search

Centering Text Vertically in DIV

HTML Markup

<div class="main">
<div class="right"> <img src="https://picsum.photos/75/150?random=1" alt=""></div>
<div class="left"> <p>some text</p></div>
</div>

CSS Markup

.main{
  display: flex;
  align-items: center;
}



Back To Top- Home - Category