Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Kelvin Atawura
Front End Web Development Techdegree Student 19,022 Pointscentered footer on multi-devices
hi guys need a bit of help with this site http://dclshop.com/> that l used bootstrap creating . l need the footer centered on multi-devices so tried using margin: 0 auto property but it don't seem to work. Also tried using the position property but then realised that i have to write media queries for the footer every time if thats the situation. is there any other way i can do this? any suggestion would be great? also in mobile devices 480px and below. i realised this massive margin on top of the footer and can't seem to figure it out with the dev tool. any idea where thats coming from please? Guil Hernandez Nick Pettit Joy Kesten
2 Answers
gopi p
9,259 PointsIf you are trying make social icons centered in small resolutions then the final should look like this
<div class="col-xs-12 col-sm-12 col-md-12 pull-left">
--Social code here--
</div>
and add float:none; right:0px to the div by using media queries let me know if that works.
Kelvin Atawura
Front End Web Development Techdegree Student 19,022 Pointsclear: both works just fine but end up leaving a big gap at the top of the footer div
Kelvin Atawura
Front End Web Development Techdegree Student 19,022 PointsKelvin Atawura
Front End Web Development Techdegree Student 19,022 Pointshi gopi p its not working :s