obsidiannovels
Member
Hi!
I am trying to center an image using css, but it doesn't seem to work in Chrome. Can someone please help me out?
Code below:
Also, I KNOW I should not use the style-tags and whatnot, BUT, the code is meant to be added in a user-page where very limited html is allowed. So please spare me any snarky remarks about this, thanks!
I am trying to center an image using css, but it doesn't seem to work in Chrome. Can someone please help me out?
Code below:
Code:
<ul style="text-align: justify;width: 1038px; list-style-type: none; margin: 0; padding: 0; overflow: hidden;border-radius: 25px;">
<li style="background: linear-gradient(purple, pink, orange);width: 208px;height: 200px;float: left;border: 2px solid; color: red;border-radius: 25px;margin: 0; padding: 0;">
<center><a href="https://www.instagram.com" target="_blank"><img src="https://i.imgur.com/c7yNApg.png" style="width:150px;height:150px;margin: 0; padding: 0;align:center;"></a></center>
</li>
</ul>