|
|
|
|
|||||||
| Register | FAQ | GFWiki | Members List | Donate | Arcade | ChocoJournal | Mark Forums Read |
| Welcome to the Gamingforce Interactive Forums. |
|
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).
|
![]() |
|
|
LinkBack | 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! |
|
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. ![]() |
|
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. |
|
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;">
Last edited by Duminas : Mar 10, 2006 at 10:31 PM.
|
![]() |
| Thread Tools | |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| FLV to AVI/WMV problem | Minoko | Help Desk | 6 | Jun 12, 2008 08:58 AM |
| router problem (I think) | Inhert | Hardware and Networking Zone | 2 | May 27, 2007 06: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 08:41 AM |