put a area for copyRight | Sololearn: Learn to code for FREE!

+1

put a area for copyRight

I want to push a <div> to the bottom of page so a create a class for it< but how i should to add a atribiute for it to float it to bottom?

4/1/2017 4:18:05 PM

Beny Saberi

1 Answer

New Answer

+3

Use CSS: .classofdiv{ position: relative; top : 100% - heightofdiv; } Example: .footer{ position: relative; height: 10%; top: 90% } So you gotta use the "top "property in your CSS file or in your style tag. Or Use the <footer> tag which automatically floats to the bottom of the page, as long as there isn't any other element at this position. Hope this answer was helpful ;)