Your Ad Here Your Ad Here
Results 1 to 9 of 9

Thread: <HTML> Random TABLE sizes?

  1. #1
    slim150's Avatar Poster
    Join Date
    Aug 2003
    Age
    34
    Posts
    452
    Is there an easy (non-manual way) to come up with an HTML table that has variable sized rows and columns.

    The point of this is I want to have a page on my website that is like a photo colloage.. but rather them all being the same boring size i want them to be different sizes and stuff.

    The page would expand as I get more pictures so it would be a pain to have to do manually.

    any suggestions?
    "Their most trivial action may mean volumes, or their most extraordinary conduct may depend upon a hairpin or a pair of curling-tongs" - Holmes


  2. Internet, Programming and Graphics   -   #2
    SaveFerris's Avatar ŻŻŻŻŻŻŻŻŻŻŻŻ
    Join Date
    Oct 2006
    Location
    England
    Posts
    224
    You can just not set the size of the table, then it will stretch to whatever the size of the photo is.

    I think what you mean is a way to make the pictures random sizes as opposed to the table. Because changing the size of the table will not affect the pictures, the table will either stretch or cause the picture to be hidden behind one of the cells. Anyway it wouldn't be hard to achieve random image sizes using PHP, an example would be to get PHP to check the dimensions for an image, come up with a random number then make the images grow or shrink dependant of that particular random number (this way images stay with the same ratio so they look better). Then you could repeat the method for every image and each one would have a random size, this may cause the table to look fucked up if on the same row some images were very large and some very small.

  3. Internet, Programming and Graphics   -   #3
    slim150's Avatar Poster
    Join Date
    Aug 2003
    Age
    34
    Posts
    452
    interesting.. prehaps if i use a random number for one side and then scale it to the other.. thus keeping the proportions .... thanks!
    "Their most trivial action may mean volumes, or their most extraordinary conduct may depend upon a hairpin or a pair of curling-tongs" - Holmes


  4. Internet, Programming and Graphics   -   #4
    SaveFerris's Avatar ŻŻŻŻŻŻŻŻŻŻŻŻ
    Join Date
    Oct 2006
    Location
    England
    Posts
    224
    Quote Originally Posted by slim150 View Post
    interesting.. prehaps if i use a random number for one side and then scale it to the other.. thus keeping the proportions .... thanks!
    Indeed, that is what I meant.

  5. Internet, Programming and Graphics   -   #5
    slim150's Avatar Poster
    Join Date
    Aug 2003
    Age
    34
    Posts
    452
    altho i will probably just put it all in photoshop, resize it myself and export as one giant jpg. =D
    "Their most trivial action may mean volumes, or their most extraordinary conduct may depend upon a hairpin or a pair of curling-tongs" - Holmes


  6. Internet, Programming and Graphics   -   #6
    Barbarossa's Avatar mostly harmless
    Join Date
    Jun 2002
    Location
    Over here!
    Posts
    19,631
    ^ I don't like that idea.

    The more usual way is to have a "menu" page containing photo thumbnails, and then you click to see the full-sized photo.

    You could actually do that with a single huge image, by defining maps, but it's alot of work.

  7. Internet, Programming and Graphics   -   #7
    slim150's Avatar Poster
    Join Date
    Aug 2003
    Age
    34
    Posts
    452
    maps you say?
    "Their most trivial action may mean volumes, or their most extraordinary conduct may depend upon a hairpin or a pair of curling-tongs" - Holmes


  8. Internet, Programming and Graphics   -   #8
    Barbarossa's Avatar mostly harmless
    Join Date
    Jun 2002
    Location
    Over here!
    Posts
    19,631
    Code:
    <img src="images/bigimage.jpg" width="720" height="95" usemap="#mapname" border="0"><map name="mapname"><area shape="rect" coords="16,22,129,74" href="http://www.targetwebaddresshere.com" target="_blank"></map>

  9. Internet, Programming and Graphics   -   #9
    slim150's Avatar Poster
    Join Date
    Aug 2003
    Age
    34
    Posts
    452
    neat!!
    "Their most trivial action may mean volumes, or their most extraordinary conduct may depend upon a hairpin or a pair of curling-tongs" - Holmes


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
  •