Thread: css in tpl file
View Single Post
  #5  
Old 11-09-2006, 03:31 PM
 
maximer maximer is offline
 

Member
  
Join Date: Sep 2006
Posts: 22
 

Default Re: css in tpl file

Quote:
Originally Posted by balinor
No, you aren't understanding. You can't call a stylesheet in a template, nor can you put a <head> tag in a template. There is one central stylesheet in X-Cart, you put all of your styles there, skin1.css. You then call those styles via a <div> like I showed you.

OK. I do you sugested - added my styles to skin1_sustomer.css

here some of code of skin1_sustomer.css:
.prom_tab { margin: 0px auto 0px auto;
padding: 0px 0px 0px 0px;
width: 515px;
font-size: 11px;
font-family: Verdana, Arial, Helvetica, sans-serif;
}
.prom_tab table { width: 510px;
text-align: center;
border: 1px solid #000;
}
.prom_tab td.top { text-align: left;
padding: 3px 0px 3px 5px;
background-color: #09387E;
color: #FFF;
font-size: 12px;
}

..................

and here some of my welcome.tpl file :

<div id="prom_tab">
<table cellpadding="0" cellspacing="0">
<tr>
<td colspan="6" class="top">Models with</td>
</tr>
<tr>
<td class="header" colspan="6">Optimized Price Performance</td>
</tr>
.........
I have cleaned my templates_c directory and it don't work.

regards
__________________
Version 4.0.18
Reply With Quote