Closed Thread
Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 21

Thread: PHP coding?

  1. #11
    Jaan Guest

    Re: PHP coding?

    Then you should know how to make classes in CSS

  2. CODECALL Circuit advertisement

     
  3. #12
    chad's Avatar
    chad is offline Learning Programmer
    Join Date
    Jan 2010
    Location
    Philippines
    Posts
    68
    Rep Power
    0

    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>

  4. #13
    Jaan Guest

    Re: PHP coding?

    mate..

    Code:
    .class {
         text-decoration: none;
    }
    Code:
    #id {
         text-decoration: none;
    }
    This is how you do classes and ids

  5. #14
    chad's Avatar
    chad is offline Learning Programmer
    Join Date
    Jan 2010
    Location
    Philippines
    Posts
    68
    Rep Power
    0

    Re: PHP coding?

    dude those are not OOP
    i could have something like this

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

  6. #15
    Jaan Guest

    Re: PHP coding?

    dude.. this is the same thing..
    . defines class
    # defines id..

  7. #16
    chad's Avatar
    chad is offline Learning Programmer
    Join Date
    Jan 2010
    Location
    Philippines
    Posts
    68
    Rep Power
    0

    Re: PHP coding?

    ok dude if you say so

  8. #17
    Join Date
    Sep 2007
    Location
    Karlstad, Sweden
    Posts
    3,082
    Blog Entries
    7
    Rep Power
    41

    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...
    __________________________________________
    I study Information Systems at Karlstad University when I'm not on CodeCall

  9. #18
    Jaan Guest

    Re: PHP coding?

    chad I know CSS about 4-5 years.. I think you should believe me.

  10. #19
    Join Date
    Sep 2007
    Location
    Utah, USA
    Posts
    22
    Blog Entries
    1
    Rep Power
    0

    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.

  11. #20
    Jaan Guest

    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

Closed Thread
Page 2 of 3 FirstFirst 123 LastLast

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. coding
    By diya in forum General Programming
    Replies: 5
    Last Post: 11-05-2011, 10:14 AM
  2. Need Help on php coding
    By Mastspace in forum PHP Development
    Replies: 5
    Last Post: 04-21-2010, 05:18 AM
  3. Coding Help
    By Hunter100 in forum JavaScript and CSS
    Replies: 4
    Last Post: 04-03-2010, 04:52 AM
  4. Coding an IRC# Bot, some help please :)
    By SgtPunishment in forum C# Programming
    Replies: 3
    Last Post: 03-27-2010, 10:14 AM

Tags for this Thread

Bookmarks

Posting Permissions

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