- This topic is empty.
-
AuthorPosts
-
May 12, 2014 at 4:46 pm #169942Historical Forums UserParticipant
This is the problem, I’m on Squarespace. I don’t have access to the site.css file. All I can do is add CSS into a “custom css” box.
Is there code I can add to the custom css box that will override what’s it the site.css file?
May 12, 2014 at 4:53 pm #169944shaneismeParticipantA hah… hmm… strange that squarespace has such odd code…
Do you think you could share what you have in your custom css box currently?
P.S. – you can use codepen or pastebin rather than pasting everything in the forum.
May 12, 2014 at 5:15 pm #169946Historical Forums UserParticipantHere is my custom css:
http://pastebin.com/5a7RcwaMMay 12, 2014 at 5:31 pm #169947shaneismeParticipantTry this:
Replace:
.sqs-layout { margin-top: -3em; }
With this:
.sqs-layout { height:0; }
Since it seems like that element isn’t being used in your layout for anything, rather than giving it a negative top margin to pull up the social icons we’re basically making it go away in a hacky way.
This will bring the social icons right up under the other links and underneath
#topNav.
Or at least it should unless there’s something else going on.#topNav
has a bottom margin of 20px, so if you want more space, you can add this to your custom css:#topNav { margin-bottom: 50px; }
… and adjust as necessary (you can use 2em or whatever).
May 15, 2014 at 6:22 am #170260Historical Forums UserParticipantThanks again…
So, I added:
#topNav {
margin-bottom: -21px;
}to bring the social icons closer to the last sidebar link. If I go any smaller (i.e. -50, which is where I would like it to be) then that makes it so the last link doesn’t work again. Is there any way I could get it to -50 and still keep the last link?
Thanks!
May 15, 2014 at 6:29 am #170261shaneismeParticipantIf you do that, you’re faced with the exact same problem as before.
The element
.sqs-layout
has a z-index higher than#topNav
and will overlap it given the chance (such as a negative margin).Re-read my instructions above, they don’t involve any negative margins. If they don’t work, let me know.
May 15, 2014 at 6:43 am #170264Historical Forums UserParticipantI added:
.sqs-layout {
height:0;
}and that got the links working. In your instructions you said it should also bring the social icons up under the last link, but it actually made them farther away. That is why I added:
#topNav {
margin-bottom: NNpx;
}and just played with NN until it brought the social icons up but didn’t effect the last link.
How can I move the social icons up without using the negative margin?
Thanks!
May 15, 2014 at 8:31 am #170279shaneismeParticipantOK – try this (maybe, there are some weird things going on)…
Delete the
.sqs-layout
bit, and replace it with this:#headerBlocks { display: none; }
It’s strange that
#footerBlocks-2
is as tall as it is, but I think this may solve it?May 15, 2014 at 8:44 am #170280Historical Forums UserParticipantOk, that brought it up to about the same place I was getting with the “-21” for topnav.
There is still a gap I’d like to close… is there any way to do that or does this have to do with the #footerBlocks-2 height that you mentioned?
Thanks!
May 15, 2014 at 11:02 am #170307shaneismeParticipantJust give
#topNav
amargin-bottom:0;
and that should solve it.May 15, 2014 at 11:26 am #170308Historical Forums UserParticipantThat did it… Thanks for all your help!
May 16, 2014 at 9:40 am #170397shaneismeParticipantMy pleasure :)
-
AuthorPosts
- The forum ‘CSS’ is closed to new topics and replies.