+ Reply to Thread
Page 1 of 2
1 2 LastLast
Results 1 to 10 of 13

Thread: using transparant backgrounds...

  1. #1
    Junior Member
    Join Date
    Dec 2007
    Location
    NL
    Posts
    13

    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


  2. #2
    sarcastic encouragement, brilliant! rossable's Avatar
    Join Date
    Oct 2007
    Location
    IN, USA
    Posts
    1,138
    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

  3. #3
    sarcastic encouragement, brilliant! rossable's Avatar
    Join Date
    Oct 2007
    Location
    IN, USA
    Posts
    1,138
    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.

  4. #4
    Junior Member
    Join Date
    Dec 2007
    Location
    NL
    Posts
    13
    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...

  5. #5
    Junior Member
    Join Date
    Dec 2007
    Location
    NL
    Posts
    13
    ah yeah, I tried that code, but the child elements also got transparant..

  6. #6
    sarcastic encouragement, brilliant! rossable's Avatar
    Join Date
    Oct 2007
    Location
    IN, USA
    Posts
    1,138
    so set their transparency to 100

    class {
    opacity 50...
    }

    class * {
    opacity 100...
    }

  7. #7
    Junior Member
    Join Date
    Dec 2007
    Location
    NL
    Posts
    13
    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 10:25 PM.

  8. #8
    sarcastic encouragement, brilliant! rossable's Avatar
    Join Date
    Oct 2007
    Location
    IN, USA
    Posts
    1,138
    -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

  9. #9
    Junior Member
    Join Date
    Dec 2007
    Posts
    1
    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

  10. #10
    Junior Member
    Join Date
    Dec 2007
    Location
    NL
    Posts
    13
    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

+ Reply to Thread
Page 1 of 2
1 2 LastLast

Similar Threads

  1. Free Vector Grunge Backgrounds
    By Graphic Design Links in forum Graphic Design Links
    Replies: 0
    Last Post: 22-04-2008, 12:20 PM
  2. Replace Backgrounds From Studio Portraits
    By Graphic Design Links in forum Graphic Design Links
    Replies: 0
    Last Post: 01-04-2008, 06:40 PM
  3. Replies: 5
    Last Post: 25-09-2007, 06:14 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts


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

Check the forum often for the latest design announcements. Everything from graphic design and web design, to films and music. Estetica is a great place for people to get together and help each other out.



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 | Vision.To Design | Leaflet Printing | Estetica Design Forum's Privacy Policy

Flyer Printing | Photography Blog | Design Forum Links | Logo Design | Graphic Design Social Network | Logo Design

Graphic Design Tutorials | Logo Designer | UK Logo Design Studio | Land for sale | Vector Art Blog | Leaflet Printing

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

Printing | Leaflet Printing | Online Backup | T-Shirt Printing | Personalised Mugs | Canvas Printing | Free Web Hosting Comparison Site