Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 7 of 7

Thread: tile a gif

  1. #1
    New to the CF scene
    Join Date
    May 2007
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    tile a gif

    Is there a way to tile a GIF, 12 by 12 of the same image, and then have them "individually" linked?

  • #2
    Regular Coder
    Join Date
    Dec 2006
    Posts
    166
    Thanks
    9
    Thanked 4 Times in 4 Posts
    Errr yes? There are a few ways. The easiest would be to place them in a table 12x12 either hard-coding or through a loop within a loop + an array containing the links using JS or PHP or another web-programming language.

  • #3
    New to the CF scene
    Join Date
    May 2007
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts
    i'm trying to avoid tables. I have a div setup with css that constrains the width/height of a container, but it's pretty sloppy. and I don't know how get each image linked in this fashion.

  • #4
    Regular Coder
    Join Date
    Dec 2006
    Posts
    166
    Thanks
    9
    Thanked 4 Times in 4 Posts
    What do you mean you can't get each image linked seperately? Couldn't you just do something like...
    <a href="http://google.com"><img src="01.jpg" alt="" /></a><a href="http://yahoo.com"><img src="02.jpg" alt="" /></a>

    Another method would be to graphically combine the images then use a imagemap

  • #5
    New to the CF scene
    Join Date
    May 2007
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I'm just asking if there is a CSS way to go about this. I know a script can loop through what I want to do in a few seconds, however, I don't know javascript or PHP. There will be nearly 1000 of these GIFs on the page, all linked to the same page, but carrying seperate identifiers, and it'd take hours to do everything manually.

  • #6
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    Unfortunately CSS doesn't have these capabilities so you are out of luck there. CSS will help you position them but you will either have to do it manually or learn how to do it some other way. If you don't mind me asking what is your reasoning for this? What exactly are you trying to do? And why 1000 images? A little excessive don't you think?
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #7
    Regular Coder
    Join Date
    Dec 2006
    Posts
    166
    Thanks
    9
    Thanked 4 Times in 4 Posts
    Quote Originally Posted by _Aerospace_Eng_ View Post
    Unfortunately CSS doesn't have these capabilities so you are out of luck there. CSS will help you position them but you will either have to do it manually or learn how to do it some other way. If you don't mind me asking what is your reasoning for this? What exactly are you trying to do? And why 1000 images? A little excessive don't you think?
    Truthfully, I was wondering the same thing. Why do you need this grid of images? Anyways, unless your links have some type of arithmetic pattern or any type of pattern, I would say you're out of luck and you'd have to do this manually.


  •  

    Posting Permissions

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