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

question about skin1.css

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 07-31-2005, 03:38 PM
 
mimosa777 mimosa777 is offline
 

Member
  
Join Date: May 2005
Posts: 14
 

Default question about skin1.css

Hi there,

I got in the skin1.css file those 2 line :
Code:
#categories a { display: block; background-color: White; border-bottom: 1px solid #F9F9F9; } #categories a:hover { background-color: #F5F5F5; color: #C60000; text-decoration: none;}

I understand that those line are like sub-class of the .CategoriesList{} sub-class. Matbe i am wrong.

I would like please to know how can i use #categories with .CategoriesList together in the file customers/categories.tpl

I tried :
Code:
<FONT class="CategoriesList : categories"> or <FONT class="CategoriesList(categories)">
but nothing work.

Sorry, i am a beginner on how to use .css file but i really need to use #categories with the .CategoriesList{} for a visual effect i am trying to do.

Can you help ?

Thank you very much
__________________
x-cart 4.2.1 (gold)
Reply With Quote
  #2  
Old 07-31-2005, 05:30 PM
 
balinor balinor is offline
 

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

Default

Those are not sub-classes, but the way you call a style using the id of a <div> tag. You must be using a third party skin, as that style you are referencing does not appear in the default skin1.css of X-Cart.

I'd suggest getting yourself a good CSS book, or doing some reading on-line, as you will really need some CSS skills in order to alter the X-Cart layout to your liking
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 07-31-2005, 06:19 PM
 
mimosa777 mimosa777 is offline
 

Member
  
Join Date: May 2005
Posts: 14
 

Default

In fact, i am using a third party skin. I am not that poor in css knowledge, except for this situation.
It is the first time that i see in a .css file something like :
Code:
#categories a { display: block; background-color: White; border-bottom: 1px solid #F9F9F9; } #categories a:hover { background-color: #F5F5F5; color: #C60000; text-decoration: none;}

The # is what making me confused. What is it exactly? is it the same as the ones start with the dot (ex : .name) ?

Do you please have an idea on how i can include or call the #categories in the categories.tpl file ?

Thanks again !
__________________
x-cart 4.2.1 (gold)
Reply With Quote
  #4  
Old 07-31-2005, 06:49 PM
 
Light Speed Light Speed is offline
 

X-Adept
  
Join Date: Mar 2003
Posts: 921
 

Default

# is an id identifier

.whatever is a class


in your code if you use

Code:
<div id="someName"> Put your lovely content here </div>

and have this in your css
Code:
#someName { border: 1px #FF0000; }

It will reference the id and that div will have a red border of 1 pixel.
Reply With Quote
  #5  
Old 07-31-2005, 07:36 PM
 
mimosa777 mimosa777 is offline
 

Member
  
Join Date: May 2005
Posts: 14
 

Default

Thank you very much...
__________________
x-cart 4.2.1 (gold)
Reply With Quote
  #6  
Old 07-31-2005, 08:56 PM
 
Light Speed Light Speed is offline
 

X-Adept
  
Join Date: Mar 2003
Posts: 921
 

Default

Quote:
Originally Posted by mimosa777
Thank you very much...

Glad to help
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 02:57 AM.

   

 
X-Cart forums © 2001-2020