This is a discussion on "Png not working" within the Graphics and 3D section. This forum, and the thread "Png not working are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
Png not working
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
Png not working
I'm trying to do a shadow around the main wrap of my webpage:
www.crewsfx.com/greenginger I use a Mac and it's fine on that, but on PC it doesn't work - it just goes grey or blue. I exported the shadow as a PNG from within Flash, then I opened it in Photoshop and saved it as a PNG, still no luck. What do you have to do? I need it as a PNG so that the texture background shows through too. Can you use gifs or something, or what? Thanks. |
|
|
|
#2
|
|||
|
|||
|
Re: Png not working
It is not a PC problem it is a Internet Explorer problem;
http://www.alistapart.com/articles/pngopacity/ http://homepage.ntlworld.com/bobosola/ It looks good in FF |
|
#3
|
|||
|
|||
|
Re: Png not working
|
|
#4
|
|||
|
|||
|
Re: Png not working
The wrapper or container background is a gif file
http://www.tokyocube.com/img/bg/bg_page_shading.gif |
|
#5
|
|||
|
|||
|
Re: Png not working
thanks. how stupid of me not to think of that. However, this must mean he's made a gif that is wide enough to exceed the width of all browsers. is that correct?
Actually, i'm having problems with exactly how this achieved. Do you set the image as the background for the body? I've tried this and it doesn't centre. I've made an image that is 1500 px wide, has nothing in the centre 750px and has the line texture around the edge. But it doesn't work right. It doesn't go centred and it doesn't tile how i expected. Last edited by timmytots; May 9th, 2006 at 17:59. |
|
#6
|
|||
|
|||
|
Re: Png not working
You could do it with three same-width images from the same file;
Split out the header and place it at the top of the page. The footer at the bottom. Then make a vertically repeating 1 px high image the page background. Centre the lot, so they appear as one, and away u go. The repeating 1px image will save on your page's size as well. |
|
#7
|
|||
|
|||
|
Re: Png not working
I don't think u understand the predicament but...
I found this code: background: #F2F2F2 url("../img/bg/bg_page_shading.gif") repeat-y top center; text-align: center; That obviously is the code for the body in the css, but i've done that for mine with no luck. What is the background image supposed to be? Size etc. Mine doesn't centre, it goes off to left. cheers |
|
#8
|
|||
|
|||
|
Re: Png not working
body { text-align:center;font-family:Arial,Helvetica,sans-serif;font-size:76%;background:#f2f2f2 url('../img/bg/bg_page_shading.gif") repeat-y top center; }
Try this. It's one of mine, into which I have pasted yr .gif details. You can see which bits you may need to play with to suit your particular page. Re the shade around the frame, I use an 'outer glow' on the frame ('wrap') layer and change the colour to grey (dark as you need and adjust the opacity). Change the layer style to 'normal'. This will give you a shadowy effect all around your page frame. I do this all in one file and then carve it up into three separate images (as above) and insert separate coding for each into the new page. Last edited by Legacy_Staff; May 9th, 2006 at 22:17. |
|
#9
|
|||
|
|||
|
Re: Png not working
Something else just occurred to me.
You will probably need to use jpg format. The gradient used in a glow/shadow effect would appear too blocky/stripey if you use gif. |
|
#10
|
|||
|
|||
|
Re: Png not working
You could just use this
http://homepage.ntlworld.com/bobosola/pnghowto.htm |
|
#11
|
|||
|
|||
|
Re: Png not working
Script to correct transparency in IE:
|
|
#12
|
||||
|
||||
|
Re: Png not working
Quote:
__________________
Click the 'Thanks!' button if this post has helped you Rob - Webforumz Founder
Last Blog Entry: Creative Labs threaten developer over home made drivers.... (Apr 1st, 2008)
|
![]() |
| Tags |
| png, working |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| CSS not working in IE? | Jgag | Web Page Design | 2 | Jun 5th, 2008 11:14 |
| PNG - IE not working | Phixon | Web Page Design | 3 | Nov 30th, 2007 13:47 |
| php not working? | gsquare567 | PHP Forum | 10 | Apr 24th, 2007 18:52 |
| PHP not working | toolmania1 | PHP Forum | 1 | Nov 1st, 2006 05:57 |