Jump to content
carcleo

Bloco entrando na div

Recommended Posts

carcleo

Então, tenho o css

html, body {
	margin: 0;
	padding: 0;			
}

#banner {
	position: relative;
	width: 1536px;
	height: 610px;
	background-image: url("img/home1.jpg");
	background-attachment: fixed;
	background-repeat: no-repeat;
	background-position: center top;
    z-index: -1;
}

#banner:before {
	content: '';
	position: absolute;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	background-image: linear-gradient(#004425, #072f1c 130%);
	opacity: .6;
}

e, o HTML

<div id=banner></dv>

teste <br />
teste <br />
teste <br />
teste <br />
teste <br />
teste <br />
teste <br />
teste <br />
teste <br />
teste <br />
teste <br />
teste <br />
teste <br />
teste <br />

Funciona corretamente. No entanto, o bloco de 

teste <br />

Não desce, fica no fundo da div.banner.

Porque?

Edited by carcleo

Share this post


Link to post
Share on other sites
carcleo

Peço ao administrador que exclua essa pergunta por mim fazendo favor.

Foi pura falta de atenção da minha parte!

Eu NÃO fechei a DIV corretamente. 

Eu fiz </dv> ao invés de </div>

Obrigado!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.