In general, how to change the CSS property of some tag depending on the user's access to the system?
Below is the image of the header (draft) before the user accesses the system:
Andbelowthesameheader,butwiththedivsofthemisalignedbuttons(disregardtheexaggeratedsizeoftheusername):
And below are the codes of the two:
<div class="header">
<h1 style="margin-left: 300px; margin-top: 0px;"><a href="index.php">TI_sem_dúvidas</a></h1>
<div class="btn_login" style="margin-left: 1000px; margin-top: 50px;">
<a href="#abrir-modal">Login</a>
</div>
Above was the header before login.
Below is the one after.
<div class="header">
<h1 style="margin-left: 300px; margin-top: 0px;"><a href="index.php">TI_sem_dúvidas</a></h1>
<div class="btn_login" style="margin-left: 800px; margin-top: 50px; background-color: steelblue; width: 300px;">
Nome de Usuário
</div>
<div class="btn_login" style="margin-left: 1000px; margin-top: 50px;">
<a href="#abrir-modal">Sair</a>
</div>
</div>
Below is the HTML and body css
html{
position: relative;
min-height: 100%;
background-color: lightblue;
}
body{
font-family: verdana;
margin: 0 0 400px; /* bottom = footer height */
}
Headers have the extension html.php
.