PeterBubresko Posted December 17, 2021 Share Posted December 17, 2021 I am trying to center a picture for my site logo. Can you see whats wrong? <div class="logo"><img src="images/logo/logo.png" alt="Logo"/></div> img.logo { align: center; height: 139px; width: 950px; } Quote Link to comment Share on other sites More sharing options...
kicken Posted December 17, 2021 Share Posted December 17, 2021 There is no align: property for CSS. For aligning inline elements like an image you want text-align: Quote Link to comment Share on other sites More sharing options...
Barand Posted December 17, 2021 Share Posted December 17, 2021 Also your css style specification is for images with class=logo. You don't have one, you have a div with class=logo. Quote Link to comment Share on other sites More sharing options...
PeterBubresko Posted December 17, 2021 Author Share Posted December 17, 2021 Ok guys. Thanks for the Information. I am new to this and learning while i'm living. I will try to correct it/me so i get it right. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.