X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Newwb -help edit skin1 to get rid of purple box!? (https://forum.x-cart.com/showthread.php?t=21549)

DeanH 05-03-2006 11:47 PM

Newwb -help edit skin1 to get rid of purple box!?
 
I did several searches, trying not to post what is probably a weird/dumb question, but here goes. I have a logo that I was able to upload, but I want to put a bit of a border around it to look better.

So I edited the /head.tpl (no, I don't know what I'm doing, but I get lucky often enough to keep trying) I changed the line:

<TD>[img]{$ImagesDir}/xlogo.gif[/img]</TD>

and changed border="0" to border="20" and by golly, it worked!

BUT, the border is purple! I cannot find any hex code that I don't recognize in the Skin1.css file. So-oooo... What line will change the purple border color? [-o< Anyone want to take a crack at this, please?

pauldodman 05-04-2006 12:07 AM

I'll have a crack, but that is all it is...

The image is actually a link, so the purple is probably a standard link colour for active link or similar.

So the css is being called from the a:link, etc css styles.

You could perhaps create a new style and call that from your a href statement.

DeanH 05-04-2006 12:30 AM

Ok, that makes sense...
 
Thank you for your answer. It does make sense, but my luck runs out (or skill, anyway) in actually performing what you suggest. I can change files, but not actually create.

I had been trying the other direction, which is modifying the logo image itself, but the gifs I posted appeared low quality on the site. It sounds like I ought to try harder on that...

I appreciate your reply so quickly!

pauldodman 05-04-2006 12:40 AM

Try something like this:

change:

<A href="http://www.mydomain.com">

to:

<A href="http://www.mydomain.com" class="imageborder">

Then in you skin1.css,

you need to add that class:

.imageborder:link {COLOR: #000000;}
.imageborder:active {COLOR: #000000;}
.imageborder:hover {COLOR: #000000;}
.imageborder:visited {COLOR: #000000;}

Not tested, I am presuming that the COLOR bit will alter the border. Other than that, the theory is along those lines.

DeanH 05-04-2006 09:59 AM

Thanks again, Paul. I will try that when I get a chance and post the results. I appreciate the explanation and patience.


All times are GMT -8. The time now is 09:35 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.