Hi,
Ich möchte ein product (displayed via shortcode) oder einen Produkt-Raster in einer Spalte mittig darstellen, es wird aber immer links oben eingestellt.
Für den code block habe ich https://kriesi.at/support/topic/how-to-centre-a-code-block-on-a-page/, ohne Erfolg.
Ebenso habe ich bei so gut wie allen in Frage kommenden divs den CSS code text-align: center !important; versucht, ebenfalls ohne Erfolg.
Habt Ihr eine Idee wie das zu machen ist?
Hey aboderc,
Thanks for the link to your page, I see that you have a square with a code block that seems to have woo product shortcode, but the problem is that the code block has a shortcode for a three column product
so the css for this gives it a width of 18%, this is why the product is to the top left, not because of the code block.
Try this css:
#top.home .products.columns-3 .product {
width: 100%;
margin: auto;
}
Your other two products have a two column woo code so they are to the left because their width is only 49.5%
for them try this css:
#top.home .shop_columns_2 .products .product {
width: 100%;
margin: auto;
}
Best regards,
Mike
Perfect, works like a charm.
Hi,
Glad we were able to help, if you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.
Best regards,
Mike