Skip to content
View in the app

A better way to browse. Learn more.

MSFN

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 Help

Featured Replies

I have 5 pages that are attached to the same styles.css document, now everything is cool but i want to use different background image for every document. I have no idea how to do this, maybe it's not even possible :( any help would be appreciated.

thanks...

What you'd have to do is define a different class or id for each tag and page that has a different background. For example, if the background image is defined in the body tag, via css, you'd have to give each page's body tag a different id/class. The difference between id and class is that ids only show up once in html/css whereas classes can be defined for multiple tags. Also in plain html ids can be used for other attributes. And the advantages of classes is you can easily assign css classes to any tag with javascript (className='something'). Anyway, here's an example that I hope helps.. And I'm happy to help more if you're stuck. Also, check out this resource on how the background css thing works. :)

html pages:

Page 1:
...
</head>
<body id="page1">
...

Page 2:
...
</head>
<body id="page2">
...

Page n:
...
</head>
<body id="pageN">
...

style.css

#page1 {
background: url(images/page1bg.jpg) no-repeat;
}
#page2 {
background: url(images/page2bg.jpg) no-repeat;
}
#pageN {
background: url(images/pageNbg.jpg) no-repeat;
}

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

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.