Results 1 to 2 of 2

Thread: Which one is correct CSS?

  1. #1
    SilverFrog Guest

    Which one is correct CSS?

    Which one of these is correct CSS:

    HTML Code:
    #content input, textarea,
    or
    HTML Code:
    #content input, #content textarea,
    both seem to work, but which one is better and/or more correct?

  2. #2
    Join Date
    Feb 2007
    Location
    Ireland
    Posts
    1,007
    They are both correct and different.

    In the first one, you are referring to every textarea element. In the second one, only a textarea element located within a content id. Which to use is dependant on whether the textarea in the content id is unique or you want to refer to the global tag.
    “The best thing about a boolean is even if you are wrong, you are only off by a bit.”

Similar Threads

  1. Problems Positioning with CSS
    By kirstybandm in forum Web Design, HTML Reference and CSS
    Replies: 0
    Last Post: 17 Jan 2006, 05:33 AM

Posting Permissions

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