Hello.
I started studying front-end development recently (practically yesterday) and am having some issues with CSS. I am horrible with the positioning of things, and what makes me furious is that I can do some gambiarras to leave the elements / items well positioned on the full screen, but when I decrease it, the items start to leave the place, the boxes, the headers etc. It is all extremely shabby.
Below is my code and how the menu went.
obs: the "menu" class is inside the "containertopo" class.
*
{
margin: 0px;
padding: 0px;
list-style: none;
text-decoration: none;
}
.containertopo
{
position: relative;
width: 100%;
height: 79px;
background-color:deepskyblue;
opacity: 0.5;
}
.containertopo img
{
width: 99px;
float: left;
margin-left: 17%;
}
.menu
{
display: inline-block;
}
.menu ul
{
margin-left:4em;
}
.menu ul li
{
display: inline-block;
margin: 2em;
}