Jump to content

Colocar DIV no fundo da página

Go to solution Solved by pmg,

Recommended Posts

  • Solution

Usa o atribute "position: fixed", com o 'bottom' e o 'left' como gostares mais ...

<!DOCTYPE html>
<title>Bottom div</title>
<style type="text/css">
.normal { background-color: pink; color: black; width: 100%; }
.bottom { background-color: cyan; color: black; width: 100%;
         position: fixed; bottom: 20px; left: 0; }
<div class="normal">gkjlfhgkdfhgk hkh fkjhfkdj hksdjhf ksdjhfdsd</div>
<div class="bottom">kjhfdk fgdksjhkjdsh ksdjhkd jhksdjhk jhsfsdd</div>

PS: A tag do codigo nao corresponde a linguagem utilizada 😉

Edited by pmg
  • Vote 1

What have you tried?

Não respondo a dúvidas por PM

A minha bola de cristal está para compor; deve ficar pronta para a semana.

Torna os teus tópicos mais atractivos e legíveis usando a tag CODE para colorir o código!

Link to comment
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.