Posts Tagged ‘css’

Center div with CSS

Simple example how to center a div with css.
Open your CSS file and write:
body { text-align: center; }
.centerdiv {
margin: 0 auto;
width: 200px;
text-align: left;
}
Now open your index or what ever you want to put your div and create it:
<div class=”centerdiv”>text</div>


Footer position bottom with css

After some hours i finally found this tutorial how to make a footer stick to bottom with css. I put it here if someone of you ever need.
http://ryanfait.com/resources/footer-stick-to-bottom-of-page/
Many thanks to ryanfait.com!