Question:
I need help with this big times, about css.?
futbolboy09
2009-10-12 17:36:52 UTC
What are class names in CSS? What is an example of a class name in CSS? How do you use these?

I'm am so stressed out because i've been confused about these all day.
Four answers:
2009-10-12 22:18:21 UTC
id="telephone" is not a class name. It is a selector name (id) for whatever tag you use it on. An id="" with the SAME NAME can only be used once per page. The ".telephone" is a class name and can be used as many times on a page as needed.



Classes, ids can be used with the span tag, but what you show is called inline CSS which is normally not used by people who know how to code with CSS. In order of precedence:



1) Excternal CSS file linked to by the link tag placed between each page's head tags.



2) Embedded CSS which is using the style tags which are placed between the head tags. Example:











3) Inline CSS styling which uses the style="" attribute to style the tags individually.



DO NOT use keywords in your CSS as selector names, classes or ids. Example:



.body { ... blah ... }



is not allowed.



CSS Tutorials:



http://www.w3schools.com/Css/default.asp

http://www.csstutorial.net/

http://www.echoecho.com/css.htm

http://www.html.net/tutorials/css/

http://www.w3.org/Style/Examples/011/firstcss



http://htmldog.com/guides/cssbeginner/

http://www.davesite.com/webstation/css/

http://www.htmlcodetutorial.com/character_famsupp_193.html



Tableless Web Design: http://en.wikipedia.org/wiki/Tableless_web_design

Images, Tables, and Mysterious Gaps: https://developer.mozilla.org/en/Images,_Tables,_and_Mysterious_Gaps



Ron
ceja
2016-09-22 12:15:26 UTC
Have you attempted clearing the whole lot out of it first?? Click on NO STYLE within the Style phase and delete the whole lot out of the CSS. If that does not paintings, I'm no longer definite what is going to? Good success!
Mack
2009-10-12 17:43:08 UTC
if your talking about a cascading style sheet for html editing then class names can be whatever you want really. You can make one called header and give it the properties you want then link it into your main page with
2009-10-12 17:47:57 UTC
Class names are whatever you set them as in your HTML document.



for example:



whatever you want




CSS PAGE:



.NAME {your css code here;}


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...