Then you should know how to make classes in CSS
Then you should know how to make classes in CSS
█ Get A Cheap Top Level Domain, COM and NET domains only for $7.95 - Get Yours Now!
█ Trill Hosting - Cheap SSL, Cheap Web Hosting, Register Cheap Domains, Cheap Blog Hosting
█ www.trillhosting.com | support@trillhosting.com
█ Hosting Plans | Write To Us | Support | Client Area | About Us
CodeCall Blog | CodeCall Wiki
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; }
█ Get A Cheap Top Level Domain, COM and NET domains only for $7.95 - Get Yours Now!
█ Trill Hosting - Cheap SSL, Cheap Web Hosting, Register Cheap Domains, Cheap Blog Hosting
█ www.trillhosting.com | support@trillhosting.com
█ Hosting Plans | Write To Us | Support | Client Area | About Us
CodeCall Blog | CodeCall Wiki
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..
█ Get A Cheap Top Level Domain, COM and NET domains only for $7.95 - Get Yours Now!
█ Trill Hosting - Cheap SSL, Cheap Web Hosting, Register Cheap Domains, Cheap Blog Hosting
█ www.trillhosting.com | support@trillhosting.com
█ Hosting Plans | Write To Us | Support | Client Area | About Us
CodeCall Blog | CodeCall Wiki
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...
__________________________________________
Ask me: Orjan | Contribute to the Wiki! | Make your own Programming blog!
I usually play eRepublik and Travian when I'm not on CodeCall
chad I know CSS about 4-5 years.. I think you should believe me.
█ Get A Cheap Top Level Domain, COM and NET domains only for $7.95 - Get Yours Now!
█ Trill Hosting - Cheap SSL, Cheap Web Hosting, Register Cheap Domains, Cheap Blog Hosting
█ www.trillhosting.com | support@trillhosting.com
█ Hosting Plans | Write To Us | Support | Client Area | About Us
CodeCall Blog | CodeCall Wiki
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.
█ Get A Cheap Top Level Domain, COM and NET domains only for $7.95 - Get Yours Now!
█ Trill Hosting - Cheap SSL, Cheap Web Hosting, Register Cheap Domains, Cheap Blog Hosting
█ www.trillhosting.com | support@trillhosting.com
█ Hosting Plans | Write To Us | Support | Client Area | About Us
CodeCall Blog | CodeCall Wiki
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks
Algorithms and Data Structures
Java tutorials
Algorithms Forum