Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

CSS Issue in head.tpl

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 04-20-2007, 07:17 AM
 
harrismichael harrismichael is offline
 

Senior Member
  
Join Date: Sep 2005
Location: New York
Posts: 107
 

Default CSS Issue in head.tpl

I am trying to eliminate gif boxes and create css link boxes but with some links it shows the box, with some not.

I added this part of css to create boxes around text on the head.tpl (www.harrismichaeljewelry.com/test/)

Code:
.maddlinks a:link, .addlinks a:hover, .addlinks a:visited, .addlinks a:active { border: solid 2px #DDE1E8; width:190px;height: 30px;padding: 2 2 2 2; margin-top: 3px;margin-bottom: 3px;margin-left: 2px;margin-right: 2px; background: 66778F; font-size:12px; color:#FFFFFF; font-weight: bold; text-decoration: none;}

Works on <a href="#">LINK 03 </a> & <a href="www.harrismichaeljewelry.com">HMJ </a> but NOT on
<a href="/Luxury-Gifts-c-771.html">GIFTS </a> or <a href="http://www.harrismichaeljewelry.com/Luxury-Gifts-c-771.html">GIFTS</a>

On the last two it just creates a link without the box┘

Code:
<td class="maddlinks" height="25" align="center" valign="middle"><div align="right"><a href="http://www.harrismichaeljewelry.com/Luxury-Gifts-c-771.html">GIFTS </a> <a href="/Luxury-Gifts-c-771.html">GIFTS </a> <a href="#">LINK 03 </a> <a href="www.harrismichaeljewelry.com">HMJ </a> </div></td>


Any suggestions why this is happening and what I can do about this?

Thanks

MC
__________________
www.harrismichaeljewelry.com X-Cart version 4.1.18



Mods

DSEFU PRO
Auction Manager for XCART
X-cart Customer Reward Points
Customer Review Management for X-cart
Recently Viewed Products X-cart Modification
X-RMA
X-AOM
Customers Also Bought Modification
Recently Viewed Products X-cart Modification
Hidden Categories
Product Options Copier
Multiple Upselling Links for X-cart
Reply With Quote
  #2  
Old 04-20-2007, 08:30 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: CSS Issue in head.tpl

Moving to Template Editing.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 05-14-2007, 07:14 AM
  n00bert's Avatar 
n00bert n00bert is offline
 

Advanced Member
  
Join Date: Feb 2007
Posts: 46
 

Default Re: CSS Issue in head.tpl

in firefox on a mac, all the buttons appear with the white border. Have you solved this then?

If not, you might want to change the css you posted to this:

Code:
.maddlinks a:link, .addlinks a:hover, .addlinks a:visited, .addlinks a:active { border:2px solid #DDE1E8; width:190px; height:30px; padding:2px 2px 2px 2px; margin:3px 2px; background:#66778F; font-size:12px; color:#FFFFFF; font-weight:bold; text-decoration:none; }

background didn't have a # before the hex number.
padding cannot accept values without units, i.e.
Code:
padding:2 2 2 2;
is not acceptable,
Code:
padding:2px 3px 4px 5px;
or
Code:
padding:1em 0 4em 5%;
is fine.


Also, you have a height of 25px set on the .maddlinks td as well as a height of 30px on .maddlinks a
Unless it's your intention, in general you should try to avoid conflicting rules such as this, as they may confuse certain browsers.

regards,
n00bert
__________________
Version 4.1.6 Gold

urban-kings.com
urbanwear and street fashion specialist
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 11:00 AM.

   

 
X-Cart forums © 2001-2020