How to make my logo stand in the centre for the website ?

Asked  Jul 31, 11:55 am 60 Views Add Your Answer
Asked  Jul 31, 11:55 am

Am try to make a logo for my Website But I don't know how to make it stand in the centre

<div class="logo"> <a><img alt="BlackChecker Logo" src="https://iconifier.net/iconified/20220731185650_SpotifyKing/apple-touch-icon-180x180.png"></a> </div>

Css code

div{ margin-top: 5em; display: flex; flex-direction: column; }

Css
0 Dislikes
0 Comments

1 Answers

Added  Jul 31, 06:08 pm

simply add text-align: center; in your div css

html code
<div class="logo">
    <a><img alt="BlackChecker Logo" src="https://iconifier.net/iconified/20220731185650_SpotifyKing/apple-touch-icon-180x180.png"></a>
</div>

css code
div{
    margin-top: 5em;
    display: flex;
    flex-direction: column;
    text-align: center;
}

0 Likes 0 Dislikes
1 Comments
nikklauslaka30 Thx you I didn't know text-align: center; works for logo to
Added  Jul 31, 02:49 pm
×
Google login
SignUp with Email
X