2
During the creation of the page, I decided to put a "title" which will have the name of the site and some tabs for the user to be forwarded; however, it always overwrites the first post:
Each post is like this:
Using PHP, CSS or HTML, how can I make only the first page of the site have a indentation so it is not overwritten by default?
[EDIT] My problem was solved, but I wanted to make it responsive. When I stopped the IP (the site) by my mobile phone, as I zoomed in, the navigation bar took up more space (that is, there was no way to read anything). How can I fix this?
Code:
html {
background: url(images/bg.png) no-repeat center center fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
}
.navigationbar
{
width: 100%;
height: 5em;
margin: 0 auto;
background-image: linear-gradient(to right, black, darkgrey);
position: fixed;
top: 0%;
}
.navigationbar img
{
margin: 0 auto;
max-height: 100%;
max-width: 100%
}
.navigationbar_spacer
{
opacity: 100%;
width: 100%;
height: 5em;
}
.postagem
{
padding: 1%;
border-radius: 12px;
width: 33%;
margin: auto auto;
background-color:#edebed;
margin-top: 1%;
}
.postagem div
{
border-radius: 12px;
background-color: #95bcf0;
width: 75%;
margin: auto auto;
}
.postagem h1
{
font-family: "arial";
font-size: 150%;
font-weight: lighter;
text-align: center;
background-color:
}
.postagem p
{
font-family: "book antiqua";
font-size: 100%;
text-align: justify;
text-indent: 2em;
}
I wonder that "png test" is with
position: absolute; top: 0
. Try putting on the body amargin-top: 75px
or the size of the "png test".– ptkato
@Patrick he’s with
margin: 0 auto; max-width: 100%; max-height: 100%
– user2692