Post by Digital Sushi » Mon Apr 11, 2011 8:18 am

I'm using OpenCart 1.4.9.4 and a slightly modified version of the base template.

What I'd like to do is put boxes around all of my products and then a hover on the box. Example: http://www.kurnscandies.com/index.php?r ... ry&path=20

How do I do this?

Active Member

Posts

Joined
Mon Oct 18, 2010 10:23 pm
Location - South Africa

Post by Avvici » Mon Apr 11, 2011 9:56 am

If you look at his source code you will see that in his CSS he is styling the TABLE CLASS like this:


.list td a img {
/* Border around product images */
/* -moz-border-radius:6px;
-webkit-border-radius:6px;
border-radius:6px;
padding:5px 1px; */
background:#fff;
border:1px solid #ccc;
}
.list td a:hover img {
/* Border around product images */
border:1px solid #663300;
}

Pay special attention to a:hover. That creates the border that you see on Mouse Over.

In your Open Cart Catolog.tpl you will see the <table class="list">

Open up your man CSS file and add it.

User avatar
Expert Member

Posts

Joined
Tue Apr 05, 2011 12:09 pm
Location - Asheville, NC

Post by Digital Sushi » Mon Apr 11, 2011 7:13 pm

Thanks for the reply!

I'm incredibly bad at programming, so you've lost me.

Active Member

Posts

Joined
Mon Oct 18, 2010 10:23 pm
Location - South Africa

Post by Avvici » Mon Apr 11, 2011 10:19 pm

Go to catalog/view/theme/default/stylesheet/stylesheet.css

Search for the following code:

Code: Select all

.list td {
	text-align: center;
	vertical-align: top;
	padding-bottom: 10px;
}
After that code insert this code and you will have a replica of what you showed us on that website:

Code: Select all

.list td a img {
/* Border around product images */
/* -moz-border-radius:6px;
-webkit-border-radius:6px;
border-radius:6px;
padding:5px 1px; */
background:#fff;
border:1px solid #ccc;
}
.list td a:hover img {
/* Border around product images */
border:1px solid #663300;
}

User avatar
Expert Member

Posts

Joined
Tue Apr 05, 2011 12:09 pm
Location - Asheville, NC

Post by chrisk » Wed Apr 13, 2011 2:54 am

I love this thread :)

Anyone know how to remove the border around the product image? I can't find it anywhere.

http://www.kurnscandies.com/index.php?r ... duct_id=53

Newbie

Posts

Joined
Sun Apr 10, 2011 4:32 am

Post by chrisk » Wed Apr 13, 2011 3:03 am

Found it!

#image {
border:1px solid #FF0000;
}

Newbie

Posts

Joined
Sun Apr 10, 2011 4:32 am

Post by bobwhite » Fri Jul 20, 2012 9:33 am

Hi,
Can anybody tell me where to find:

Code: Select all

.list td {
text-align: center;
   vertical-align: top;
   padding-bottom: 10px;
}


In my catalog\view\theme\default\stylesheet\stylesheet.css I can find only this:

Code: Select all

table.list td {
	border-right: 1px solid #DDDDDD;
	border-bottom: 1px solid #DDDDDD;
}
If I do make changes mentioned above there is not effect. I am using OpenCart 1.5.1.3.
Can anybody help pointing me into right direction?
Thanks,
Bob

User avatar
New member

Posts

Joined
Thu Jan 26, 2012 8:20 am
Who is online

Users browsing this forum: No registered users and 3 guests