|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Repeating image webdesign?
What I am trying to do is have a repeating image when the window to the browser window is bigger than the image interface (1000 pixels.) If and when the browser is bigger than the interface it has a repeating effect its hard to describe but if you look at this image ill try to explain:
http://hstrial-tricityhomes.homeste...nterediting.jpg Look at the far right side where the dark green and light green merge with each other? I want that to keep repeating when the browser stretch’s bigger than the image. Thanks 4 reading. Any help would be great. |
|
#2
|
||||
|
||||
|
If you can split the area you want to repeat into a separate cell of a table, and you've got a background image that you want to repeat horizontally, you can probably just use CSS to get the background image to repeat, with "background-repeat: repeat-y;"
|
|
#3
|
|||
|
|||
|
Start your favorite editor. Preferably photoshop cs (or 7 will do
) Now click on the k button (the k button is your slice tool) Hide everything in the image that you do not want to be repeated, such as the buttons that you have on the image!Now you will make 2 slices (1 that will be on the right and one that will be on the left) you will need to judge based on your own ability to see percentage on your own. Make the image around 95% slice for the left side and 5% slice for the right, now press CTRL + ALT + Shift + S (This is save file for web) Choose GIF format, and now choose the images folder, now note this and be extremely careful, when you save a sliced image it will save a webpage and the images in an images folder so to fix this problem, you need to move one folder back from the images folder, and then choose gif only ok now that you have the images sliced its time to teach you how to create the repeating background. I will give this to you step by step as if i was doing this. Open up your favorite editor (I used dreamweaver mx 2004) create a new html document. Now create new table make this table 100% width. Now create a cell in that table (make sure to over size it a little bit, and insert your left side of the image) now create another cell, these will be side by side note now make that cells width to 100% (do not make the left sides cell 100% because that will mess up the vibes big time) ok, now that you have done that, lets create the css to repeat the image. You will need to do css similer to this <style type="text/css" media="screen"> .repeat { background-image: url(path/to/right/side/slice.gif); background-repeat: repeat-x; } </style> ok you see the background-repeat, we put repeat-x so that it doesnt repeat vertically only horizontally this creates a neater effect. Your end result should be something like this PHP Code:
You can also move the class to the table which will repeat the background across the table so no matter how many cells you put in, it will still have that repeating background. Simplified this is all you really need: PHP Code:
|
|
#4
|
|||
|
|||
|
Hrmmmmmm. Okay. What do you mean by "left side" and "right side"?
![]() |
|
#5
|
|||
|
|||
|
??
I just mean i want it to repeat the fuzzness on the right side. I dont want to have the top nav bar center or anything.... What would be the easyest method and would work in the most browsers? |
|
#6
|
|||
|
|||
|
Do exactly as the tutorial says, thats all it does is repeat the fuzzies, if you would follow directions you would learn.
More clarifiable, look at .repeat, thats the css to repeat your "fuzzies" |
![]() |
| Viewing: Dev Shed Forums > Web Design > Web Design Help > Repeating image webdesign? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|