- This topic is empty.
-
AuthorPosts
-
March 3, 2014 at 11:57 am #164572
twosheastl
ParticipantHello!
I have very little knowledge with CSS. Just enough to make edits on existing code.
I just recently switched from WordPress to SqaureSpace and am having trouble with my logo size on mobile devices. I purposely uploaded my logo large for retina displays and sized it down with SquareSpace’s style editor to 55%.
On my computer it looks fine, but when I load my website on my iphone or Tablet, the logo is HUGE.
There is a custom CSS field where I can place my own code. Is anyone familiar with this issue? Does anyone know how to resolve it?
My URL: http://www.SheaStewart.com
Desired Logo Size: 263px x 55pxAlso, the logo should be centered on mobile devices.
Thanks!
Shea
March 3, 2014 at 12:30 pm #164579Atelierbram
ParticipantInstead of
height
you can domax-width
.logo-image .logo { line-height: 0; margin: 0; display: inline-block; /* height: 55px; */ max-width: 263px; }
For centering you can do
margin: 0 auto;
@media only screen and (max-width: 750px) { h1.logo { text-align: center; display: block; letter-spacing: 0; margin: 0 auto; } }
Don’t think you need the
!important
March 3, 2014 at 1:10 pm #164583twosheastl
ParticipantThat worked as far as keeping it the correct size, but it’s not centered on the mobile device. Its left aligned…
March 3, 2014 at 1:22 pm #164585Atelierbram
ParticipantYes, but you have this
!important
rule, that you can’t override … specificity battle.March 3, 2014 at 1:27 pm #164586twosheastl
ParticipantSo I’m kind of handcuffed by the SqaureSpace designers, huh?
I know others (SS Forums) have come up with their own fixes for other themes, though no one has figured out how to fix the Avenue theme, yet (that I’m aware of).
What if I uploaded at the desired size? Is there a way to upload a x2 logo via CSS for Mobile devices? I am able to upload “Custom Files” via the CSS editor. Maybe I could upload the x2 logo there? Or does that require some kind of Java Script?
Thanks for your help!
Shea
March 3, 2014 at 1:36 pm #164587Atelierbram
ParticipantSo I’m kind of handcuffed by the SqaureSpace designers, huh?
Don’t know, you could I guess override
!important
rules with other!important
rules:margin: 0 auto !important;
, but that’s when you are entering this specificity battle. Ugly. -
AuthorPosts
- The forum ‘CSS’ is closed to new topics and replies.