Web Hosting Talk







View Full Version : the safe for web transperant


albc15
08-22-2004, 06:19 PM
i need help with my .psd. i try savin it for transperant... which one should i used and what is fithered.... i'm tryin to use a gradient effect background, so make a background image, now i want to save it transperant.

the_pm
08-22-2004, 06:23 PM
Are you talking about partial transparency that allows background images to show through your gradient? I think that can only be achieved using PNG files, and it won't work in IE.

For transparency in general, you'll probably be dafest saving your images as gifs. I don't believe there is a dithering option with gifs, just jpegs, but I might be wrong.

albc15
08-22-2004, 06:35 PM
uhh, can i contact you through messenger

albc15
08-22-2004, 06:40 PM
when i save it as gif, the transperant part is at png... and the other images are .gif and i see rectangles that aren't transperant on the .png transperants

the_pm
08-22-2004, 06:43 PM
Can you post an example of the image in question? It doesn't make any sense for an image to export half in one format, half in another, unless you're batch exporting slices, or something equally dangerous like that!

Christina
08-22-2004, 06:48 PM
You won't be able to achieve transparency with .gif and it will sure look lousy in its compressed state. PNG's of course won't work in IE....your best bet to keep the gradients intact would be to use a jpg compression . If you don't need transparency, then don't use it. Hmm..

albc15
08-22-2004, 06:58 PM
but when i save the layout with the gradien, it will be only for the layout. i tried saving it with the gradient and a background, but the color doesn't match

albc15
08-22-2004, 07:01 PM
and the transperant did work with my splash: http://designepic.com/

albc15
08-22-2004, 08:26 PM
heres what it looks like with the gif and png: http://designepic.com/error/designepic.html

xyzulu
08-22-2004, 11:16 PM
I think your signature is scaring off everyone from reading your replies....

Just my $0.02 :D

pdp
08-22-2004, 11:44 PM
I see no use for transparent images in that layout...

Side note: it would be in your best interest to completely avoid imageready generated code.

the_pm
08-22-2004, 11:51 PM
Ok, I'm looking at the source files you sent to me and the sample you posted. If I'm understanding you correctly, you simply want the gradient background to come up behind the images you've shown on the screen, right?

It seems all you need to do is export a 1px wide sliver of your gradient and set it as your page's background in CSS. The white parts will fill with the gradient.

Boy, ImageReady sure does make a lot of unnecessary markup :(

Christina
08-23-2004, 12:26 AM
Hmm...yup the sliver solution would make things easier and more efficient!

albc15
08-23-2004, 11:16 AM
?? i'm confused

Christina
08-23-2004, 02:04 PM
Well, basically you need to learn some HTML/CSS coding :D

By using the sliver, you can save on file size and repeat it as your background and expand it to the width of your site, which will look the way that you want it (with the gradient) with no distortion.

albc15
08-24-2004, 12:39 AM
i know html and css... but i've been lazy and i'm a little rusty cause i've been using dreamweaver... so can i contact you azn_chic?

Christina
08-24-2004, 12:52 AM
I'm not good at the coding stuff, if you need pointers, you should kindly ask the_pm :D

the_pm
08-24-2004, 01:02 AM
Albert, here's what you want to do. Go into your psd file with the gradient background. Then, crop a sliver of it, only 1 pixel wide and as high as the canvas. Save this little sliver into your site's images folder, or whever you have images stored. Let's pretend, for the sake of this example you named that sliver grad1.gif.

Now, go into your site's stylesheet, and add the following code:
body { background:url(images/grad1.gif) }
Just make sure you change the path to match your own.

But looking at the front page (coming soon), it appears you already know how to do this! So all you have to do is place that style code into an external document, name it whatever.css and link to it using <link rel="stylesheet" type="text/css" href="whatever.css"> in your page headers. Just remember to erase hte <style></style> tags when you've moved the info out.

stripeyteapot
08-24-2004, 02:18 AM
Amazes me how little research people do before asking someone the answer to their question.

www.w3schools.com - For everyone including those who already know every language off by heart :)

Pisces
08-26-2004, 12:47 PM
I recalled my past experience that when I used transparency in .png, IE in Windows platform will display ugly picture but IE in Macintosh displays well.