Then you should know how to make classes in CSS
if you are talking about OOP in css
i believe there is nothing like that
are you trying to say something like this?
<div class="class"></div>
mate..
Code:.class { text-decoration: none; }This is how you do classes and idsCode:#id { text-decoration: none; }
dude those are not OOP
i could have something like this
.you { margin:0px; }
#me { margin:0px; }
dude.. this is the same thing..
. defines class
# defines id..
ok dude if you say so![]()
chad, how come you mix in OOP here? this isn't anything with OOP even though it's called classes...
CSS has something they call class and something they call id,
still, it ain't OOP just because the term class is used...
__________________________________________
I study Information Systems at Karlstad University when I'm not on CodeCall
chad I know CSS about 4-5 years.. I think you should believe me.
In CSS you don't "call" classes. CSS classes are applied to HTML elements. For example, you might have defined the following CSS class in a file named main.css:
In order to utilize the CSS class you apply it to an HTML element, such as a div and you include the CSS class by adding a link element to main.css in your HTML head. I will illustrate both of these things in the next code example:Code:.wrapper { width: 1024px; overflow: hidden; margin: 10px auto; }
Hopefully that helps clear things up.Code:<html> <head> <title>Example of HTML</title> <link type="text/css" rel="stylesheet" href="_stylesheets/main.css" /> </head> <body> <div class="wrapper"> ...
--Edit
The usage of the term "class" in CSS is not related to OOP at all BTW.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks