Gamingforce Interactive Forums
Day 4 - 21 days until Christmas

Go Back   Gamingforce Interactive Forums > Gamingforce Computing > Help Desk
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).


.jpg Gradient problem
Reply
 
LinkBack Thread Tools
Syklis Green


Member 2650

Level 7.34

Mar 2006


Reply With Quote
Old Mar 10, 2006, 09:58 PM Local time: Mar 11, 2006, 02:58 AM #1 (permalink) of 8
.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!
stillen


Member 165

Level 21.89

Mar 2006


Reply With Quote
Old Mar 10, 2006, 10:00 PM #2 (permalink) of 8
Out of interest, where is this gradient being used?
You should be able to accomplish a working effect with CSS.

Ich leb' allein in meinem Himmel,
In meinem Lieben, in meinem Lied!
Syklis Green


Member 2650

Level 7.34

Mar 2006


Reply With Quote
Old Mar 10, 2006, 10:00 PM Local time: Mar 11, 2006, 03:00 AM #3 (permalink) of 8
It's being used on my site updates page, and it gets pretty long. =(
Indigo 1


Member 207

Level 22.32

Mar 2006


Reply With Quote
Old Mar 10, 2006, 10:01 PM Local time: Mar 10, 2006, 09:01 PM #4 (permalink) of 8
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.



Something


Member 29

Level 13.21

Mar 2006


Reply With Quote
Old Mar 10, 2006, 10:03 PM Local time: Mar 10, 2006, 07:03 PM #5 (permalink) of 8
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.


Need help using an FTP client? Look no further! лл
Syklis Green


Member 2650

Level 7.34

Mar 2006


Reply With Quote
Old Mar 10, 2006, 10:18 PM Local time: Mar 11, 2006, 03:18 AM #6 (permalink) of 8
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.
Attached Images
File Type: jpg bg_grad.jpg (25.8 KB, 15 views)
Something


Member 29

Level 13.21

Mar 2006


Reply With Quote
Old Mar 10, 2006, 10:25 PM Local time: Mar 10, 2006, 07:25 PM #7 (permalink) of 8
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; }
Of course, alter the url() as appropriate (to account for image directories and such). If you want to inject it directly into that page, you can do this by one of two means.

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>
Or the Second Method:
Alter your <body> tag to reflect this:
Code:
<body style="background: #b7bae6 url(bg_grad.jpg) bottom left repeat-x;">
I advise you use the first method, if not opting for an external stylesheet outright.


Need help using an FTP client? Look no further! лл

Last edited by Duminas : Mar 10, 2006 at 10:31 PM.
Syklis Green


Member 2650

Level 7.34

Mar 2006


Reply With Quote
Old Mar 10, 2006, 10:28 PM Local time: Mar 11, 2006, 03:28 AM #8 (permalink) of 8
Genius!

Thanks so much for that Duminas! And thanks for everyone elses suggestions! I owe you one!
Reply


Thread Tools

Gamingforce Interactive Forums > Gamingforce Computing > Help Desk > .jpg Gradient problem

Forum Jump

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



All times are GMT -5. The time now is 04:29 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0