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.

CSS not working

Featured Replies

Alright,

Does anyone know why the following stylesheet isnt working propely? The <p> tags work fine as the CSS changes the text font but when I try and position the layer with class and id header it doesn't move. Tried changing the background colour as well which didnt work.

 

 

 

Thanks.

addd a . before header and background

 

 

so it would be

 

.header {position:absolute; top:40px; width:980px; height:90px; background-color:#AEB5A8;}

p {font-family:"Times New Roman", Times, serif;
   }

.background {background-color:#7F8779}

 

 

much like when you need a # for an id you need a . to say it is a class

  • Author
addd a . before header and background

so it would be

 

.header {position:absolute; top:40px; width:980px; height:90px; background-color:#AEB5A8;}

p {font-family:"Times New Roman", Times, serif;
   }

.background {background-color:#7F8779}

much like when you need a # for an id you need a . to say it is a class

 

Ah right, working now. Cheers.

On a related note, here's a good article which i found on css best-practices.

Thought that everybody should follow it.

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.