Tagged: x
-
AuthorPosts
-
January 12, 2017 at 3:14 am #1326928
Hi Support
I have managed to get a background on my footer content except I would like the background to take the full width of the screen, can you help please?The content placement and size etc is perfect. I would the background however to stretch accross to the left and right
Attachments:
You must be logged in to view attached files.January 12, 2017 at 4:18 am #1326992Hi there,
Thanks for writing in.
Might be possible through jQuery, but I can’t find any URL from your other threads. Would you mind providing it?
Thanks!
January 12, 2017 at 10:48 am #1327403This reply has been marked as private.January 12, 2017 at 1:54 pm #1327644Hi there,
Please try this code:
@media (min-width: 768px) { .x-colophon-content { width: 100vw; position: relative; margin-left: -50vw; height: 100px; margin-top: 100px; left: -30%; } }
Hope this helps.
January 13, 2017 at 12:53 am #1328386Thanks!!! That worked!
January 13, 2017 at 12:54 am #1328388We’re delighted to assist you with this.
Cheers!
January 13, 2017 at 1:01 am #1328395sorry one more thing. I noticed that there is a slight white area below the blue background now, possibly because of the height tag im using. This is my code:
.x-colophon.bottom .x-colophon-content{ background-color: rgb(0,98,150); height: 35px; line-height:3.3; color: #fff; } @media (min-width: 768px) { .x-colophon-content { width: 100vw; position: relative; margin-left: -50vw; height: 100px; margin-top: 100px; left: -30%; } }
Attachments:
You must be logged in to view attached files.January 13, 2017 at 1:16 am #1328403Hi There,
We cant make the footer content fullwidth unless we make the container full-width first.
Please replace your code with this:
.x-colophon.bottom {padding-bottom: 0;} .x-colophon.bottom .x-container.max { width: 100%; max-width: 100%; } .x-colophon.bottom .x-colophon-content { background-color: rgb(0,98,150); margin: 0; padding: 10px 0; color: #fff; }
Hope it helps, Cheers!
January 13, 2017 at 1:29 am #1328419Hi
I have replaced my code with the one above except it now looks like the pic attached. The background is much larger no and the width is goneAttachments:
You must be logged in to view attached files.January 13, 2017 at 1:36 am #1328425Hi There,
You did not remove this block?
@media (min-width: 768px) { .x-colophon-content { width: 100vw; position: relative; margin-left: -50vw; height: 100px; margin-top: 100px; left: -30%; } }
Please remove that as well.
Thanks.
January 13, 2017 at 1:55 am #1328435Oops sorry, thought you wanted me to replace only my part of the code.
Awesome that fixed it!January 13, 2017 at 1:56 am #1328438We’re delighted to assist you with this.
Cheers!
-
AuthorPosts