Forums / Templates, Stylesheets, Page Layout / Border around product title, description, price and buy now button

Border around product title, description, price and buy now button

Views: 1,469

Results 1 to 9 of 9
17 Jan 2014, 3:57 AM
#1
advisers_australia avatar

advisers_australia

New Zenner

Join Date:
Jan 2014
Location:
Australia
Posts:
39
Plugin Contributions:
0

Border around product title, description, price and buy now button

I would like to put a border around the following information on the products page: -product title, description, price and buy now button

How do I do this?

Thanks

Justin

17 Jan 2014, 2:46 PM
#2
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,119
Plugin Contributions:
56

Re: Border around product title, description, price and buy now button

A link to your site would help others help you ...

17 Jan 2014, 3:53 PM
#3
twitchtoo avatar

twitchtoo

Totally Zenned

Join Date:
Apr 2007
Location:
Ontario, Canada
Posts:
1,733
Plugin Contributions:
14

Re: Border around product title, description, price and buy now button

Advisers Australia:

I would like to put a border around the following information on the products page: -product title, description, price and buy now button

How do I do this?

Thanks

Justin

Depending on the template you are using, adding a border to the various CSS classes should do the trick.

Here are some ways of sniffing out the classes being used:
FireFox-> Open your website-> go to the product page you'd like to change-> right click the screen and select 'Inspect Element'

  • Hover your mouse over the areas you'd like to see HTML/CSS code and click when you've found the element you'd like to change.

Related ZenCart files - again depending on your template:

  • includes/templates/YOUR_TEMPLATE/CSS/stylesheet.css
  • includes/templates/YOUR_TEMPLATE/templates/tpl_product_info_display.php

Twitch.
https://www.twitchtoo.com Do you work for free? Please donate.
June 7.2026 - NOW AVAILABLE - Twitch Base8 - Obsidian

17 Jan 2014, 9:18 PM
#4
advisers_australia avatar

advisers_australia

New Zenner

Join Date:
Jan 2014
Location:
Australia
Posts:
39
Plugin Contributions:
0

Re: Border around product title, description, price and buy now button

Hi

Thank you for your suggestions. I have provided a link to the page: -

I would like to put a border around each product.

Justin

17 Jan 2014, 9:52 PM
#5
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Border around product title, description, price and buy now button

Your link didn't make it.

17 Jan 2014, 10:20 PM
#7
picaflor_azul avatar

picaflor_azul

Totally Zenned

Join Date:
Jul 2009
Location:
picaflor-azul.com
Posts:
6,940
Plugin Contributions:
28

Re: Border around product title, description, price and buy now button

Advisers Australia:

Hi

Apologies here is the link http://www.advisers-australia.com/zencart/zen-cart-v1.5.1-full-fileset-09182012/index.php?main_page=index&cPath=4_10

Justin

You can use the class .centerBoxContentsProducts

Thanks,

Anne

18 Jan 2014, 1:06 PM
#8
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,119
Plugin Contributions:
56

Re: Border around product title, description, price and buy now button

Advisers Australia:

I would like to put a border around the following information on the products page: -product title, description, price and buy now button

How do I do this?

Thanks

Justin
You'd need to add the following to your stylesheet.css file

#indexBody .itemTitle { border: 1px solid black; } /* for the product title */
#indexBody . listingDescription { border: 1px solid black; } /* for the description */
#indexBody .centerBoxContentsProducts > a { border: 1px solid black; } /* for the buy now button */

Unfortunately, the item's price is simply text so there's no CSS selector to specify (without making PHP code modifications) to draw a box around that element.

That said, wouldn't all these borders just "over-stimulate" that page's display?

19 Jan 2014, 10:29 AM
#9
advisers_australia avatar

advisers_australia

New Zenner

Join Date:
Jan 2014
Location:
Australia
Posts:
39
Plugin Contributions:
0

Re: Border around product title, description, price and buy now button

Hi

Thank you for your suggestions. I found the following code in the archives - it worked

/* Add borders to the cells of columnar display in center column */
.centerBoxContentsNew, .centerBoxContentsFeatured, .centerBoxContentsSpecials, .specialsListBoxContents, .categoryListBoxContents, .centerBoxContentsProducts {
background: #FFF6ED;
padding-bottom: 0.5em;
padding-top: 0.5em;
border-top: 0.1em solid #252525;
border-bottom: 0.1em solid #252525;
border-left: 0.1em solid #252525;
border-right: 0.1em solid #252525;
margin-right: -0.06em;
margin-left: -0.06em;

Justin