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.

Cant see my sprite image

Featured Replies

Hello friends,

 

I have been trying us a sprite image forthis page

 

 

 

 

here is my sprite

 

iconssprite.png

 

 

 

 

 

 

i am using chaticons.inc.php for this page and have used a

<span class="icon-13"></span>

 

and in the css i have used this

 

.icon-13 {

 background-image: left:50; top:0; width: 48px; height:48px;url(../images/icons sprite.png);
 background-repeat: no-repeat;
 width: 48px;
 height: 48px;
 display: block;
 margin:0;
 padding:0;
 float:left;
}

Try putting px after the size without left and top and change the style from background-image to background and put all styles together:-

.icon-13 {

background: 50px 0 url(../images/icons sprite.png) no-repeat;
 width: 48px;
 height: 48px;
 display: block;
 margin:0;
 padding:0;
 float:left;
}

 

http://www.w3schools.com/css/pr_background-position.asp

  • Author

Try putting px after the size without left and top and change the style from background-image to background and put all styles together:-

.icon-13 {

background: 50px 0 url(../images/icons sprite.png) no-repeat;
  width: 48px;
  height: 48px;
  display: block;
  margin:0;
  padding:0;
  float:left;
}

 

http://www.w3schools...nd-position.asp

no it is not showing i actually want to show the msn icon only from this image 

 

 

 

Space in the name is not helping

 

try this

 

 

.icon-13 {

background: -53px 0px url(../images/icons%20sprite.png) no-repeat;
 width: 48px;
 height: 48px;
 display: block;
 margin:0;
 padding:0;
 float:left;
}

  • Author

Space in the name is not helping

 

try this

 

 

.icon-13 {

background: -53px 0px url(../images/icons%20sprite.png) no-repeat;
 width: 48px;
 height: 48px;
 display: block;
 margin:0;
 padding:0;
 float:left;
}

 

 

 

 

ya thanks its showing now :)

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.