Setting the browser position in CSS

Asked

Viewed 38 times

0

I need the page sizing not to move the project menu when the page is resized, because when I change the dimension of the display it moves individually from the rest of the body.inserir a descrição da imagem aqui

See that the menu and the image move to the left of the project. I am learning HTML5/CSS3 with this tutorial, but I could not identify the error.

nav#menu {
	display: block;
}

nav#menu ul {
	list-style: none;
	text-transform: none;
	position: absolute;
	left: 900px;
	top: -20px;
	

1 answer

0

I changed the position from absolute to relative, both in the menu and in the image, and then positioned it the way I wanted it in top and left. Thanks for the help stackoverflowBR community

nav#menu {
	display: block;
}

nav#menu ul {
	list-style: none;
	text-transform: none;
	position: absolute;
	left: 900px;
	top: -20px;
	

Browser other questions tagged

You are not signed in. Login or sign up in order to post.