CSS id tags does not work, I think.

General ShopSite user discussion

CSS id tags does not work, I think.

Postby Meemee » Mon Jun 02, 2008 11:19 pm

Hello!

I'm trying to make a template for shopsite and after a lot of trial and error, I realized that my CSS id tags don't work(the ones that use a hash(#). Can anyone tell me why or how to get around it?
Meemee
 
Posts: 8
Joined: Mon Jun 02, 2008 11:14 pm

CSS ID Tags Don't Work

Postby BFChris » Tue Jun 03, 2008 6:06 am

What exactly do you mean when you say the tags don't work? Are you trying to apply styling to Shopsite-generated classes?

If so, to apply styles to classes, you should be using the

.classname

formatting.

The ones with a hash (#) would only apply to elements that have a corresponding ID property. I do not believe Shopsite uses the ID property.

Also, I believe the distinction is that an ID applies to a one-time section of a page (such as a header section DIV) while classes can be applied to multiple elements.
~~Barefoot Chris
--------------------------------
Barefoot Chris Web Design
www.barefootchris.net
--------------------------------
BFChris
 
Posts: 322
Joined: Mon Oct 09, 2006 3:28 pm
Location: PA

Postby Jim » Tue Jun 03, 2008 6:53 am

In a ShopSite custom template if a line begins with the very first character as # then that line is considered to be a comment and it will not be processed during page generation (or shopping cart screen etc.). So if you have styles that must begin with a # symbol put a space character in front of it and then it will be treated as text and not a comment line.
Jim
Site Admin
 
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah

Postby Meemee » Tue Jun 03, 2008 8:12 am

Thank you!
Meemee
 
Posts: 8
Joined: Mon Jun 02, 2008 11:14 pm


Return to User Forum

Who is online

Users browsing this forum: No registered users and 28 guests