Results 1 to 3 of 3

Thread: General CSS Question

  1. #1
    Thread Starter
    Senior Member gomeetpete's Avatar
    Join Date
    Feb 2010
    Location
    Western NC
    Posts
    124
    Thanks
    0
    Thanked 17 Times in 4 Posts

    General CSS Question

    Hello,
    While browsing through the master.css file, I've noticed the following types of id's/classes:

    div.name
    #name
    div#name

    Can anyone tell me the difference between these and in what circumstances each of theme would be used? (If different)

    Obviously, i'm no CSS expert, but I've always been able to find my way. I usually use #name and div id="name" together to create div containers for positioning and .name for formatting. Recently, I used #name and the div container wouldn't display until I changed it to div#name, which is how my confusion has come about.

    Any direction or resources you can provide is greatly appreciated. Thanks!

  2. #2
    Thread Starter
    Senior Member gomeetpete's Avatar
    Join Date
    Feb 2010
    Location
    Western NC
    Posts
    124
    Thanks
    0
    Thanked 17 Times in 4 Posts

    General CSS Question

    Correction - *each of these

  3. #3
    garyb's Avatar
    Join Date
    Jul 2010
    Location
    United Kingdom
    Posts
    316
    Thanks
    0
    Thanked 3 Times in 3 Posts
    hello, using any of the forementioned :
    div.name
    #name
    div#name

    usually have the same affect....what u will find of late is css in cs4 format (reletively new coding)
    apparantly it will the general format in the near future.
    Basically like using xhtml instead of html...hope this makes sense.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. General WordPress Support Question?
    By gomeetpete in forum WordPress General Discussion
    Replies: 1
    Last Post: June 4th, 2010, 04:01 AM
  2. General question...
    By sarge in forum ClassiPress General Discussion
    Replies: 3
    Last Post: January 8th, 2010, 02:36 PM
  3. General Wordpress and Adsense question...
    By sarge in forum WordPress General Discussion
    Replies: 5
    Last Post: December 12th, 2009, 11:41 PM
  4. General question on Wordpress themes?
    By sarge in forum WordPress General Discussion
    Replies: 4
    Last Post: October 15th, 2009, 01:27 AM
  5. General WordPress Support Question?
    By gomeetpete in forum Help Using ClassiPress
    Replies: 0
    Last Post: December 31st, 1969, 07:00 PM