Graphic Design Forum and Web Design Forum

Compare Web Hosting


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: 13
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 PageTwit this!
Reply With Quote

  #2 (permalink)  
Old 20-12-2007, 09:11 PM
rossable's Avatar
sarcastic encouragement, brilliant!
 
Join Date: Oct 2007
Location: IN, USA
Gender: Male
Posts: 1,123
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 PageTwit this!
Reply With Quote
  #3 (permalink)  
Old 20-12-2007, 09:15 PM
rossable's Avatar
sarcastic encouragement, brilliant!
 
Join Date: Oct 2007
Location: IN, USA
Gender: Male
Posts: 1,123
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 PageTwit this!
Reply With Quote
  #4 (permalink)  
Old 20-12-2007, 09:15 PM
Junior Member
 
Join Date: Dec 2007
Location: NL
Posts: 13
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 PageTwit this!
Reply With Quote
  #5 (permalink)  
Old 20-12-2007, 09:16 PM
Junior Member
 
Join Date: Dec 2007
Location: NL
Posts: 13
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 PageTwit this!
Reply With Quote
  #6 (permalink)  
Old 20-12-2007, 09:16 PM
rossable's Avatar
sarcastic encouragement, brilliant!
 
Join Date: Oct 2007
Location: IN, USA
Gender: Male
Posts: 1,123
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 PageTwit this!
Reply With Quote
  #7 (permalink)  
Old 20-12-2007, 09:22 PM
Junior Member
 
Join Date: Dec 2007
Location: NL
Posts: 13
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 PageTwit this!
Reply With Quote
  #8 (permalink)  
Old 20-12-2007, 09:25 PM
rossable's Avatar
sarcastic encouragement, brilliant!
 
Join Date: Oct 2007
Location: IN, USA
Gender: Male
Posts: 1,123
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 PageTwit this!
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 PageTwit this!
Reply With Quote
  #10 (permalink)  
Old 20-12-2007, 10:15 PM
Junior Member
 
Join Date: Dec 2007
Location: NL
Posts: 13
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 PageTwit this!
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



The Graphics Forum Web Design Stuff Free Decent Downloads Free Quality Wallpapers Graphics Forum
Free Vista Themes Creativecurio - Design Blog Graphic Design Advertising Graphic Design Advertising
The Top The Best Images Heavenly Glimpses Photography Tech Talk 247 Logo Design - $149 Affordable Stock Vector Illustrations
Free Design Portfolios

Create your own custom 2010 Calendars

Web Hosting - UK Web Hosting services for business or personal website hosting needs.

Dedicated Servers - A full range of Managed Dedicated Server solutions suitable for all your requirements.

Graphic Design Blog | Web Design Forum | Graphic Design and Print Forum | Graphic Design Links | Advertise On This Site

Web Design UK | Design by Miner Skinz.com | Logo Design UK | Art Schools Online | Pressure Seal Printing | Vision.To Design

Colour Print | Graphic Design UK | Logo Design | Photography Blog | Brochure Design UK | Design Forum Links | Logo Design

Graphic Design Schools Online | Integrated Cards | Integrated Labels | Graphic Design | Logo Design | Graphic Design Social Network

Logo Design | Integrated Cards & Labels | Graphic Design Tutorials | Logo Designer | UK Logo Design Studio

Colour Printers, Web Design and Logo Design UK | Business Cards | Accident and Injury Claims Rotherham UK | Logo Design Blog

Funfair Hire, Carousel Hire, Carnival Hire in the UK | Web Designer Rotherham, Yorkshire, UK | Damp Proofing & Plastering, Dartford, Kent

Damp Proofing, Refurbishment & Plastering, London | Wedding Photography London, Wedding Photographer, Kent

Free Dating in Sheffield | Free Dating in Sheffield and Yorkshire Forum | Motorhome Rental and RV Hire Scotland | Vector Art Blog

Free Web Hosting | Custom Logo Design - $149 Only | Affordable Print Design Templates | Small Business Logo Design | Company Logo Design

Logo Design Service | Logo Design Firm | Logo Design Reseller | Custom Logo Design | Letterhead Printing | Flyer Printing | Business Card Printing

All times are GMT. The time now is 06:17 AM.


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