Film, Media & TV4 mins ago
spacer trick (html)
3 Answers
I'm helping a friend with her blog but I'm afraid I don't know very much about (x)html myself. I've attempted something and it looks very neat on Firefox even if I do say so myself, but I'm aware that pages can look very differently on different browsers and with different screen resolutions and so on and so forth, so I'm hoping for some reassurement from you guys that I have performed this trick correctly:
Prerequisites: I've used what was originally a 1 pixel square transparent gif for a spacer between other images in order to distribute these other images to a specific length. Example: Say I have 5 images and they are all 100 pixels wide. That makes my horisontal row of images 500 pixels wide, right. But say I want that row to be 580 pixels wide instead. What I've done is I've used the transparent spacer gif in the in-betweens, i.e. four times, and I've set its width to 20 pixels in my html code snippet. And hey presto the row is now 580 pixels wide and looks perfect to me.
What I'm wondering is this: Is ^^that the correct way to use the transparent spacer gif, or should I have resized it to 20 pixels width instead of just *displaying* it as such, in my code? Or doesn't it matter one way or the other? Not that it would make a difference in this particular case but just generally will the page load faster if you preserve the original image teeny-tiny and just display it as bigger?
Prerequisites: I've used what was originally a 1 pixel square transparent gif for a spacer between other images in order to distribute these other images to a specific length. Example: Say I have 5 images and they are all 100 pixels wide. That makes my horisontal row of images 500 pixels wide, right. But say I want that row to be 580 pixels wide instead. What I've done is I've used the transparent spacer gif in the in-betweens, i.e. four times, and I've set its width to 20 pixels in my html code snippet. And hey presto the row is now 580 pixels wide and looks perfect to me.
What I'm wondering is this: Is ^^that the correct way to use the transparent spacer gif, or should I have resized it to 20 pixels width instead of just *displaying* it as such, in my code? Or doesn't it matter one way or the other? Not that it would make a difference in this particular case but just generally will the page load faster if you preserve the original image teeny-tiny and just display it as bigger?
Answers
Best Answer
No best answer has yet been selected by swedeheart. Once a best answer has been selected, it will be shown here.
For more on marking an answer as the "Best Answer", please visit our FAQ.Related Questions
Sorry, we can't find any related questions. Try using the search bar at the top of the page to search for some keywords, or choose a topic and submit your own question.