Greenguy's Board

Greenguy's Board (http://www.greenguysboard.com/board/index.php)
-   Programming & Scripting (http://www.greenguysboard.com/board/forumdisplay.php?f=15)
-   -   Repeating an image as background (http://www.greenguysboard.com/board/showthread.php?t=39239)

Licker4U 2007-03-26 09:15 AM

Repeating an image as background
 
I want to use a small image for a background and I know how to make it repeat but I want to have a space between the images across the page and then have the same spacing vertically for as long as the page is. How do I do that?

Jim 2007-03-26 09:31 AM

There must be an easier way...or not. But, why not put a border around the image and then use that as your background?

Licker4U 2007-03-26 09:39 AM

It's a small image, 120x60 and I want to have the page filled up with the images but not touching each other. Maybe 5 or 6 across the page with the same spacing between them vertically. I don't think a border will help with that.

Trev 2007-03-26 02:15 PM

I believe Jim was saying, just make the image a little larger with a border the color that you want the background.

If there is a way to put padding on a background image via css, I've never heard of it.

Licker4U 2007-03-26 04:27 PM

Oh! It just hit me! You mean like a white border that gives me the spacing I want! Duhhhhhh |pokefun| Licker4U

Licker4U 2007-03-27 12:26 PM

Well, I'm stuck. If I'm using an image in

ponygirl 2007-03-27 12:36 PM

Quote:

Originally Posted by Licker4U (Post 339430)
Well, I'm stuck. If I'm using an image in
Licker, if you have an image editing program, try adjusting the paper/canvas size of the image which will put an outline around the image. You should be able to make the background whatever color you want. Then save the new image as your background image.

Licker4U 2007-03-27 01:34 PM

Quote:

Originally Posted by ponygirl (Post 339433)
Licker, if you have an image editing program, try adjusting the paper/canvas size of the image which will put an outline around the image. You should be able to make the background whatever color you want. Then save the new image as your background image.

I have IrfanView, I'll take a look and see if I can do something with that, thanks.

Trev 2007-03-27 03:23 PM

You can also make a new blank image the color you want the background and paste the old image into it. Either way should take less than a minute.

If you can't get it, just post a link to the image, the color you want the background/border, and how much blank space you want and I'll get it back to you. (I'll be here until 5-6pm then back later)

Surfn 2007-04-03 02:59 PM

Quote:

Originally Posted by Trev (Post 339461)
You can also make a new blank image the color you want the background and paste the old image into it. Either way should take less than a minute.

That's what I would do...

Licker4U 2007-04-03 04:21 PM

I finally got it with IrfanView. It has an option "Canvas Size" that lets you put in the amount of space around an image. Thanks to all for the suggestions. |bow|


All times are GMT -4. The time now is 04:30 AM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc