English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I have oft seen classes like this "#classname" and ".classname" but what's the difference? How to use them properly?

2007-03-23 04:26:34 · 3 answers · asked by Vincy 3 in Computers & Internet Programming & Design

3 answers

You are referring to selectors. The . (period) prefix denotes a class. That is, .classname will apply to all elements that have the attribute class="classname".

# refers to the ID. So it is not really #classname, but rather #elementID. It refers to one (and one only) specific element, with an attribute id="elementID".

2007-03-23 04:36:03 · answer #1 · answered by Rex M 6 · 0 2

there is no html tag observed as pfooter. you will possibly be able to desire to do what Arul pronounced, yet indoors the css make it .pfooter fairly of pfooter. yet as quickly as you will possibly be able to desire to apply tables and basically % to middle the content cloth fabrics, basically located align="middle" indoors the td tag, like this: some text cloth fabrics /td

2016-10-19 10:31:28 · answer #2 · answered by ? 4 · 0 0

"#" used for advanced clasee, and "." for others...
you can set the position of a

in page with "#" advanced classes.
example:


CSS





CSS CLASS



2007-03-23 04:49:35 · answer #3 · answered by Maysam 4 · 1 2

fedest.com, questions and answers