| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
how to change # of tiles per row | ||||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
how to change # of tiles per row
hello, we are just starting to learn and experiment some with the software...
i have been able to do alot in custom css, but one thing i want to know how to do is changing the display for different sized screens... for example, when experimenting with a top/bottom template style....smaller displays will automatically change 1,2,3 products per row depending for the screen size....perfect, they even change what size the tiles are...but when you go up to larger sizes display screens, it remains 4 wide and same sizing...this is where i wish it to be 5 product tiles wide...changing the size of the product tiles or background containers fails to accomplish this, they only crowd left leaving a blank space on the right... i can do well with custom css but the template edit parts are still some confusing to me... this seems preety basic tho i hoped someone can just help for this one?
__________________
business 5.3.1.6 nginx/arch_linux/php 5.6-7/mariaDB10 |
|||||||
#2
|
|||||||||
|
|||||||||
Re: how to change # of tiles per row
Iggy,
This should be simple enough, just a media query with a different percentage width. If you provide a link to the site we can inspect your CSS and give advice.
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey XcartGuru X-cart Tutorials | X-cart 5 Tutorials Check out the responsive template for X-cart. |
|||||||||
#3
|
|||||||
|
|||||||
Re: how to change # of tiles per row
well, i tried that a bit ya...i assume thats a part of the solution, but the problem i had was that it simply made the product tiles bigger or smaller and didnt change the grid layout for the largest size screens...so far its pretty stock installation, there are a couple different sites but i didnt learn about the test site policy/procedure yet either....was just going to ask of that too
one is a free lic, one is business lic btw... edit: oh if it makes a better picture it has categories hidden, its as if only featured products headline the page on a top bottom template style
__________________
business 5.3.1.6 nginx/arch_linux/php 5.6-7/mariaDB10 |
|||||||
#4
|
|||||||||
|
|||||||||
Re: how to change # of tiles per row
See not everybody is rocking your setup, that is never the case. What template are you using? What page layout? 1 column? 3 columns?
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey XcartGuru X-cart Tutorials | X-cart 5 Tutorials Check out the responsive template for X-cart. |
|||||||||
#5
|
|||||||||
|
|||||||||
Re: how to change # of tiles per row
So! Here we go:
The nth child of the list is being cleared. Consider this CSS: Code:
See the ".no-sidebars" in the class definition? That is crucial to work on single column layouts. -Mike
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey XcartGuru X-cart Tutorials | X-cart 5 Tutorials Check out the responsive template for X-cart. |
|||||||||
#7
|
|||||||
|
|||||||
Re: how to change # of tiles per row
oh...hmm...i maybe spoke to soon...i change one little detail, like length of a product title, and now the grid spacing is off, and worse, the hover function i added juggles the row below it around which is no good...
heres a test link u can see what im trying to do... http://www.smokebomb.online/xcart/ see its 5 tiles wide is nice, and a hover effect to make them bigger...but when i hover the long product tile see what it does to the second row... so 2 things i guess... id like the grid to be more even vertically, and also the second row to remain in a fixed position...
__________________
business 5.3.1.6 nginx/arch_linux/php 5.6-7/mariaDB10 |
|||||||
#8
|
|||||||||
|
|||||||||
Re: how to change # of tiles per row
This will take more than just a simple css change with width. The reason you have this effect now is the block heights are different. You have to either make them all the same or close every row before next one starts. But if you do this you cannot have 5 in a row as this will fore 2 on 3 products on some screen sizes.
Easiest to make height on all product blocks the same but them you will face some of them having too much empty space
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
#9
|
|||||||
|
|||||||
Re: how to change # of tiles per row
yes i was wondering to try this some...but wasnt sure the best way...generally our titles wont be longer than 3-4 rows on the product tiles...perhaps the titles could be vertically centered so shorter ones look less wierd?
thank you all for the helps
__________________
business 5.3.1.6 nginx/arch_linux/php 5.6-7/mariaDB10 |
|||||||
#10
|
|||||||
|
|||||||
Re: how to change # of tiles per row
ok, so i notice someone else also bring this up and i try the solution offered in that topic
Quote:
tiles even, halfway there! the other issue is still persisting...it is because i have increased images sizes from default 160 to 300, to allow a larger hover zoom effect.....which still makes the second row juggle around...anyone know how i can lock those down? i updated the code on the link to the test site so you can easily verify...
__________________
business 5.3.1.6 nginx/arch_linux/php 5.6-7/mariaDB10 |
|||||||
|
|||
X-Cart forums © 2001-2020
|