|
||
|
|
|||||||
| Welcome to the Exploding Garrmondo Weiner Interactive Swiss Army Penis. |
|
GFF is a community of gaming and music enthusiasts. We have a team of dedicated moderators, constant member-organized activities, and plenty of custom features, including our unique journal system. If this is your first visit, be sure to check out the FAQ or our GFWiki. You will have to register before you can post. Membership is completely free (and gets rid of the pesky advertisement unit underneath this message).
|
![]() |
|
|
Thread Tools |
.jpg Gradient problem
Hi!
I've just made a 12 x 1200 gradient .jpg for my site. Problem is when the page gets large enough the gradient just starts from the top again. Is there any way I can code the page to just keep stretching the image? I'm using Dreamweaver 8. Thanks! Jam it back in, in the dark. |
Out of interest, where is this gradient being used?
You should be able to accomplish a working effect with CSS. There's nowhere I can't reach. |
It's being used on my site updates page, and it gets pretty long. =(
This thing is sticky, and I don't like it. I don't appreciate it. |
Make the image a background, have it not repeat, and make the background color correspond to the last bit of color on the gradient. It won't stretch the gradient, but it won't look like shit either.
Then you could just make the gradient very large. Though that's not recommended. I am a dolphin, do you want me on your body? ![]() |
Setting the background to "repeat-y" by means of CSS should take care of this for you. However, I also advise you to attach the background to the left or right edges of the browser, so that if someone (probably rare) comes along with 1280x1024 or up, it will not look iffy for them. Also, follow what Stealth mentioned above about the colours matching on one edge--the edge you'd want to do this to is the edge to which the background is not attached.
To do this, open the Design panel, then add a new CSS style by your best means (a little "+" icon on the CSS tab should allow this). Apply the style to the body tag (in a new stylesheet or inline, it does not matter), and when that comes up, set the background as appropriate. You may want to remove styling from the <body> HTML before you do this, though. Right-click, Page Properties, then clear the background and that should be taken care of. I do not have Dreamweaver available right now, so I cannot help much further aside from giving you raw CSS code. If you cannot get this done by means of the GUI and want the code, let me know. I was speaking idiomatically. |
I am using 1280 x 1024, hehe! ^^;
My gradient image is attached. I've tried the repeat stuff before but it just looks all messy no matter what i do with it. What kind of toxic man-thing is happening now? |
You use it vertically like that? Then switch "repeat-y" from above to "repeat-x", and switch the attachment I talk about earlier to either top or bottom.
CSS would be like this: Code:
body { background: #b7bae6 url(bg_grad.jpg) bottom left repeat-x; }
Ignore the below, as you seem to have already gotten it taken care of. I just added this in case you needed it. ![]() First Method: Add the below code between your <head> and </head> tags: Code:
<style type="text/css">
body { background: #b7bae6 url(bg_grad.jpg) bottom left repeat-x; }
</style>
Alter your <body> tag to reflect this: Code:
<body style="background: #b7bae6 url(bg_grad.jpg) bottom left repeat-x;"> FELIPE NO
Last edited by Duminas; Mar 10, 2006 at 10:31 PM.
|
Genius!
Thanks so much for that Duminas! And thanks for everyone elses suggestions! I owe you one! ![]() What, you don't want my bikini-clad body? |
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| FLV to AVI/WMV problem | Minoko | Help Desk | 6 | Jun 12, 2008 07:58 AM |
| router problem (I think) | Inhert | Help Desk | 2 | May 27, 2007 05:10 PM |
| Problem with video playback =\ | Mimi-kun | Help Desk | 3 | Dec 23, 2006 04:15 PM |
| car problem | Bredow | General Discussion | 6 | Jun 29, 2006 07:41 AM |