Jump to content



Latest News: (loading..)

- - - - -

Want border around images


  • Please log in to reply
6 replies to this topic

#1   theautoguy

theautoguy
  • Members
  • 31 posts
  • Real Name:Joel Svidlow

Posted 16 February 2012 - 04:35 PM

When you are viewing the products on the home page and/or clicking thru categories, I am wanting to put borders around the products.  Right now the images are next to one another with the title and price underneath.  I want to show some seperation with borders around them.

Does anyone know how to do this?

Thanks

FYI WORKING WITH VER 2.3.1

Edited by theautoguy, 16 February 2012 - 04:36 PM.


#2   web-project

web-project
  • Members
  • 4,320 posts
  • Real Name:Alex
  • Gender:Male
  • Location:Hertfordshire, UK

Posted 16 February 2012 - 10:08 PM

Quote

Does anyone know how to do this?
using html table you can create the border around the images
Please read this line: Do you want to find all the answers to your questions? click here. As for contribution database it's located here!
8 people out of 10 don't bother to read installation manuals. I can recommend: if you can't read the installation manual, don't bother to install any contribution yourself.
Before installing contribution or editing/updating/deleting any files, do the full backup, it will save to you & everyone here on the forum time to fix your issues.
Any issues with oscommerce, I am here to help you.

#3   theautoguy

theautoguy
  • Members
  • 31 posts
  • Real Name:Joel Svidlow

Posted 16 February 2012 - 11:21 PM

View Postweb-project, on 16 February 2012 - 10:08 PM, said:

using html table you can create the border around the images

Do you know how to do this?   Or what the code would be?  I could not find a contribution or forum for this for 2.3 version.

#4   Kevin.Dallas

Kevin.Dallas
  • Members
  • 3 posts
  • Real Name:Kevin

Posted 18 February 2012 - 12:54 AM

don't use html, use your stylesheet

#5   theautoguy

theautoguy
  • Members
  • 31 posts
  • Real Name:Joel Svidlow

Posted 18 February 2012 - 11:15 PM

View PostKevin.Dallas, on 18 February 2012 - 12:54 AM, said:

don't use html, use your stylesheet

How can I do this on my stylesheet.

#6   actodc

actodc
  • Members
  • 21 posts
  • Real Name:sheldon

Posted 21 June 2012 - 02:04 PM

View Postmattjt83, on 22 February 2012 - 12:17 AM, said:

in your .css file:

img {border:1px solid #000;}

-or- if you want only images with a certain class

img.yourclass {border:1px solid #000;}


#7   14steve14

14steve14

    STORE OWNER NOT CODER

  • Members
  • 3,073 posts
  • Real Name:Steve
  • Gender:Male
  • Location:Dorset UK

Posted 21 June 2012 - 03:45 PM

In your includes/modules/new_products.php find

$new_prods_content = '<table border="0" width="100%" cellspacing="0" cellpadding="2">';

change it to

$new_prods_content = '<table border="0" width="100%" cellspacing="10" cellpadding="2">';

This adds spacing between the cells within the table.

Then in the same file find

<td width="33%" align="center" valign="top">

and change it to

<td width="33%" align="center" valign="top" class="newproductsbgtd">

Then in your stylesheet.css add

.newproductsbgtd {
  background: #ff0000;
  border: solid 1px #ffffff;
  -moz-border-radius: 10px;
  border-radius: 10px;
}

Alter the two colours to match your site.
REMEMBER BACKUP, BACKUP AND BACKUP
I am not a coder, so dont bother sending PMs asking for help as you wont get any.  

OSC has a steep learning curve, but in general the program does work.  If it doesnt work, the chances are it is something you have done.