Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: float an program icon on the website

  1. #1
    Join Date
    Feb 2009
    Posts
    26
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default float an program icon on the website

    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

  2. #2
    Join Date
    Oct 2008
    Location
    Sweden
    Posts
    2,023
    Thanks
    17
    Thanked 319 Times in 318 Posts
    Blog Entries
    3

    Default

    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!

  3. #3
    Join Date
    Feb 2009
    Posts
    26
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default

    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.

  4. #4
    Join Date
    Oct 2008
    Location
    Sweden
    Posts
    2,023
    Thanks
    17
    Thanked 319 Times in 318 Posts
    Blog Entries
    3

    Default

    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 use position:fixed;. That should work in all other popular browsers, although with some minor differences.

    Good luck!

  5. The Following User Says Thank You to Snookerman For This Useful Post:

    gracexl (02-13-2009)

  6. #5
    Join Date
    Feb 2009
    Posts
    26
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default

    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!

  7. #6
    Join Date
    Oct 2008
    Location
    Sweden
    Posts
    2,023
    Thanks
    17
    Thanked 319 Times in 318 Posts
    Blog Entries
    3

    Default

    Quote Originally Posted by gracexl View Post
    Is there any PHP version requirement for it to work?
    No, this is just HTML and CSS. You must have missed something. Please post a link to the site and I'll take a look.

  8. #7
    Join Date
    Feb 2009
    Posts
    26
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default

    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

  9. #8
    Join Date
    Feb 2009
    Posts
    26
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default

    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

  10. #9
    Join Date
    Oct 2008
    Location
    Sweden
    Posts
    2,023
    Thanks
    17
    Thanked 319 Times in 318 Posts
    Blog Entries
    3

    Default

    That happens because of the star selector that targets everything on your page:
    Code:
    * {
    	margin: 0;
    }
    try removing that and adding this instead:
    Code:
    body, wrapper {
    	margin: 0;
    }
    Good luck!

  11. The Following User Says Thank You to Snookerman For This Useful Post:

    gracexl (02-19-2009)

  12. #10
    Join Date
    Feb 2009
    Posts
    26
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default

    You are so wonderful! It works like a charm!!! Thank you!

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •