Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / How do I put border on some images and no border on others?

How do I put border on some images and no border on others?

Locked

Views: 5,824

Results 21 to 21 of 21
This thread is locked. New replies are disabled.
6 Apr 2009, 12:18 AM
#21
sawhorse avatar

sawhorse

Zen Follower

Join Date:
Oct 2007
Location:
Kentucky - USA
Posts:
425
Plugin Contributions:
0

How do I put border on some images and no border on others?

Just finish this discussion here is some additional information about ID & CLASS that I believe is enlightening.**

ID** and CLASS are commands used to give a "name" to a certain CSS format. These are used when you want to apply a certain formatting style at specified areas. When selecting names for these areas, stay away from using the _ underscore _ character. Older netscape and opera browsers may have a problem reading them.

ID Elements
The # is used to specify an ID element. It says "when this ID is found in a tag, use this format".

The ID can only be used by one element. This limits the usage on this type of formatting, but at times, that is all you need. For a more versatile formatting, CLASS is used.

Class Elements
CLASS elements are very similar to ID elements. ID elements are used for a single instance or area. The CLASS elements are used for many instances or a larger area.

Differences between ID and CLASS ?

  1. The . is used in place of the #
  2. class is used in place of id
  3. ID is for single instances or tags.
  4. CLASS is used for multiple instances or tags.
    I hope the above was useful.

Sawhorse

ZC 1.3.8a; Addons: Admin Profiles, Ty Package Tracker; Swap Images via MouseOver or Click, Smart Backgrounds; Printable Price List; CSS buttons; Contact Us - Add Subject; Template: Self Constructed; Site: http://sawhorsejewelry.com