Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How do I get rid of box corners?


peterpil19

Recommended Posts

Hi, I'm replacing the box category heading titles with images as per the instructions in the online documentation.

 

Problem is that the image won't fit properly, i.e. no matter what size image I use, there is a space on either side of it. if I increase the image size, the whole box just increases.

 

How do I get rid of this extra spacing? Is there something I can change in boxes.php?

 

Here's a screenshot.

 

forumpicture.jpg

 

As you can see, there is a grey space on either side of the category heading picture.

 

Thanks for any help!

 

--Peter

CE PHOENIX SUPPORTER

Support the Project, go PRO and get access to certified add ons

Full-time I am a C-suite executive of a large retail company in Australia. In my spare time, I enjoying learning about web-design.

Download the latest version of CE Phoenix from gitHub here

Link to comment
Share on other sites

if you open the includes\classes\boxes.php function infoBoxHeading you will see it uses left/right images for the corners. These images should match what you currently have with the middle one. Or you can set up a css class and then use the .css entry to specify the corner images.

Link to comment
Share on other sites

if you open the includes\classes\boxes.php function infoBoxHeading you will see it uses left/right images for the corners. These images should match what you currently have with the middle one. Or you can set up a css class and then use the .css entry to specify the corner images.

 

Thanx, I think Ive figured it out now!

 

--Peter

CE PHOENIX SUPPORTER

Support the Project, go PRO and get access to certified add ons

Full-time I am a C-suite executive of a large retail company in Australia. In my spare time, I enjoying learning about web-design.

Download the latest version of CE Phoenix from gitHub here

Link to comment
Share on other sites

Hey again, I've fixed up the left side, but the right side is behaving weird. would anyone know why the right picture is shrunken?

 

Here's a picture.

 

forumpicture2.gif

 

Thanks for any help!

 

--Peter

CE PHOENIX SUPPORTER

Support the Project, go PRO and get access to certified add ons

Full-time I am a C-suite executive of a large retail company in Australia. In my spare time, I enjoying learning about web-design.

Download the latest version of CE Phoenix from gitHub here

Link to comment
Share on other sites

Hey again, I've fixed up the left side, but the right side is behaving weird. would anyone know why the right picture is shrunken?

 

Here's a picture.

 

forumpicture2.gif

 

Thanks for any help!

 

--Peter

have a look here http://www.oscdox.com

 

You need to replace all the references to right corner.gif and the left with pixel trans .gif, which is in the same images directory.

Link to comment
Share on other sites

have a look here http://www.oscdox.com

 

You need to replace all the references to right corner.gif and the left with pixel trans .gif, which is in the same images directory.

 

Thanks, in addition I found that I had to that one of the pictures in box.php had a setting of '11,'14' i.e dimensions. Changing that to '1','14' seems to have fixed the problem.

 

--Peter

CE PHOENIX SUPPORTER

Support the Project, go PRO and get access to certified add ons

Full-time I am a C-suite executive of a large retail company in Australia. In my spare time, I enjoying learning about web-design.

Download the latest version of CE Phoenix from gitHub here

Link to comment
Share on other sites

Thanks, in addition I found that I had to that one of the pictures in box.php had a setting of '11,'14' i.e dimensions. Changing that to '1','14' seems to have fixed the problem.

 

--Peter

 

Actually, it fixed a few of the boxes, but the others have spaces... I don't know, I'm close to giving up!

 

Screenshot:

 

 

forumpicture3.jpg

 

--Peter

CE PHOENIX SUPPORTER

Support the Project, go PRO and get access to certified add ons

Full-time I am a C-suite executive of a large retail company in Australia. In my spare time, I enjoying learning about web-design.

Download the latest version of CE Phoenix from gitHub here

Link to comment
Share on other sites

Easy solution..

 

Backtrack to original set-up....

 

Then just replace all the images in images/infobox/ with transparent gifs in the size you want..

 

Now you can set any background picture you want in the stylesheet for the box headings.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...