Tagged: blog posts, grid layout, responsive
-
AuthorPosts
-
July 17, 2014 at 2:03 pm #292462
Hello,
I like very much your theme, but I have a display problem on screen and devices (max-width: 767px) caused by the element “Blog Posts” with setting “Grid Layout – 5 columns.”
The first blog article has a width of 100% while the others have 48% width.
I tried with this CSS@media only screen and (max-width: 767px) { .responsive #top #wrap_all .avia-content-slider-odd .slide-entry.slide-parity-even{margin-left:4%; clear:none;} .responsive #top #wrap_all .avia-content-slider-odd .slide-entry.first{width:48%;} }
but it creates confusion with the alignment and margins of the other articles.
The problem occurs with 3 column layout also: for each group of 3 articles, the first one has 100% the two other 48%.
Can you help me please? Thank you in advance
Marcella- This topic was modified 10 years, 4 months ago by marcella-metae.
July 17, 2014 at 11:45 pm #292707Hi Marcella,
Can you post the link to your website please?
Regards,
JosueJuly 18, 2014 at 9:21 am #292877This reply has been marked as private.July 23, 2014 at 10:40 pm #295163Hi!
What change would you like to happen? The default layout is the make the first one in the series bigger on mobile devices so its just a matter of changing it how you want.
Cheers!
DevinJuly 24, 2014 at 8:41 am #295315Hello Devin, thanks for your attention!
I would simply like that every item had the same width (48%): it doesn’t look good and mainly does not make sense that – in the case of three column layout – only the first, third, sixth, ninth article, etc. are larger.
Or – in the case of five column layout – the first, fifth, tenth article, etc..
So can you please show me how to change the css to make posts display uniform and in the same way?
Thanks & regards! :-)
MarcellaJuly 28, 2014 at 9:57 am #296609This is the best I can come up with but it won’t have great cross browser compatibility or IE8 compatibility:
@media only screen and (max-width: 767px) { .responsive #top #wrap_all .slide-entry { width: 48% !important; margin-left: 0 !important; clear: none !important; } .responsive #top #wrap_all .slide-entry:nth-child(even) { margin-left: 4% !important; } .responsive #top #wrap_all .slide-entry:nth-child(odd) { margin-left: 0% !important; clear: left !important; } }
Otherwise your best route would be a freelance web developer who can customize the output to be fully built into the element.
August 1, 2014 at 3:10 pm #298768Hi Devin,
thanks for you help but there is still a gap after the fifth element and the first of the next group (slide-entry-wrap). I think I will use only even columns grids….
Kind regards
MarcellaAugust 2, 2014 at 3:08 am #299054Hey!
Did you remove the blog grid element? There’s an issue on your website using Chrome where the header shadow is being duplicated when you scroll the page. Please add this on Quick CSS:
#header_main_alternate, #header { -webkit-transform: translateZ(0); }
Best regards,
IsmaelSeptember 1, 2014 at 9:13 am #311700Hi Ismael,
thank you very much for the header shadow code! :-)
No, I didn’t remove the blog grid element, I use it with 4 columns instead of 5! But if you want to perform any test I will temporary switch on 5 columns or create a new page for your testing. Just let me know.
Thanks, regards.
MarcellaSeptember 1, 2014 at 1:22 pm #311794Hi Marcella!
Please do so and post the link to your page here or if you do not mind, please create a temporary admin login and post it here privately so we can look into it
Best regards,
YigitSeptember 1, 2014 at 2:15 pm #311820This reply has been marked as private.September 4, 2014 at 7:42 am #313205Hi Marcella!
I’d suggest using an even number of columns, like 4 or 6.
Regards,
JosueSeptember 4, 2014 at 8:50 am #313214Hi Josue,
as you can read on my previous post, that’s what I’ve done. But using even columns is not resolving the problem: is avoiding the problem! ;-)
In any case, there is still a space between each group of 4 (or 6) elements.
Regards,
MarcellaSeptember 5, 2014 at 12:14 pm #313965Hey!
Please add following code to Quick CSS and change page id
@media only screen and (max-width: 768px) { .page-id-1573 article { width: 71%!important; margin: 0!important; }}
You can right click on Chrome or Firefox to inspect elements to find page ID’s http://i.imgur.com/HyPTCRg.jpg
Best regards,
Yigit -
AuthorPosts
- You must be logged in to reply to this topic.