Horizontal and vertical lines

Rate this topic: Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.
GK User
Mon May 11, 2015 9:52 pm
Reply with quote
Report this post
Hi,

May I have horizontal and vertical lines which will seperate the categories/products?

Thanks
User avatar
Junior Boarder

GK User
Tue May 12, 2015 11:16 am
Reply with quote
Report this post
Hello,

Could you please provide me with a URL to your product category page, either here or via PM (click the “Private Message” text underneath my avatar) so that I may analyze it?
User avatar
Moderator

GK User
Tue May 12, 2015 11:56 am
Reply with quote
Report this post
The url is http://www.pantikidis.gr/carpnew/eshop
In case that you are able to provide me with the category solution, I think that the products solution will be about the same.

thanks
User avatar
Junior Boarder

GK User
Wed May 13, 2015 7:59 am
Reply with quote
Report this post
Please add this code to override.css and make sure override is enabled in template settings.
Code: Select all
.category-view .row .category .spacer {
   text-align: center;
   border-bottom: 1px solid #000;
   border-right: 1px solid #000;
   padding:  20px 10px;
}

.category-view .row .category:nth-child(2n) .spacer {
   border-right: 0;
}

.category-view .row .category {
   padding: 0;
}
User avatar
Moderator

GK User
Thu Jun 18, 2015 8:48 am
Reply with quote
Report this post
I would like to pick up on this subject and make it work for our needs:

In category and product view, we mainly show 3 items per row, sometimes even 4 items per row.

Can this override be modified to show horizontal and vertical lines (in category and product view) as shown in this example?

Image
User avatar
Fresh Boarder

GK User
Thu Jun 18, 2015 11:51 am
Reply with quote
Report this post
Hi,
@[email protected], could you provide your website URL (here or via private message)? Then I'll try to help.
User avatar
Moderator

GK User
Thu Jun 18, 2015 11:02 pm
Reply with quote
Report this post
Try with this code:
Code: Select all
.category-view .row .category .spacer,
.browse-view .row .product .spacer {
   text-align: center;
   border-bottom: 1px solid #000;
   border-right: 1px solid #000;
   padding:  20px 10px;
}

.category-view .row .category:nth-child(3n) .spacer,
.browse-view .row .product:nth-child(3n) .spacer {
   border-right: 0;
}

.product.vertical-separator {
   padding:0!important;
}
User avatar
Moderator

GK User
Fri Jun 19, 2015 8:55 am
Reply with quote
Report this post
Hi Piotr,

thank you, almost perfect! :P

As you can see in the screenshot below, some of the horizontal lines are higher or lower, depending on the length of the product name.

Image

Is there a way to assign fixed heights to the product names and product thumbs? I guess this would solve this problem.

Bye...
Andy
User avatar
Fresh Boarder

GK User
Fri Jun 19, 2015 10:39 am
Reply with quote
Report this post
Change the previous fragment to:
Code: Select all
.category-view .row .category .spacer,
    .browse-view .row .product .spacer {
       text-align: center;
       border-bottom: 1px solid #000;
       border-right: 1px solid #000;
       padding:  20px 10px;
       height: 290px;
}

(height value added).
User avatar
Moderator

GK User
Fri Jun 19, 2015 12:14 pm
Reply with quote
Report this post
Hi Piotr,

based on your latest solution, I added a fixed height for "catProductTitle" to the override and now it's working.

Thank you very much...
Andy
User avatar
Fresh Boarder


cron