Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

class vs. styles

Featured Replies

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

 

 

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.

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!

  • 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

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.