We just installed a program which display an icon on our website, tried to figure out how to make the con float on our website so that the icon follows the customers when customers scroll down our web pages. How can I achieve that?
Thanks,
Grace
We just installed a program which display an icon on our website, tried to figure out how to make the con float on our website so that the icon follows the customers when customers scroll down our web pages. How can I achieve that?
Thanks,
Grace
You can use fixed positioning for that. If you need it to work in IE6 as well, take a look at this article:
http://ryanfait.com/position-fixed-ie6/
Good luck!
Thanks!
I will look into this. Does that only work for IE6? I would need for it to work on any types of browsers, ideally.
It works in all other popular browsers as well. That is just a fix to make it work in IE6 since it has problems with fixed positioning. If you don't care about IE6, you don't really have to bother about that "hack" but just useposition:fixed;. That should work in all other popular browsers, although with some minor differences.
Good luck!
gracexl (02-13-2009)
Thanks for the great help!
I implemented on one of website perfectly, but was not able to on another website. Is there any PHP version requirement for it to work?
The one that works has higher/newer versions as below:
* Linux Kernel 2.6! Increased performance over the 2.4 kernel.
* JFS support! JFS is a journaling 64 bit file system that allows
for files greater than 4 GB in length and has superior performance
compared to XFS and ext2fs.
* Apache 2! Increased performance over the 1.3 apache.
* PHP 5!
* MySQL 5!
I actually resolved the issue. But there is another issue that I don't know how to fix. Here is the link: http://www.camptents.com/greatout.htm
Certain parts of the web page moved around. Our goal is to implement this online chat program without covering any texts and pictures on the website.
Thanks so much for your wonderful help! I can't imagine such generous help!
Grace
Here is the original working website. www.camptents.com. Any suggestion on how to seperate the moving icon with the body of website would be very much appreciated. We want the moving icon by visible to our customers at all time without covering any parts of our website.
Thanks in advance for your expertise,
Grace
That happens because of the star selector that targets everything on your page:
try removing that and adding this instead:Code:* { margin: 0; }
Good luck!Code:body, wrapper { margin: 0; }
gracexl (02-19-2009)
You are so wonderful! It works like a charm!!! Thank you!
Bookmarks