Graphic Design Forum and Web Design Forum  

Go Back   Graphic Design Forum and Web Design Forum »Web Design Forum »CSS Forum

Notices

CSS Forum Cascading Style Sheets (CSS) and XHTML Forum


Reply
 
LinkBack (1) Thread Tools Display Modes
  1 links from elsewhere to this Post. Click to view. #1 (permalink)  
Old 20-12-2007, 09:08 PM
Junior Member
 
Join Date: Dec 2007
Location: NL
Posts: 12
Default using transparant backgrounds...

Hi, I've designed a site in Photoshop and now I'm trying to export it into css+html + wordpress.

a screenshot can be found here: www.flowen.nl/flowen.png

Now my problem is getting the transparent grey backgrounds right... I've tried using a exported 3x3px transparent png, set it as background img and repeat it.. you can see what happened: Flowen
no transparency at all.. I wonder what the right solution is to tackle this problem.

thx for reading
Digg this Post!Add Post to del.icio.usBookmark Post in Technorati Share This Article & VoteReddit! Wong this Post!Stumble this Post!RSS Share on FacebookForum Netvibes Page
Reply With Quote
  #2 (permalink)  
Old 20-12-2007, 09:11 PM
rossable's Avatar
Stylish Member
 
Join Date: Oct 2007
Location: between earth and sky
Gender: Male
Posts: 700
Default

if there is no transparency then you are most likely viewing in IE6

png alpha support is still under development but IE7 at least shows it as transparent. though the colors do change from IE7 to Firefox.

i'm viewing it right now and it looks fine. (Firefox) update your IE browser or use .gif
__________________
http://justross.com/
Digg this Post!Add Post to del.icio.usBookmark Post in Technorati Share This Article & VoteReddit! Wong this Post!Stumble this Post!RSS Share on FacebookForum Netvibes Page
Reply With Quote
  #3 (permalink)  
Old 20-12-2007, 09:15 PM
rossable's Avatar
Stylish Member
 
Join Date: Oct 2007
Location: between earth and sky
Gender: Male
Posts: 700
Default

oh! wait... it's not displaying correctly.

to get that effect use CSS

filter: alpha(opacity=55);
opacity: .55;

the web still hates alpha layer png's. sorry mate.
__________________
http://justross.com/
Digg this Post!Add Post to del.icio.usBookmark Post in Technorati Share This Article & VoteReddit! Wong this Post!Stumble this Post!RSS Share on FacebookForum Netvibes Page
Reply With Quote
  #4 (permalink)  
Old 20-12-2007, 09:15 PM
Junior Member
 
Join Date: Dec 2007
Location: NL
Posts: 12
Default

that's strange.. because I'm also looking at it in Firefox, but the grey bg isn't transparent at all. I'm on a mac and (sadly) don't have acces to IE...
Digg this Post!Add Post to del.icio.usBookmark Post in Technorati Share This Article & VoteReddit! Wong this Post!Stumble this Post!RSS Share on FacebookForum Netvibes Page
Reply With Quote
  #5 (permalink)  
Old 20-12-2007, 09:16 PM
Junior Member
 
Join Date: Dec 2007
Location: NL
Posts: 12
Default

ah yeah, I tried that code, but the child elements also got transparant..
Digg this Post!Add Post to del.icio.usBookmark Post in Technorati Share This Article & VoteReddit! Wong this Post!Stumble this Post!RSS Share on FacebookForum Netvibes Page
Reply With Quote
  #6 (permalink)  
Old 20-12-2007, 09:16 PM
rossable's Avatar
Stylish Member
 
Join Date: Oct 2007
Location: between earth and sky
Gender: Male
Posts: 700
Default

so set their transparency to 100

class {
opacity 50...
}

class * {
opacity 100...
}
__________________
http://justross.com/
Digg this Post!Add Post to del.icio.usBookmark Post in Technorati Share This Article & VoteReddit! Wong this Post!Stumble this Post!RSS Share on FacebookForum Netvibes Page
Reply With Quote
  #7 (permalink)  
Old 20-12-2007, 09:22 PM
Junior Member
 
Join Date: Dec 2007
Location: NL
Posts: 12
Default

I just added the code (from CSS Transparency Settings for All*Browsers - CSS-Tricks) but the child don't seem to get a opacity of 100... hmmm

edit: on the bottom the comments say the same thing.. guess there is some more code needed. the last guy comments this:

You can’t use nested div since it inherits parents opacity level as his 1.0-opacity. You should use the same level foreground div, absolutely positioned over transucent background div, with higher z-index.

now only need to figure out what the code should be :o

Last edited by lowen.f; 20-12-2007 at 09:25 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in Technorati Share This Article & VoteReddit! Wong this Post!Stumble this Post!RSS Share on FacebookForum Netvibes Page
Reply With Quote
  #8 (permalink)  
Old 20-12-2007, 09:25 PM
rossable's Avatar
Stylish Member
 
Join Date: Oct 2007
Location: between earth and sky
Gender: Male
Posts: 700
Default

Quote:
-moz-opacity:0.5;
-khtml-opacity: 0.5;
depreciated.

remove those lines and it should work fine. IE may not display the transparency but you really don't need the effect. it's just eye-candy. should work fine in Mozilla, Opera, etc. just not IE
__________________
http://justross.com/
Digg this Post!Add Post to del.icio.usBookmark Post in Technorati Share This Article & VoteReddit! Wong this Post!Stumble this Post!RSS Share on FacebookForum Netvibes Page
Reply With Quote
  #9 (permalink)  
Old 20-12-2007, 09:28 PM
Junior Member
 
Join Date: Dec 2007
Posts: 1
Default

Child elements (unfortunately) cannot be any less transparent than their parent elements. You may need to force the content into that area with some kind of CSS positioning so it doesn't inherit that transparency:

Non-Transparent Elements Inside Transparent*Elements - CSS-Tricks
Digg this Post!Add Post to del.icio.usBookmark Post in Technorati Share This Article & VoteReddit! Wong this Post!Stumble this Post!RSS Share on FacebookForum Netvibes Page
Reply With Quote
  #10 (permalink)  
Old 20-12-2007, 10:15 PM
Junior Member
 
Join Date: Dec 2007
Location: NL
Posts: 12
Default

Hey guys.. thx for the possible solutions.. I will have to try to avoid it being a child element.. though that will be hard, cause it's a blog and will have to find a way to get the transparent background grow with the (variable) content, while not being a parent div...

Quote:
Originally Posted by rossable View Post
it's just eye-candy
Well, in this case I want the grey transparency because the top of the content has a black background and the bottom has the white/blue'ish gradient. This of course means I can't use black or white as text color because it will be unreadable with the same background.. so my solution was using a transparent block, cause I also didn't want it to cover the background graphic. edit: so wait a sec.. it IS for eye-candy :P
__________________
we're our own worst critics. - rossable
Digg this Post!Add Post to del.icio.usBookmark Post in Technorati Share This Article & VoteReddit! Wong this Post!Stumble this Post!RSS Share on FacebookForum Netvibes Page
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Free Vector Grunge Backgrounds Graphic Design Links Graphic Design Links 0 22-04-2008 12:20 PM
Replace Backgrounds From Studio Portraits Graphic Design Links Graphic Design Links 0 01-04-2008 06:40 PM
Clipping Path, Photoshop Masking, Removing Backgrounds from your Pictures! ritchelclips Advertising Forum 5 25-09-2007 06:14 AM


All times are GMT. The time now is 12:26 AM.



Estetica Design Forum's Privacy Policy
Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC5