+ Reply to Thread
Page 2 of 3
FirstFirst 1 2 3 LastLast
Results 11 to 20 of 21

Thread: PHP coding?

  1. #11
    Moderator Jaan is a splendid one to behold Jaan is a splendid one to behold Jaan is a splendid one to behold Jaan is a splendid one to behold Jaan is a splendid one to behold Jaan is a splendid one to behold Jaan is a splendid one to behold Jaan's Avatar
    Join Date
    Dec 2006
    Location
    Estonia
    Age
    18
    Posts
    2,068
    Blog Entries
    9

    Re: PHP coding?

    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

  2. #12
    Learning Programmer chad is an unknown quantity at this point chad's Avatar
    Join Date
    Jan 2010
    Location
    Philippines
    Posts
    57

    Re: PHP coding?

    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>

  3. #13
    Moderator Jaan is a splendid one to behold Jaan is a splendid one to behold Jaan is a splendid one to behold Jaan is a splendid one to behold Jaan is a splendid one to behold Jaan is a splendid one to behold Jaan is a splendid one to behold Jaan's Avatar
    Join Date
    Dec 2006
    Location
    Estonia
    Age
    18
    Posts
    2,068
    Blog Entries
    9

    Re: PHP coding?

    mate..

    Code:
    .class {
         text-decoration: none;
    }
    Code:
    #id {
         text-decoration: none;
    }
    This is how you do classes and ids
    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

  4. #14
    Learning Programmer chad is an unknown quantity at this point chad's Avatar
    Join Date
    Jan 2010
    Location
    Philippines
    Posts
    57

    Re: PHP coding?

    dude those are not OOP
    i could have something like this

    .you { margin:0px; }
    #me { margin:0px; }

  5. #15
    Moderator Jaan is a splendid one to behold Jaan is a splendid one to behold Jaan is a splendid one to behold Jaan is a splendid one to behold Jaan is a splendid one to behold Jaan is a splendid one to behold Jaan is a splendid one to behold Jaan's Avatar
    Join Date
    Dec 2006
    Location
    Estonia
    Age
    18
    Posts
    2,068
    Blog Entries
    9

    Re: PHP coding?

    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

  6. #16
    Learning Programmer chad is an unknown quantity at this point chad's Avatar
    Join Date
    Jan 2010
    Location
    Philippines
    Posts
    57

    Re: PHP coding?

    ok dude if you say so

  7. #17
    Moderator Orjan is a glorious beacon of light Orjan is a glorious beacon of light Orjan is a glorious beacon of light Orjan is a glorious beacon of light Orjan is a glorious beacon of light Orjan's Avatar
    Join Date
    Sep 2007
    Location
    Karlstad, Sweden
    Age
    34
    Posts
    2,617
    Blog Entries
    7

    Re: PHP coding?

    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

  8. #18
    Moderator Jaan is a splendid one to behold Jaan is a splendid one to behold Jaan is a splendid one to behold Jaan is a splendid one to behold Jaan is a splendid one to behold Jaan is a splendid one to behold Jaan is a splendid one to behold Jaan's Avatar
    Join Date
    Dec 2006
    Location
    Estonia
    Age
    18
    Posts
    2,068
    Blog Entries
    9

    Re: PHP coding?

    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

  9. #19
    Newbie Nathandelane is an unknown quantity at this point Nathandelane's Avatar
    Join Date
    Sep 2007
    Location
    Utah, USA
    Posts
    11

    Re: PHP coding?

    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:
    Code:
    .wrapper
    {
    	width: 1024px;
    	overflow: hidden;
    	margin: 10px auto;
    }
    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:
    <html>
    	<head>
    		<title>Example of HTML</title>
    		<link type="text/css" rel="stylesheet" href="_stylesheets/main.css" />
    	</head>
    	<body>
    		<div class="wrapper">
    		...
    Hopefully that helps clear things up.

    --Edit
    The usage of the term "class" in CSS is not related to OOP at all BTW.

  10. #20
    Moderator Jaan is a splendid one to behold Jaan is a splendid one to behold Jaan is a splendid one to behold Jaan is a splendid one to behold Jaan is a splendid one to behold Jaan is a splendid one to behold Jaan is a splendid one to behold Jaan's Avatar
    Join Date
    Dec 2006
    Location
    Estonia
    Age
    18
    Posts
    2,068
    Blog Entries
    9

    Re: PHP coding?

    Quote Originally Posted by Nathandelane View Post
    The usage of the term "class" in CSS is not related to OOP at all BTW.
    100% true
    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

+ Reply to Thread
Page 2 of 3
FirstFirst 1 2 3 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. PHP 5 and OOP
    By Jordan in forum PHP Tutorials
    Replies: 11
    Last Post: 09-22-2008, 01:58 AM
  2. PHP 4 end of life announcement
    By Jordan in forum News
    Replies: 4
    Last Post: 08-30-2007, 09:55 AM
  3. How long have you been coding php?
    By cpvr in forum PHP Forum
    Replies: 11
    Last Post: 07-11-2006, 12:41 PM

Bookmarks

Bookmarks

     
        Algorithms and Data Structures

        Java tutorials

        Algorithms Forum

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts