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
Sandeep Singh ShekhawatPosted Nov 7, 2012, 1:52 AM
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/
mohd arifPosted Nov 7, 2012, 1:25 AM
Veerabhadram DhodlaPosted Nov 6, 2012, 5:48 AM
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.