3
How to leave an image in the center of the screen I tried to put one text-align:center
and it didn’t work.
Follow my html code:
<header>
<img src="images/bg-header.png" id="bg-header">
<ul class="menu">
<li><a href="#">Home</a></li>
<li><a href="#">Sobre</a></li>
<li><a href="#">Cases</a></li>
<li><a href="#">Serviços</a></li>
<li><a href="#">Orçamento</a></li>
<li><a href="#">Contato</a></li>
</ul>
<img src="images/web-sky-logo.png" id="logo-header">
</header>
Obs.: The image I need to rename and the one with the id="logo-header"
and it has to be centered on Google Chrome, Safari and Mozila.
It is also a tip to use: header img#logo-header{ display: table; margin: 0 auto; }
– Wesley Redfield
so friend and so the answer I marked as correct worked until then I searched the tags with the link that was passed to me because I used the tag center and it was replaced by tex-Algin center and I was given the answer with this good tag worked I do not know much of html and I’m asking for help and what is working milestone as a response but if you thought it was wrong I would like to see your answer so for me this right and it’s like you don’t know much of html css however if you think this incorrect would like me to showif the right shape =3
– Felipe Henrique
Jefferson’s answer is not wrong, let alone Jeremiah’s. The point is that Jefferson’s suggestion ends up adding more HTML content, and it is possible to center the image only with CSS (so much so that Jeremiah’s response received more votes!). But no answer is wrong! Even my suggestion also works!
– Wesley Redfield