Tagged: x
-
AuthorPosts
-
January 25, 2017 at 1:59 am #1344359
jessie lParticipanti want my footer a different width
http://chiselblue.com/myalliancenew/
it is okay now but in mobile it’s not.
.x-colophon .x-column.x-md:first-child {
width: 37.6%;
overflow: hidden
}
.x-colophon .x-column.x-md:nth-child(2) {
width: 16.8%;
}
.x-colophon .x-column.x-md:nth-child(3) {
width: 16.8%;
}
.x-colophon .x-column.x-md:nth-child(4) {
width: 16.8%;
}those are the codes i get in this forum but it seems like not looking good in mobile
January 25, 2017 at 7:13 am #1344635
ThaiModeratorHi There,
Please change your code to this:
@media (min-width: 980px){ .x-colophon .x-column.x-md:first-child { width: 37.6%; overflow: hidden } .x-colophon .x-column.x-md:nth-child(2) { width: 16.8%; } .x-colophon .x-column.x-md:nth-child(3) { width: 16.8%; } .x-colophon .x-column.x-md:nth-child(4) { width: 16.8%; } }Hope it helps 🙂
January 25, 2017 at 8:03 pm #1345703
jessie lParticipantwow it works.
you know what i added this @media (max-width: 979px)but it’s not working. can you tell me why? 🙂
January 25, 2017 at 10:38 pm #1345820
RupokMemberHi there,
Thanks for writing back. Are you trying to add the code for mobile? It should work unless any other CSS overwriting this. Share your full code that you are using and let us know what you are trying to achieve.
Cheers!
January 26, 2017 at 8:36 pm #1347192
jessie lParticipantyour code is working i only have question about my previous code
@media (max-width: 979px){
.x-colophon .x-column.x-md:first-child {
width: 37.6%;
overflow: hidden
}
.x-colophon .x-column.x-md:nth-child(2) {
width: 16.8%;
}
.x-colophon .x-column.x-md:nth-child(3) {
width: 16.8%;
}
.x-colophon .x-column.x-md:nth-child(4) {
width: 16.8%;
}
}you notice in my code i used (max-width: 979) in your code (min-width: 980)
my question is is it really matter? the max and the min?
i konw this is out of my ticket question but i would like to know the difference if you don’t mind 🙂January 26, 2017 at 10:38 pm #1347272
FriechModeratorHi There,
This means to trigger the CSS code when the page is viewed on a screen width 979px and smaller.
@media (max-width: 979px) { /*CSS CODES HERE*/ }While this one is the opposite, it will be trigger when the page is viewed on screen width 980px and larger.
@media (min-width: 980px) { /*CSS CODES HERE*/ }Hope this shed some lights.
Cheers!
January 27, 2017 at 11:31 pm #1348583
jessie lParticipantahhh. okay many thanks. this is the big reason why we keep purchasing x theme, very nice support. we have 15 different licenses now 🙂 more power
January 28, 2017 at 4:26 am #1348715
ThaiModeratorYou’re most welcome 🙂
If you need anything else please let us know.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1344359 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
