Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 10-03-2012, 09:28 AM   PM User | #1
saeed
Regular Coder

 
saeed's Avatar
 
Join Date: Oct 2002
Location: West Yorkshire
Posts: 343
Thanks: 32
Thanked 0 Times in 0 Posts
saeed is an unknown quantity at this point
Image hide behind the template.

Please refer to the attach screenshot.

you'll notice red box on the bottom left of the image on which if end-user clicks it goes to top of the page. Script is working alright but image is not appearing on the front.

here is the CSS code which i am using for displaying the image.

Please help. Thank you very much!

Code:
#toTop {
   display:none;
   text-decoration:none;
   position:fixed;
   bottom:10px;
   right:10px;
   overflow:hidden;
   width:51px;
   height:51px;
   border:none;
   text-indent:100%;
   background:url(../images/ui.totop.png) no-repeat left top;
}

#toTopHover {
   background:url(../images/ui.totop.png) no-repeat left -51px;
   width:51px;
   height:51px;
   display:block;
   overflow:hidden;
   float:left;
   opacity: 0;
   -moz-opacity: 0;
   filter:alpha(opacity=0);
}

#toTop:active, #toTop:focus {
   outline:none;
}
Attached Thumbnails
Click image for larger version

Name:	screenshot.jpg
Views:	16
Size:	5.1 KB
ID:	11601  
__________________
Don't click on this!

#!/usr/bin/saeed
saeed is offline   Reply With Quote
Old 10-03-2012, 09:35 AM   PM User | #2
shyagrawal
New Coder

 
Join Date: Sep 2012
Posts: 22
Thanks: 0
Thanked 6 Times in 6 Posts
shyagrawal is an unknown quantity at this point
Instead of
background:url(../images/ui.totop.png) no-repeat left -51px; you have to use below statement:
background-image:url(../images/ui.totop.png) no-repeat left -51px;.

Like that you have to update.
Please let me know if it solved.
shyagrawal is offline   Reply With Quote
Old 10-03-2012, 09:50 AM   PM User | #3
saeed
Regular Coder

 
saeed's Avatar
 
Join Date: Oct 2002
Location: West Yorkshire
Posts: 343
Thanks: 32
Thanked 0 Times in 0 Posts
saeed is an unknown quantity at this point
thank you for the quick reply.

well the issue is still the same. no change in displaying the image.
__________________
Don't click on this!

#!/usr/bin/saeed
saeed is offline   Reply With Quote
Old 10-03-2012, 09:59 AM   PM User | #4
shyagrawal
New Coder

 
Join Date: Sep 2012
Posts: 22
Thanks: 0
Thanked 6 Times in 6 Posts
shyagrawal is an unknown quantity at this point
Please use "." instead of "#" in css.
Code:
.toTop {
   display:none;
   text-decoration:none;
   position:fixed;
   bottom:10px;
   right:10px;
   overflow:hidden;
   width:51px;
   height:51px;
   border:none;
   text-indent:100%;
   background:url(../images/ui.totop.png) no-repeat left top;
}

.toTopHover {
   background:url(../images/ui.totop.png) no-repeat left -51px;
   width:51px;
   height:51px;
   display:block;
   overflow:hidden;
   float:left;
   opacity: 0;
   -moz-opacity: 0;
   filter:alpha(opacity=0);
}

.toTop:active, .toTop:focus {
   outline:none;
}
shyagrawal is offline   Reply With Quote
Old 10-03-2012, 10:05 AM   PM User | #5
saeed
Regular Coder

 
saeed's Avatar
 
Join Date: Oct 2002
Location: West Yorkshire
Posts: 343
Thanks: 32
Thanked 0 Times in 0 Posts
saeed is an unknown quantity at this point
Nope. infact this time i cant see the image.. instead of the image when i am at the bottom of the page. 'To Top' text appeared and script feature is working on it.
__________________
Don't click on this!

#!/usr/bin/saeed
saeed is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 11:30 AM.


Advertisement
Log in to turn off these ads.