Mudsaf Posted June 6, 2012 Share Posted June 6, 2012 Okay im having this problem on my footer that it wont stick bottom of the div element. So im having code like above. So in style css i have tried everything in footer footer {bottom:0px; <-- Doesnt workmargin-bottom:0px; <-- Doesnt work}<div><footer>Copyright YEAR ...</footer></div> Link to comment Share on other sites More sharing options...
birbal Posted June 6, 2012 Share Posted June 6, 2012 bottom,top wont work with default positioning. you have to use relative,absolute or fixed position which is applicable to you. Link to comment Share on other sites More sharing options...
Mudsaf Posted June 6, 2012 Author Share Posted June 6, 2012 but if i use positioning it goes out of div? Link to comment Share on other sites More sharing options...
dsonesuk Posted June 6, 2012 Share Posted June 6, 2012 If you want it to stick to the bottom of div element place it outside at the bottom of the div element. <div><p> content here</p></div><footer>Copyright YEAR ...</footer> 1 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now