+ 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?

1st Apr 2017, 4:18 PM
Beny Saberi
Beny Saberi - avatar
1 ответ
+ 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 ;)
1st Apr 2017, 4:27 PM
MisterMM23