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

Help with CSS Please

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 08-22-2006, 03:24 PM
 
Paul H Paul H is offline
 

eXpert
  
Join Date: Sep 2005
Posts: 246
 

Smile Help with CSS Please

I need a little help with my CSS so I''ve done a screen shot to make explaining easier
http://www.vwspeedshop.com/dropfile/image1xc.jpg

The two sections of text A and B work off the same bit of CSS file and I need to make the Text B
a different colour to Text A so has anyone got that little peice of code that I can insert in my CSS
or some simple instructions

Thanks

Smile
__________________
Xcart Gold 4.1.11-Gone
= 4.7.11-Live
Reply With Quote
  #2  
Old 08-24-2006, 10:40 PM
  wjbrewer's Avatar 
wjbrewer wjbrewer is offline
Banned
 

X-Adept
  
Join Date: Feb 2005
Location: Pittsburgh, PA
Posts: 504
 

Default Re: Help with CSS Please

If they are both using the same CSS tag you will have to edit the .tpl file (I think it is customer/main/register.tpl) to make the text at the top use a different tag. If there is already one in skin1.css that you like you just change it to that, otherwise just create a new tag with the font, size, and color that you want.
Reply With Quote
  #3  
Old 08-25-2006, 12:31 AM
 
Paul H Paul H is offline
 

eXpert
  
Join Date: Sep 2005
Posts: 246
 

Default Re: Help with CSS Please

Thanks for the info. I will have a go at the CSS thing as there are lots of bits of text that have the same tag and as I chose black and white layout it causes problems. My first line of the CSS below. In the tpl file I would be looking for a line of code like : class= body or div or th etc right ??


/**** LINK-tag style sheet skin1.css ****/

BODY,DIV,TH,P,TD,TT
{
font-family: Arial,Verdana,Sans-Serif ;
font-size: 12px;
font-weight:
__________________
Xcart Gold 4.1.11-Gone
= 4.7.11-Live
Reply With Quote
  #4  
Old 08-25-2006, 07:20 AM
  wjbrewer's Avatar 
wjbrewer wjbrewer is offline
Banned
 

X-Adept
  
Join Date: Feb 2005
Location: Pittsburgh, PA
Posts: 504
 

Default Re: Help with CSS Please

[quote=Paul H]
/**** LINK-tag style sheet skin1.css ****/
Quote:
BODY,DIV,TH,P,TD,TT
{
font-family: Arial,Verdana,Sans-Serif ;
font-size: 12px;
font-weight:

The code above is basically the 'master' setting for your entire site. You will not find it referred to in a .tpl file. If you have a line of HTML that is something like:

HTML Code:
<table><tr><td>Some text</td></tr></table>

It will use the css style above because it includes TD tags. You will only find tags that start with a "." (Like .left_menu for example) reffered to in a .tpl file, and generally it will be something like

HTML Code:
<p class=left_menu> Some Text </p>

You can make up new CSS tags that you want, and then code them into the .tpl files.
Reply With Quote
  #5  
Old 08-25-2006, 04:18 PM
 
Paul H Paul H is offline
 

eXpert
  
Join Date: Sep 2005
Posts: 246
 

Default Re: Help with CSS Please

I had some success with adding CSS tags but I think there is some kind of heirarchy going on one thing over rides another but maybe it's just me. Why do some of the CSS tags have a dot in front of them and others don't ?
__________________
Xcart Gold 4.1.11-Gone
= 4.7.11-Live
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 07:46 AM.

   

 
X-Cart forums © 2001-2020