Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 2 of 2
  1. #1
    Junior Member
    Join Date
    Jun 2012
    Posts
    1
    Member #
    31918
    Hey guys and gals! I'm really new to css and html but I was able to design my webpage and it looks fine in firefox and chrome. I've been trying to fix the bugs in IE. For some reason the opacity attribute still doesn't seem to work, even after I've given the container a "haslayout" as well as defined a width / position.

    Here is the code for the opaque item (it is nested inside a table as you can tell from the child selectors):
    ----------------------------------------------------
    #synopsiscontent {position:absolute; left:24%; top:200; z-index:70; height:200; width:50%; border:0px solid black; opacity:0.7; filter:alpha(opacity=70); /* For IE8 and earlier */}
    body > div > table > tbody > tr > td > div > div {background-color:#000000;}

    <div id="synopsiscontent">
    <table align="center">
    <tr>
    <td>
    <p align="center" id="statement"><br>For more information about <br>festival screenings, press materials, <br>and general inquiries please contact us at:
    </p>
    </td>
    </tr>
    <tr>
    <td>
    <p align="center" id="statement2">onsfilm@gmail.com
    </p>
    </td>
    </tr>
    </table>
    </div>

    -----------------------------------------------------

    I also am still having problems with the background image. I would love to have it be able to resize to fit the browser, as it does in firefox.

    Here is the code for the the background image (it is nested inside a table along with some other content elements):
    ----------------------------------------------------------
    <div>
    <table cellspacing="0" cellpadding="0">
    <tr>
    <td>
    <img id="masthead" src="masthead3.jpg"/>
    </td>
    </tr>
    </table>
    </div>

    body, html {margin:0; padding:0; height:100%; width:100%; background-color: #000000;color: #FFFFFF; font-family: "calibri", "Lucida Sans Unicode", verdana, sans-serif;}

    #masthead {position:fixed; left:0; top:0; z-index:1;}
    body > div > table > tbody > tr > td > img {height:100%; width: 100%}

    ---------------------------------------------------------------

    Is there something I'm missing? I can provide a link if that helps.Thanks all!

  2.  

  3. #2
    Unpaid WDF Intern TheGAME1264's Avatar
    Join Date
    Dec 2002
    Location
    Not from USA
    Posts
    14,485
    Member #
    425
    Liked
    2783 times
    Your approach is a bit off.

    Using the opacity filter means you'll affect both the background AND the text. What will work in IE6 and up (although 6 will need a hack) is to create a 1x1 pixel 70% opacity black PNG file and use THAT as the background. It's the safer approach, it's valid CSS, and it's the best option you have until all browsers get together and come up with a consensus on things such as this, border radiuses, gradients, etc.

    The one thing you'll need to keep in mind at all times is that all browsers suck on some level. They all mess things up from time to time. Sometimes it's them, sometimes it's us (well...most of the time it's us), sometimes it's a bit of both.
    If I've helped you out in any way, please pay it forward. My wife and I are walking for Autism Speaks. Please donate, and thanks.

    If someone helped you out, be sure to "Like" their post and/or help them in kind. The "Like" link is on the bottom right of each post, beside the "Share" link.

    My stuff (well, some of it): My bowling alley site | Canadian Postal Code Info (beta)


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 12:21 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com