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

CSS

Daniel Scalia
Daniel Scalia
8,548 Points

FB share button

I have used CSS to transform/increase my facebook share button. It works and increases the scale of FB share button on my desktop. However, it doesn't increase the button at all when viewing on my mobile device. It works just fine on my logo for desktop and mobile device, so I am rather confused.

My CSS tansform scale for the logo and fb-share-button works perfectly on my desktop. On my mobile device, the logo works but not fb share button. Just weird. I might try removing fb-share font-size and width. Anyway, these CSS are for all media.. Any help is greatly appreciated.

.fb-share-button { height: inherit; font-size: 14px; width: 120px; background-color: orange; display: inline-block; padding 30px 15px 25px 15px; margin: 22px 22px 42px 65px; }

.fb-share-button { transform: scale(3.0); -ms-transform: scale(3.0); -webkit-transform: scale(3.0); -o-transform: scale(3.0); -moz-transform: scale(3.0); transform-origin: top left; -ms-transform-origin: top left; -webkit-transform-origin: top left; -moz-transform-origin: top left; -webkit-transform-origin: top left; }

.logo { transform: scale(2.0); -ms-transform: scale(2.0); -webkit-transform: scale(2.0); -o-transform: scale(2.0); -moz-transform: scale(2.0); transform-origin: top left; -ms-transform-origin: top left; -webkit-transform-origin: top left; -moz-transform-origin: top left; -webkit-transform-origin: top left; }

1 Answer

Hi there! Do you media queries set up? (I am assuming so, since your issue falls into mobile/desktop). And could you share your code as well?