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.

How to style for an individual page in a website

Featured Replies

Hi,
I like to inform you that I have made a website which has 3 pages. I just use one style.css for all pages due to same design except one page named video.html where I use social buttons (FACEBOOK AND Google+ only)

The problem is when I gave styles for social buttons in style.css, it didn’t work. But when I gave style in <head> section of video.html page it worked properly. Can you please tell me, why it’s happen?

I want to give all styles only using style.css. How it’s possible?

 

Here is the code:

 

 

<div class="social_profiles">
<a href=""><img src="images/g_plus_1.png" alt="" /></a>
<a href=""><img src="images/g_plus_2.png" alt="" /></a>
</div>
<style type="text/css">
.social_profiles {position:fixed;width:48px;right:15px;top:50%;background:#fff;padding-top:10px;}
.social_profiles img {width:48px;padding-bottom:15px;}
</style>

 

No more, I am waiting for your kind response.

Looks right to me - are you sure your browser isn't just caching style.css?

 

If you're using Chrome, try CTRL+SHIFT+R, or empty your cache if in another browser.

very simple

 

 

name the body of video.html with

 

 

<body class="video">

 

and in style.css

 

use

 

.video before all the class in style.css

 

For. e.g -

 

.video h1,h2,h3,h4 { }

 

.video p{ }

 

.video span { }

 

 

etc..

 

Just put .video with all the class to be used in vedio.html

 

There are other ways too but for that i need to look into your files.

 

 

 

By Xee Studios

 

  • Author

Thank you so much for spending your valuable time for reply. I honestly say that nobody would ever tell me before about it like you. I am very glad and take it seriously as a result too. I hope you should continue help me and others in future as well.

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.