Results 1 to 2 of 2

Thread: Php + Css

  1. #1
    Join Date
    Nov 2006
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Php + Css

    Hi, well , i need know if i can use php scripts with css , for example i got a menu, when i choose one section , this section load in the main for this i use a php script, actually i use 3 columns.

    Thx
    Yours Nooky~

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    PHP and css are compatible but separate. If you have css style on or linked to the page, your PHP content on that page will use it. Tags in your PHP generated code will follow the css style rules of the page selected for them. You can also write your PHP to give certain elements certain class names or to give an element an id and have style rules for those selectors. Using PHP to include a stylesheet's link on a page has varying results but, if done in the head of a document before any other content is parsed and/or included, should work.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

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
  •