Tagged: x
-
AuthorPosts
-
February 2, 2017 at 5:01 am #1355040
adriangregoryParticipantHi
I’ve got my social icons in the logo bar and need some help with positioning them. In medium screens like laptops they appear exactly right but on larger screens they appear too far in from the edge of the screen. Up to about 1250px screen width they are good but is there some CSS I could use to get them to be closer to the edge on screen widths above this?
Address of my test site is http://www.portsmouthmusicacademy.co.uk/cms
Many thanks
February 2, 2017 at 7:05 am #1355150
ChristianModeratorHey there,
I see you already have a media query
(min-width: 980px). Just add a min-width media query for 1250px and give your element a negative position right value.Thanks.
February 2, 2017 at 8:49 am #1355261
adriangregoryParticipantHi
Thank you for your quick reply. I’ve tried your suggestion by adding the following but it doesn’t seem to have any effect apart from messing up the social icons in mobile view.
@media only screen and ( min-width: 1350px ) {
.c-social {
position: absolute;
right: -50;
}Am I missing something?
February 2, 2017 at 11:07 am #1355443
RupokMemberHi there,
Thanks for writing back. It’s because the container max-width is 1200px. Let’s use this CSS :
@media only screen and ( min-width: 1350px ) { .x-logobar .x-container { position: relative; width: 95%; max-width: 100%; } .c-social { position: absolute; right: 0; } }Hope this helps.
Cheers!
February 2, 2017 at 4:04 pm #1355801
adriangregoryParticipantPerfect! Thank you as always for your brilliant support.
February 2, 2017 at 5:29 pm #1355883
NicoModeratorHappy to hear that.
Feel free to ask us again.
Thanks.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1355040 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
