Jump to content

Adding a Horizontal Line to separate featured products on the home page


gbola

Recommended Posts

Hello,

 

When using featured products on the home page, you have four products displayed per row. 

 

I would like to use an horizontal line to separate each row.

 

Pls how can i achieve this.

 

I have attached a screenshot for clarity.post-716123-0-49929700-1386301858_thumb.gif

Link to comment
Share on other sites

hello

 

you've got there several modules? or just one?

 

basically, add <hr> after heading (i don't know what heading type you use there, probably <h2>)

- it mean: modify module template files (.tpl) search for <h> tag and below add <hr> then you can stylize this line with css styles.

Link to comment
Share on other sites

Hi, gbola

 First  change css on this location:

http://www.valuplus.com.ng/modules/homefeatured/homefeatured.css

#featured-products_block_center li {
    height: 240px;
    margin-right: 10px;
    padding: 10px 0;
    width: 126px;
}
 

replace this  css

 

#featured-products_block_center li {
    margin-right: 10px;
    padding: 10px 0;
    width: 126px;
}

 Then  using jquery insert :

$( "<li><hr/></li>" ).insertAfter( ".last_item_of_line" );
Edited by Er.Ritesh (see edit history)
Link to comment
Share on other sites

you can achieve it with simple css modification:

 

use this code:

#featured-products_block_center li {
margin-right: 10px;
padding: 10px 0;
width: 126px;
height: 240px;
border-bottom: 1px solid #000;
margin: 0px;
padding: 3px;
padding-bottom: 20px;
padding-top: 10px;
}

in homefeatured.css 

 

use code above instead of:
 

#featured-products_block_center li {
margin-right: 10px;
padding: 10px 0;
width: 126px;
height: 240px;
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...