Tagged: x
-
AuthorPosts
-
February 27, 2017 at 9:04 pm #1388191
educainventionsParticipantI’m trying to center the orange-2017 grid from here: http://www.educainventions.com/awards/
I have set the section text-align to center. I have added the following code to the style text entry:
margin: 0 auto.Unfortunately none of those ideas seem to work
Any idea?
February 28, 2017 at 4:46 am #1388541
ChristopherModeratorHi there,
Please add following code in Customize -> Custom -> Global CSS :
#esg-grid-8-1 .esg-overflowtrick { width: 26% !important; margin: 0 auto; }Hope that helps.
February 28, 2017 at 8:45 am #1388802
educainventionsParticipantIt does not work yet. I have moved the Essential Grid to the main page: educainventions.com
I have used the following code:
/* Essential Grid of awards: centers the grid */ #eg-8-post-id-0 .esg-overflowtrick { width: 26% !important; margin: 0 auto; }What could be wrong?
Thanks!
February 28, 2017 at 10:22 am #1388944
ThaiModeratorPlease try with this CSS:
#esg-grid-8-3 .esg-overflowtrick { width: 26% !important; margin: 0 auto; }Hope it helps 🙂
February 28, 2017 at 2:54 pm #1389246
educainventionsParticipantHi. It does not work well. The grid is centred, but the image becomes very small (see image attached).
Any other idea?
Thank you! 🙂
March 1, 2017 at 12:39 am #1389818
Paul RModeratorHi,
You can try this code instead.
#esg-grid-8-3, #esg-grid-8-3 ul { max-width:300px; height:225px; margin:0 auto; } #esg-grid-8-3 li { min-width:300px; min-height:225px; }Hope that helps.
March 1, 2017 at 2:38 am #1389904
educainventionsParticipantThank you! Unfortunately the code does not work either (see image attached).
Any other idea? Thanks for your persistence! 🙂
March 1, 2017 at 4:24 am #1390028
Paul RModeratorIn that case, please provide us your wordpress admin login in private reply.
Thanks
March 1, 2017 at 4:07 pm #1390987
educainventionsParticipantThis reply has been marked as private.March 2, 2017 at 12:26 am #1391455
RadModeratorHi there,
They aren’t going to work because essential grid uses absolute positioning calculated by javascript. And to center it, you have to add dimension to it, but adding dimension will only disable it’s responsiveness. But let’s try this, please add this.
@media ( min-width: 768px ) { #esg-grid-8-3-wrap { max-width: 300px; display: block; margin: 0 auto; } }Thanks!
March 2, 2017 at 4:21 am #1391638
educainventionsParticipantSame issue than before: the image becomes very small with that css (see image attached).
After your last comment, it came to my mind the idea of adding a raw element or maybe columns. Then controlling the width of those with css. Then including the shortcode within that column. The reason is that the Javascript seems to get the full width…
March 2, 2017 at 7:44 am #1391801
Paul RModeratorThis reply has been marked as private.March 2, 2017 at 8:06 am #1391829
educainventionsParticipantWOW. Thank you for going ahead! It works perfectly in some screen sizes, but it does not work well in others.
However I’m realising it’s probably too complex to center it because of the Javascript stuff.
For me, it’s OK to stop this issue here. I did not think it would be so hard!
Thank you for your effort!! 🙂
March 2, 2017 at 9:04 am #1391921
RahulModeratorGlad to hear it!
Let us know if we can help with anything else.
Thanks for choosing the X-theme.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1388191 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
