H1 still pushing sidebar down
-
Hi, i recently started my first website and i need help with my sidebar navigation.
How can i set “workspace” of text and other stuff few pixels from my sidenav?
My css:
body {
font-family: “Lato”, sans-serif;
background-repeat: no-repeat;
background-size: cover;
}main {
margin-left: 20rem;}
.last-child {
margin-top: auto;
}.icon-bar {
width: 68px;
height: 100vh;
background-color: #000000;
display: flex;
flex-direction: column;
position: static !important;
top: 0;
float: left;
left: 0;
}.icon-bar a {
display: block;
text-align: center;
padding: 16px;
transition: all 0.3s ease;
color: white;
font-size: 29px;
}.icon-bar a:hover {
background-color: #101010;
}.active {
background-color: #4c00ff;
font-size: 30px;
}Site i am working on:
okleague.skHope someone understand my poor english :D
-
-
-
-
I actually have a site on my own hosting. WordPress not installed.
So I will try my luck elsewhere.
-
- The topic ‘H1 still pushing sidebar down’ is closed to new replies.