October 20, 20169 yr Hello, How is the difference between class and styles? I spoke few days ago with company which I cooperate (and I was shame to ask of explain) and they told me: work on styles, not on class. I working with css everyday, but I never hear about difference. Can anybody explain? Thank You
October 20, 20169 yr it makes no sense to me. They are different things, a selector type and a style declaration. Did they mean you should use id instead of class and just get the words wrong ? I have noticed some people just never use an id because a class will do the job. I don't know if there's anything wrong with that.
October 20, 20169 yr Hello, How is the difference between class and styles? I spoke few days ago with company which I cooperate (and I was shame to ask of explain) and they told me: work on styles, not on class. I working with css everyday, but I never hear about difference. Can anybody explain? Thank You I think I possibly know what they might mean. Instead of applying a number of styles to one id or class, I think might be meaning create different styles for fonts, structure colours etc within your css and then you can select which style you would like to apply to a div. For example your class may look like this: <div class="halfcolumn whitefont blackbackground"></div> Then each of these would be a different style in your class: .blackbackground { } .whitefont{ } .halfcolumn{ } This is all I can think it would be!
October 20, 20169 yr @@YacaZG I think you need to elaborate some more as all we can do here is make assumptions. Perhaps you need to ask your client exactly what they mean.
October 20, 20169 yr Author Thank You guys for answer. I'll ask my client for more details and I'll let You know
Create an account or sign in to comment