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
Zachary Hutchins
1,567 PointsI am having trouble with my footer css regarding social media icons
i cant float my code to the right
my css is
#social-media-buttons {
float: right;
}
my html is
<footer>
<div id="social-media-buttons">
<a href="https://www.facebook.com/zach.hutchins.940"> <img src="logos/wg_dark_sm_1.png" alt="facebook"> </a>
<a href="https://twitter.com/Zach_Hutchins16"><img src="logos/wg_dark_sm_8.png" alt="twitter"></a>
<a href="https://plus.google.com/u/0/116116627692402748328/posts"><img src="logos/wg_dark_sm_3.png" alt="google+"></a>
</div>
</footer>
3 Answers
Colin Key
15,290 PointsSometimes the answer may be hiding in some of your other styling. Do you have any CSS applied for your footer element?
Ben Henson
15,235 PointsThis would float the entire div. Try something like:
#social-media-buttons a {float: right;}```
Zachary Hutchins
1,567 Pointsthank you for the suggestion! i tried it and it did not move. i am so stumped.
Ben Henson
15,235 PointsSorry, my suggestion should have read:
#social-media-buttons img {float: right;}
Zachary Hutchins
1,567 Pointsthank you Ben! I tried that too but it ended up being an issue with my css file. i really appreciate all the help.
Zachary Hutchins
1,567 PointsZachary Hutchins
1,567 PointsI found the error and it wasn't my code! there was an issue with the software i am using. I had to re-link the css file. So weird that all the other css was still working. Thank you for all the help!