respected sir/mam
i need answer for the designing point of view.what is the difference between id and class.i see a lot of css in such there is id in id we define class but we can do its viceversa .so how we can differenciate between id and class selector of css.
Loading
Veerabhadram Dhodla14 reputationPosted Nov 6, 2012, 12:48 AM EST
If You define Style with class you can use that style to multiple controls with that class name.
In the below example we have two
If you define style with ID dropDown1.It will applicable to that specific Div only you con't use that same style to other
So if you define style with class as "dropDownMenu". Then you can use that same style to other control also.
mohd arif26 reputationPosted Nov 6, 2012, 8:25 PM EST
Sandeep Singh ShekhawatRank #147 · 15.6K reputationPosted Nov 6, 2012, 8:52 PM EST
http://css-tricks.com/the-difference-between-id-and-class/
http://www.impressivewebs.com/difference-class-id-css/
http://www.vanseodesign.com/css/css-selector-performance/
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questionsTop experts