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)
-   -   Help with CSS Please (https://forum.x-cart.com/showthread.php?t=24298)

Paul H 08-22-2006 03:24 PM

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

wjbrewer 08-24-2006 10:40 PM

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.

Paul H 08-25-2006 12:31 AM

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:

wjbrewer 08-25-2006 07:20 AM

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.

Paul H 08-25-2006 04:18 PM

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 ?


All times are GMT -8. The time now is 04:10 PM.

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