align image to the left and text to the right in storefront custom page NO edit
-
Hi, and thanks in advance.NOTE: NSFW site, maybe some hot images from eBooks covers, no nude but adult romance covers.
I have wordpress+woocommerce+storefront+bookshop child theme.
I have this page , Just in case NSFW site,I created a shortcode with a PHP snippet that calls the excerpt, so far, so good.
BUT I need to style the page, getting the image to the left and the text, star rating, price, title to the right.
I found some workaroung playing with the CSS classes I found inspecting the page, BUT I need to get the style better:/*Float image to the left*/ ul.products li.product img { float: left; } /*Add hover to image*/ a:hover img { border:solid #eeccdd 5px; } /*Change Title color and float text to right*/ ul.products li.product .woocommerce-loop-product__title, ul.products li.product h2, ul.products li.product h3{ color: #cc5588; float:right; margin-bottom: 3em; }
I need to enhance this result like this:
– Get the title Up and centered plus aligned to the container (within, not above or below, now it seems to be lower than the image container) I think I can do that (put the title at the top) changing hook priorities, but I guess it should be some CSS trick to do that.
– Get some space between image and text (now they are together)Thanks in advance!
- This topic was modified 5 years, 8 months ago by .
- This topic was modified 5 years, 8 months ago by .
The page I need help with: [log in to see the link]
- The topic ‘align image to the left and text to the right in storefront custom page NO edit’ is closed to new replies.