IE7 & CSS Opacity

I'm curious if any experts out there have had any experience
with this. I have tried using the following in my CSS document:
opacity:.4; //For Everything Else
filter:alpha(opacity=40); //I thought this would do the trick
for IE
And despite that code only Safari, Firefox and every other
browser will display the opacity, but not IE 7. I could care less
about IE 6 because the site I have doesn't get enough hits from IE6
for it to be a concern. And this problem also appears to happen in
IE 8, but I assume there is something in common with the two IEs
that are causing this issue.
If anyone has any ideas that would be great because I am
pretty much out of them with this issue:
http://www.exitplaystation.com/ps3/warhawk/index.php
- This is the site. Even the Spry widgets have the same issue, but
the menu is the most obvious.
http://www.exitplaystation.com/ps3/warhawk/css/exitps_warhawk.css
- This is the CSS document. #menu_bg is the menu container that
expands the width of the screen and is the source of the main
issue.

"SnakEyez02" <[email protected]> wrote in
message
news:ga1fvf$pvv$[email protected]..
> I'm curious if any experts out there have had any
experience with this. I
> have
> tried using the following in my CSS document:
>
> opacity:.4; //For Everything Else
> filter:alpha(opacity=40); //I thought this would do the
trick for IE
>
> And despite that code only Safari, Firefox and every
other browser will
> display the opacity, but not IE 7. I could care less
about IE 6 because
> the
> site I have doesn't get enough hits from IE6 for it to
be a concern. And
> this
> problem also appears to happen in IE 8, but I assume
there is something in
> common with the two IEs that are causing this issue.
>
> If anyone has any ideas that would be great because I am
pretty much out
> of
> them with this issue:
>
>
http://www.exitplaystation.com/ps3/warhawk/index.php
- This is the site.
> Even
> the Spry widgets have the same issue, but the menu is
the most obvious.
>
>
http://www.exitplaystation.com/ps3/warhawk/css/exitps_warhawk.css
- This
> is
> the CSS document. #menu_bg is the menu container that
expands the width
> of the
> screen and is the source of the main issue.
For the filter to work in IE, you need to give the element a
layout (Google
"Ingo Chao hasLayout" for the best article on this).
So try this:
#menu_bg {width:100%;}
If for any reason this creates an issue with the layout and
you don't care
about CSS validation then go with a simple:
#menu_bg {zoom:1;}
Thierry
Articles and Tutorials:
http://www.TJKDesign.com/go/?0
http://developer.yahoo.com/
helps you build applications and mashups

Similar Messages

  • Css opacity options

    Hi there
    I just want to check I have the full list of css opacity options covered and in the best order?
    opacity:0.9;
      filter:alpha(opacity=90); /* For IE8 and earlier */
    -webkit- opacity: 0.90;
    -moz- opacity: 0.90;
    opacity: 0.90;
    -khtml-opacity: 0.9;
    Also how would I pump it up to 95%?
    Thanks

    Daniel Waddon wrote:
    could you tell me if there is a way to give mobile brawzers less or more opacity and keep pc's, laptops ect to another?
    You can use media queries to target smaller devices. You could probably also use jQuery to look for a specific type of browser (iOS / Android) but media queries are less code heavy and work for all mobile OS.
    @media only screen and (max-width: 600px) { /* set this to the size you want the opacity to change. */
         .transparent {
              opacity: 0.7;

  • CSS opacity statements seem to strip PNG opacity values. Any way to circumvent?

    I noticed it's apparently impossible to make a PNG (with
    various levels of
    opacity) semi-transparent via the usual channels, listed
    below :
    filter: progid:DXImageTransform.Microsoft.Alpha(opacity=75);
    opacity: 0.75;
    -moz-opacity: 0.75;
    This trio of CSS statements did a pretty good job of covering
    all the usual
    bases when it came to making an image partially transparent.
    However, as
    mentioned above, it seems to force all of the pixels in the
    PNG to be
    exactly *that* transparent (in this case, 75%).
    So if your PNG is a gradient that goes from 100% opaque to 0%
    gracefully,
    applying the above statements to it will cause it to appear
    to become
    opaque, as the alpha information is stripped and replaced
    with "75%" across
    the board.
    My question is... is there a way for me to make a PNG image
    -- one which has
    various levels of opacity in it (like a gradient going from
    opaque to
    transparent) -- semi-transparent while retaining the
    proportionate
    individual alpha levels of each pixel?
    In other words, if I want the PNG to be 75% opaque when shown
    in a specific
    situation (like a button that will become 100% opaque on
    hover/mouseover),
    while the more opaque pixels of the PNG remain more opaque
    than the more
    transparent ones.
    Is this at all do-able?

    "Michael Fesser" <[email protected]> wrote in message
    news:[email protected]...
    > .oO(Mike)
    >
    >>Good idea, although that would double the number of
    images.
    >
    > Not necessarily. You can keep multiple images in the
    same file and use
    > different CSS background positions to show them. Ian
    already suggested
    > it, here are actual examples of that technique:
    >
    >
    http://wellstyled.com/css-nopreload-rollovers.html
    >
    http://www.alistapart.com/articles/sprites/
    >
    > Micha
    Granted, but the amount of data being transfered is the same
    as if I'd
    doubled the number of images.
    All I'm looking to do, really, is have a PNG with a slight
    shadow effect
    (thus, various levels of opacity in the same image) display
    in a 90% opaque
    natural state, then switch to 100% opaque on mouseover.
    For example :
    a {
    filter:alpha(opacity=90);
    -moz-opacity:0.9;
    -khtml-opacity: 0.9;
    opacity: 0.9;
    a:hover {
    filter:alpha(opacity=100);
    -moz-opacity:1;
    -khtml-opacity: 1;
    opacity: 1;
    90% is just subtle enough to not make the image pale, but
    stil give you a
    "light up" effect on mouseover.
    In Firefox, no problem. CSS's 90% opacity attribute will make
    each pixel in
    the PNG *proportionately* more transparent (by 10%). In other
    words, opaque
    pixels become a bit transparent, while already-transparent
    pixels become
    even MORE transparent. So to the viewer, the entire image
    simply became a
    bit more transparent.
    But in IE -- even IE7 -- the behavior is completely
    different. IE will set
    ALL the pixels in the PNG (regardless of how transparent or
    opaque they are)
    to the value set by the attribute. In this case, all pixels
    become exactly
    90% opaque, equally, across the board, as if the PNG was a
    flat opaque
    document to begin with (which it wasn't... it had various
    levels of opacity
    within the same image).
    This means that you can't use PNG to do a traditional a:hover
    opacity
    effect, unless the PNG had no transparency in it to begin
    with (in which
    case you'd probably use JPG instead).
    I've scoured the web for a possible hack around this
    limitation, but not
    only did I not find one, I didn't find a single mention of
    this behavior in
    *any* of the PNG transparency primers, tutorials and blogs
    that I've found.
    If I could at least find someone who so much as NOTICED this
    problem before,
    I'd feel a little less crazy. :-)

  • IE7 CSS Scroll fix?

    Hi,
    I am having trouble fixing my CSS so that my primaryContent
    does not scroll in IE7. This page works fine in Firefox and IE6.
    http://67.199.64.241/test.asp
    I use 2 stylesheets which are attached. main2col.css is where
    I think I need some sort of hack. Help would be GREATLY
    appreciated.
    Cindy

    treehuggerinny posted in macromedia.dreamweaver
    > The CSS has been validated. I made a couple of small
    changes.
    >
    > The DTD may be wrong. I do get some errors in the html
    validation.
    Ref:
    http://67.199.64.241/test.asp
    If you don't have a good reason to use XHTML, use HTML 4.01
    Strict - or
    Transitional. Don't use XHTML to keep up with a fad or
    anything.
    File->Convert->(pick a doctype)
    You still need to provide valid HTML for the given DOCTYPE
    before even
    thinking about browser differences. Invalid code can send
    browsers into
    Quirks mode where they will render content in unpredictable
    ways.
    One simple example on that page is the use of the menu
    element, an old
    HTML 3.2 struct that was deprecated in HTML 4.0 (1998), and
    is obsolete
    in HTML 4.01 Strict (1999) and in any version of XHTML.
    You also have 18 open <li> tags and only 15 closing
    </li> tags. I have
    no idea how different browsers will deal with that.
    > Thanks for the links!
    Use them to help you create valid code.
    > Any thoughts on a hack to eliminate the scroll in IE7?
    I am not well versed in IE hacks. I find it easier to write
    code that
    works across all browsers. It doesn't make sense to me to try
    any hacks
    BEFORE fixing my code.
    Again, fix all the code before trying to deal with browser
    differences.
    You will likely find that once the code is valid, most
    browser
    differences disappear.
    Mark A. Boyd
    Keep-On-Learnin' :)

  • CSS opacity: background opaque, but content not..help

    Dear all,
    It's been a while but I have something I just can't figure out .. what I'm after...I want the background of the main container to be 60% opaque, but the actual content divs not ... can anybody help me with this
    Thanks
    #mainWrapper {
        width: 850;
        padding: 0px;
        position: absolute;
        top: 300px;
          width:850px;
      margin:0px;
      background-color:#ffffff;
      /* for IE */
      filter:alpha(opacity=60);
      /* CSS3 standard */
      opacity:0.6;
    #contentWrapper {
        width: 480px;
        padding-top: 0px;
        padding-left: 0px;
        font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
        font-size: 13px;
        display: block;
        margin-left: 210px;
        margin-right: 160px;
        background-color: #FFF;
          /* for IE */
      filter:alpha(opacity=100);
      /* CSS3 standard */
      opacity:1;

    I think I've got it
    but you did remove the opacity statements?
    I have now (hadn't before) & working [super!!]
    2 questions though...perhaps silly
    1.
    startColorstr='#88FFFF00', endColorstr='#88FFFF00'
    but I don't recognise these colours ie 2 letter too much?!!?? Could you please explain...
    2. is this way of doing it browser proof?
    thanks

  • IE7 CSS Problems

    http://crossmills.org/misc/CS3/cs3_test_2c.html
    The above page looks good in FireFox2 but a horror show in
    IE7: styling missing from header, footer and central column;
    central column alignment out of wack with relation to left nav and
    too close to footer.
    Is the problem mine or IE's? Either way, what do I have to do
    to fix it?
    Using WindowsXP.
    Thanks.

    The problem is with the way you are defining and naming your
    custom tags. Check out these 2 MSDN articles regarding how to give
    names to custom HTML tags:
    http://msdn.microsoft.com/msdnmag/issues/0500/cutting/
    http://msdn2.microsoft.com/en-us/library/ms531076.aspx

  • Using BrowserLab, comment conditional CSS [for ie7] on a local WordPress set up using MAMP

    Hiya,
    I have asked this on the BrowserLab forum but thought I'd ask here as well [you never know].
    Trying to fix some IE7 issues on my WordPress site within Dreamweaver CS5/MAMP, I can't get BrowserLab to show any changes I make to the CSS file for IE7.
    To test this MAMP set up and BrowserLab, I changed the body bg colour in the IE7 CSS file [to a turquoise like colour instead of gray] and it didn't render in BrowserLab - even after refreshing in BrowserLab [just got a white square].
    After restarting the Mac Pro, it did render correctly - turquoise! At least I now know the link to the IE7 CSS file works. I'd prefer to not have to restart after every CSS change so is there something I've overlooked to get BrowserLab to render in IE7 after I've edited the IE7 specific CSS file?
    Dreamweaver doesn't 'see' the IE7 CSS in the long list of CSS, PHP, JS and XML files in Live View but I can live with that.
    Thanks
    steve
    http://www.stevedrake.net

    Fixed [I think]. See: http://forums.adobe.com/message/3856510#3856510
    steve
    P.S. A sneaky PS; any ideas on how to get the side bar to the top of the page [level with left content] would be welcome - I've got it to sit on the right with a large left margin but it sits, vertically, after the left content but above the footer.

  • Opacity Options for CSS

    I was looking to make some semi opaque div's and was wondering if this can be done using CSS.  An example of what I am looking for can be viewed on my you tube page http://www.youtube.com/helpvid  As you will see the area that house my content has a 50% opacity making the background visible.  Can this be created in Dreamweaver?
    Stay Safe
    Mark

    There is a CSS property called opacity. However IE doesn't fully support it (it uses it's own proprietary Filter to get a similar effect.) On top of that, using opacity not only effects the element you apply it to, but also everything else within that element! So your text within the div with CSS opacity applied to it will also have the same transparency - which can be bad and effect legibility when it comes to text.
    See http://www.w3schools.com/Css/css_image_transparency.asp for more info and how to use it.
    Now with the slow development of CSS3 and a more advanced color models and that can be used by certain browsers, one can use RGBA to define colors and alpha transparency. So far I believe this only works for Safari but one can get some pretty neat effects without effecting the opacity of other elements within the parent element using RGBA.
    See http://www.css3.info/preview/rgba/ for information on this.
    Hope this helps.

  • Using BrowserLab, conditional CSS [for ie7] on a local WordPress set up using MAMP

    Hiya,
    A rare post on the Adobe forums though I'm a frequent reader.
    Sorry about the long title.
    Trying to fix some IE7 issues on my WordPress site within Dreamweaver CS5/MAMP, I can't get BrowserLab to show any changes I make to the CSS file for IE7.
    To test this MAMP set up and BrowserLab, I changed the body bg colour [to a turquoise like colour instead of grey] and it didn't render in BrowserLab - even after refreshing in BrowserLab.
    After restarting the Mac Pro, it did render correctly - turquoise! I'd prefer to not have to restart after every CSS change so is there something I've overlooked to get BrowserLab to render in IE7 after I've edited the IE7 specific CSS file [Dreamweaver doesn't 'see' the IE7 CSS in the long list of CSS, PHP, JS and XML files in Live View but I can live with that]?
    Thanks
    steve
    http://www.stevedrake.net

    Hi Amit,
    Thanks for the reply:
    The link is: <!--[if IE 7 ]> <link rel="stylesheet" href="<?php bloginfo('template_directory'); ?>/styleIE7.css" media="screen" type="text/css" /> <![endif]--> This folows the normal CSS link. I obtained the basic code for the link from the WordPress 'Conditional Comment CSS' codex page [http://codex.wordpress.org/Conditional_Comment_CSS].
    In DW/BrowserLab panel I'm using Local Network.
    The URL in BrowserLab begins with dreamweaver: if I use http, I see a 403 authentication message [never noticed that before!].
    However, I think it works. What I was doing wrong is not selecting Preview in the DW/BrowserLab panel: just hitting refresh within BrowserLab after any changes to the IE7 CSS file. I've just triple checked this by changing the body bg colour to yellow [it worked] then to pink [it worked] and now pale blue [it worked].
    This problem was me being dim; now to get things to work in IE7 [there's a part of me that says don't worry about IE7!].
    Thanks again Amit and Bruce.
    steve

  • IE7 issue with Thumbnails div & Overflow

    this has to do with layout of the the gallery page and an IE7
    CSS issue.
    I was playing with the Photo gallery demo and decided to
    resize the thumbnails div to get different shape and found an issue
    with IE7 and the overflow. if the tumbnail div height is set to say
    100px, and set overflow:auto; it makes sense that the thumbnails in
    the bottom 3 rows would not be visible unless you scrolled the div.
    well it works fine in Firefox but IE draws thumbnails right
    over the height boundry and on into the next div below. I thought
    IE7 was supposed to fix the CSS hacks needed.
    what is the hack to fix this?

    It could be a function of how the script is written and
    changes being
    made at the object-level. Rather than set position to
    relative, you
    might try using the proprietary Microsoft zoom property to
    give the
    naughty container layout.
    your-container {zoom: 1;}
    If that doesn't work, then you can resort to position:
    relative.
    Al Sparber - PVII
    http://www.projectseven.com
    Extending Dreamweaver - Nav Systems | Galleries | Widgets
    Authors: "42nd Street: Mastering the Art of CSS Design"

  • Help with CSS image Gallery

    Found this simple css image gallery. However I'm having trouble adjusting it do my needs. I ideally want to make each small image slightly bigger than currently and have 3 or 4 on each line. Also want to make the enlarged image bigger. The width would need to be around 550px.
    <style type="text/css">
    * This notice MUST stay intact for legal use.
    * This script was created for FREE CSS Menus.
    * Visit: www.freecssmenus.co.uk for more CSS.
    * Also visit our Free online menu creator.
    /* credits: www.freecssmenus.co.uk */
    #pg { width:390px;
    height:200px;
    border:2px dotted #666;
    padding:5px;
    padding-top:15px;
    #pg ul { list-style:none;
      padding:0;
      margin:0;
      width:180px;
      position:relative;
      float:left;
    #pg ul li { display:inline;
      width:52px;
      height:52px;
      float:left;
      margin:0 0 8px 8px;
    #pg ul li a { display:block;
      width:50px;
      height:50px;
      text-decoration:none;
      border:1px solid #000;
    #pg ul li a img { display:block;
      width:50px;
      height:50px;
      border:0;
    #pg ul li a:hover { white-space:normal;
      border-color:#336600;
    background-color:#AABB33;
    #pg ul li a:hover img { position:absolute;
      left:190px;
    top:0;
      width:auto;
      height:110px;
      border:1px solid #000;
    #pg ul li a span {display:none}
    #pg ul li a:hover span { display:block;
    position:absolute;
      left:5px;
      top:130px;
      width:350px;
      height:auto;
    font-size:12px;
    color:#999999;
    </style>
    html
    <div id="pg">
      <ul>
      <li>
    <a href="css_rollover_uk_map.php">
    <img src="upimage/ukmap345.jpg" alt="Css Rollover Map" />
    <span>
    <strong>
    CSS Map.</strong>
    CSS Image swap on rollover/hover. This simple display of CSS shows the versatility of Cascading Style Sheets. Remember this animation is 100% User Accessible.</span>
    </a>
    </li>
      <li>
    <a href="big_css_button.php">
    <img src="upimage/bigbutton1390.jpg" alt="Large Css Button" />
    <span>
    <strong>
    CSS Big Button.</strong>
    Css buttons can be as large and as extravagant as you like. Using one image you can create simple css buttons like this. This button is still a hyperlink not just an image.</span>
    </a>
    </li>
      <li>
    <a href="menu_opacity.php">
    <img src="upimage/003opacity639.jpg" alt="Css Opacity" />
    <span>
    <strong>
    CSS Opacity Menu.</strong>
      you can use styles to change the opacity of an image. This creates interesting effects when creating a menu. </span>
    </a>
    </li>
      <li>
    <a href="#">
    <img src="upimage/freemusic885.jpg" alt="Free Mp3 Downloads: Unborn Records" />
    <span>
    <strong>
    Unborn Records </strong>
    Download free mp3 music for your ipod or mp3 player. Download free music from unsigned artists</span>
    </a>
    </li>
      <li>
    <a href="#">
    <img src="upimage/trix363.jpg" alt="Visit Trix the dog at www.catandtwodogs.co.u" />
    <span>
    <strong>
    Cat And Two Dogs </strong>
    Visit my three pets at www.catandtwodogs.co.uk . This is a picture of trix, he's a border collie.</span>
    </a>
    </li>
      <li>
    <a href="#">
    <img src="upimage/colours238.jpg" alt="A picture of colours in a swirl" />
    <span>
    <strong>
    A swirl of colours. </strong>
    This is just a picture of colours in a swirl effect.</span>
    </a>
    </li>
      </ul>
    </div>

    Sorry can't do this at the moment.
    I've decided to switch to the JQuery Lightbox Image Gallery instead. In IE8 I get the following message:
    Message: Script error
    Line: 0
    Char: 0
    Code: 0
    URI: file:///C:/Documents%20and%20Settings/User/My%20Documents/SRC12-13/all%20html%205/all%20ht ml%205/Simple-HTML-5-Template/Simple%20HTML%205%20Template/js/jquery.lightbox-0.5.min.js
    My page works and my js is refenced correctly. Not sure if this is just a IE8 thing, or whether the page needs uploading to work correctly. Works fine in Chrome.
    Wonder if there is a way to fix this?

  • CSS issues....get Javascript error on click event

    Trying to finish up this navbar. Got it where my navigation works pretty much great. However, the code I expected to work when I fire a click event on the logo (represnted currently by a gray circle) causes a 'Javascript error in event handler! Event Type = element' error instead. Not sure why. I know I had an issue with one of my button references (spelling issue) but beyond that, everything seems to be in order.
    This is the code I'm using. The first five lines work right. The second series does not.
    sym.getSymbol("btnVision").$("back").css({opacity: 0})
    sym.getSymbol("btnIndustires").$("back").css({opacity: 1})
    sym.getSymbol("btnResp").$("back").css({opacity: 1})
    sym.getSymbol("btnCommunity").$("back").css({opacity: 1})
    sym.getSymbol("btnDiscovery").$("back").css({opacity: 1})
    var stage = sym.getComposition().getStage()
    stage.$("navVision").css({top: 65});
    stage.$("navIndustries").css({top: 65});
    stage.$("navResp").css({top: 65});
    stage.$("navCommunity").css({top: 65});
    stage.$("navDiscovery").css({top: 65});
    I should mentioned I tried sym.getSymbol for the bottom entries but that simply produced the same exact error. Sign.
    Anyone know what might be causing this? It doesn't seem to make sense to me. Here's the files.
    https://www.dropbox.com/s/xo90u6hvj65ix78/nav.zip

    Hi ladobeugm,
    The error message is rather cryptic, but this occurs when trying to access something not defined, as you already experienced with your misspelling.
    You should use Firebug to localize the error via step by step execution. There is a Scripts tab. In its menu, select <youProject>Actions.js. Then, define a breakpoint by clicking in the line number of statement var stage= etc. In the Spies area, you can look for the offending statement by monitoring variable values.
    Gil

  • IE7 Issue with Spry Horizontal Menu

    I am fairly new to all of this, I have developed a web site using horizontal spry menu, everything fine on IE8, Safari and Firefox. When viewed on IE7 there appears a white line above the menu.
    Url is www.psweb-test.com could you help please as I can see the problem.

    The problem lies with the line-height style rule in ul.MenuBarHorizontal a
    I do not know what the solution is but I am sure if you Google the subject, you will find a plethora of discussions regarding same.
    One such search gave me the following link http://www.ensight.org/2006/08/23/list-of-ie7-css-bug-fixes/
    I hope this helps.
    Ben

  • Fix for IE7 ? Anybody

    Almost all of my website are having displaying properly in IE7.  Is there any fix in CSS or html that I can use to fix the widths, floats ...

    You can solve this problem by adding IE7 specific stylesheet. Add these after  tag and before
    In style-ie7.css you can define specific selectors and rules that works in that browser.

  • Ul.hmb ul alignment problem ie7 and lower only

    So to my knowledge the menu on my site works correctly in all other browsers except ie7 and lower. As a last resort I have turned to conditional style sheets for ie7 and previous versions to take care of this problem. Here's a link to my site: http://geekpowwow.com
    My style sheets are large and probably a little disorganized so i'll post the relevant rules here. I'll post one ul and if you guys have any thoughts on how to solve this problem please let me know. (I have removed a#li and div.menubaralign from the ie7 css)
    <ul id="hardware">
                             <div class="menubaralign">
                                  <li><a id="li" href="http://geekpowwow.com/cables/">Cables</a></li>
                                  <li><a id="li" href="http://geekpowwow.com/burners/">CD/DVD Burners</a></li>
                                  <li><a id="li" href="http://geekpowwow.com/computeraccessories/">Computer Acc.</a></li>
                                  <li><a id="li" href="http://geekpowwow.com/computercases/">Computer Cases</a></li>
                                  <li><a id="li" href="http://geekpowwow.com/coolingdevices/">Cooling Devices</a></li>
                                  <li><a id="li" href="http://geekpowwow.com/processors/">CPU's / Processors</a></li>
                                  <li ><a id="li" href="http://geekpowwow.com/harddrives/">Hard Drives</a></li>
                                  <li ><a id="li" href="http://geekpowwow.com/headsets/">Headsets</a></li>
                                  <li ><a id="li" href="http://geekpowwow.com/keyboards/">Keyboards</a></li>
                                  <li ><a id="li" href="http://geekpowwow.com/memory/">Memory</a></li>
                                  </div>
                                  <div class="menubaralign">
                                  <li><a id="li" href="http://geekpowwow.com/mice/">Mice</a></li>
                                  <li><a id="li" href="http://geekpowwow.com/monitors/">Monitors</a></li>
                                  <li><a id="li" href="http://geekpowwow.com/motherboards/">Motherboards</a></li>
                                  <li><a id="li" href="http://geekpowwow.com/powersupplies/">Power Supplies</a></li>
                                  <li ><a id="li" href="http://geekpowwow.com/servers/">Servers</a></li>
                                  <li ><a id="li" href="http://geekpowwow.com/soundcards/">Sound Cards</a></li>
                                  <li ><a id="li"  href="http://geekpowwow.com/speakers/">Speakers</a></li>
                                  <li ><a id="li" href="http://geekpowwow.com/ssd/">SSD's</a></li>
                                  <li ><a id="li" href="http://geekpowwow.com/videocards/">Video Cards</a></li>
                                  <li ><a id="li" href="http://geekpowwow.com/webcams/">Web Cams</a></li>
                                  </div>
                             </ul>
    ul.MenuBarHorizontal ul
         padding: 0;
         list-style-type: none;
         font-size: 100%;
         z-index: 1020;
         cursor: default;
         width: 26em;
         padding-left:1em;
         padding-right:1em;
         padding-bottom:1em;
         background-color:#c7c9cd;
         border:hidden;
    ul.MenuBarHorizontal ul li
         margin:0;
         marin:0;
         width: 12em;
         height: 40px;
         border:0;
    As you would expect from the code here the drop down is left aligned directly below the menu bar li. Any ideas about why margin-left:-8em won't center, or even move the list from the current position?

    HTML
    <!DOCTYPE html>
    <html>
    <head>
    <meta charset="iso-8859-1">
    <title>Geek PoWWow -  </title>
    <link href="style.css" rel="stylesheet">
    <link href="SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet">
    <link href="myMenu.css" rel="stylesheet">
    <script src="SpryAssets/SpryMenuBar.js"></script>
    </head>
    <body>
    <div id="nav-bar">
      <ul id="MenuBar1" class="MenuBarHorizontal">
        <li><a id="home" class="MenuBarItemSubmenu" href="http://geekpowwow.com/"><span>home</span></a></li>
        <li><a id="hardware" class="MenuBarItemSubmenu" href="#"><span>hardware</span></a>
          <ul class="rows2">
            <li><a href="http://geekpowwow.com/cables/">Cables</a></li>
            <li><a href="http://geekpowwow.com/burners/">CD/DVD Burners</a></li>
            <li><a href="http://geekpowwow.com/computeraccessories/">Computer Acc.</a></li>
            <li><a href="http://geekpowwow.com/computercases/">Computer Cases</a></li>
            <li><a href="http://geekpowwow.com/coolingdevices/">Cooling Devices</a></li>
            <li><a href="http://geekpowwow.com/processors/">CPU's / Processors</a></li>
            <li><a href="http://geekpowwow.com/harddrives/">Hard Drives</a></li>
            <li><a href="http://geekpowwow.com/headsets/">Headsets</a></li>
            <li><a href="http://geekpowwow.com/keyboards/">Keyboards</a></li>
            <li><a href="http://geekpowwow.com/memory/">Memory</a></li>
            <li><a href="http://geekpowwow.com/mice/">Mice</a></li>
            <li><a href="http://geekpowwow.com/monitors/">Monitors</a></li>
            <li><a href="http://geekpowwow.com/motherboards/">Motherboards</a></li>
            <li><a href="http://geekpowwow.com/powersupplies/">Power Supplies</a></li>
            <li><a href="http://geekpowwow.com/servers/">Servers</a></li>
            <li><a href="http://geekpowwow.com/soundcards/">Sound Cards</a></li>
            <li><a href="http://geekpowwow.com/speakers/">Speakers</a></li>
            <li><a href="http://geekpowwow.com/ssd/">SSD's</a></li>
            <li><a href="http://geekpowwow.com/videocards/">Video Cards</a></li>
            <li><a href="http://geekpowwow.com/webcams/">Web Cams</a></li>
          </ul>
        </li>
        <li><a id="pcs" class="MenuBarItemSubmenu" href="#"><span>pcs</span></a>
          <ul>
            <li><a href="http://geekpowwow.com/desktops/">Desktops</a></li>
            <li><a href="http://geekpowwow.com/laptopaccessories/">Laptop Acc.</a></li>
            <li><a href="http://geekpowwow.com/laptops-notebooks/">Laptops / Notebooks</a></li>
            <li><a href="http://geekpowwow.com/netbooks/">Netbooks</a></li>
            <li><a href="http://geekpowwow.com/tablets/">Tablets</a></li>
          </ul>
        </li>
        <li><a id="gaming" class="MenuBarItemSubmenu" href="#"><span>gaming</span></a>
          <ul>
            <li><a href="http://geekpowwow.com/nintendo3ds/">Nintendo 3DS</a></li>
            <li><a href="http://geekpowwow.com/nintendods/">Nintendo DS</a></li>
            <li><a href="http://geekpowwow.com/nintendowii/">Nintendo Wii</a></li>
            <li><a href="http://geekpowwow.com/pcgames/">PC</a></li>
            <li><a href="http://geekpowwow.com/playstation3/">Playstation 3</a></li>
            <li><a href="http://geekpowwow.com/sonypsp/">Sony PSP</a></li>
            <li><a href="http://geekpowwow.com/xbox360/">XBOX 360</a></li>
          </ul>
        </li>
        <li><a id="software" class="MenuBarItemSubmenu" href="#"><span>software</span></a>
          <ul class="rows2">
            <li><a href="http://geekpowwow.com/windows/">Windows</a></li>
            <li><a href="http://geekpowwow.com/mac/">Mac</a></li>
            <li><a href="http://geekpowwow.com/linux/">Linux</a></li>
            <li><a href="http://geekpowwow.com/academicsoftware/">Academic Software</a></li>
            <li><a href="http://geekpowwow.com/audioeditingsoftware/">Audio Editing Software</a></li>
            <li><a href="http://geekpowwow.com/businesssoftware/">Business Software</a></li>
            <li><a href="http://geekpowwow.com/communicationsoftware/">Communication Software</a></li>
            <li><a href="http://geekpowwow.com/freeware/">Freeware</a></li>
            <li><a href="http://geekpowwow.com/graphicssoftware/">Graphics Software</a></li>
            <li><a href="http://geekpowwow.com/languagesoftware/">Language Software</a></li>
            <li><a href="http://geekpowwow.com/multimediasoftware/">Multimedia Software</a></li>
            <li><a href="http://geekpowwow.com/simulationsoftware/">Simulation Software</a></li>
            <li><a href="http://geekpowwow.com/videoeditingsoftware/">Video Editing Software</a></li>
            <li><a href="http://geekpowwow.com/webbrowsers/">Web Browsers</a></li>
          </ul>
        </li>
        <li><a id="electronics" class="MenuBarItemSubmenu" href="#"><span>electronics</span></a>
          <ul class="rows2">
            <li><a href="http://geekpowwow.com/apple/">Apple</a></li>
            <li><a href="http://geekpowwow.com/blu-rayplayers/">Blu-Ray Players</a></li>
            <li><a href="http://geekpowwow.com/camcorderaccessories/">Camcorder Acc.</a></li>
            <li><a href="http://geekpowwow.com/camcorders/">Camcorders</a></li>
            <li><a  href="http://geekpowwow.com/carelectronics/">Car Electronics</a></li>
            <li><a href="http://geekpowwow.com/cellphones/">Cell Phones</a></li>
            <li><a href="http://geekpowwow.com/digitalcameraaccessories/">Digital Camera Acc.</a></li>
            <li><a href="http://geekpowwow.com/digitalcameras/">Digital Cameras</a></li>
            <li><a href="http://geekpowwow.com/dvr/">Digital Video Recorders</a></li>
            <li><a href="http://geekpowwow.com/dvdplayers/">DVD Players</a></li>
            <li><a  href="http://geekpowwow.com/dvdrecorders/">DVD Recorders</a></li>
            <li><a href="http://geekpowwow.com/e-bookreaders/">E-Book Readers</a></li>
            <li><a href="http://geekpowwow.com/gps/">GPS</a></li>
            <li><a href="http://geekpowwow.com/homeaudiospeakers/">Home Audio Speakers</a></li>
            <li><a href="http://geekpowwow.com/projectors/">Projectors</a></li>
            <li><a href="http://geekpowwow.com/telephones-voip/">Telephones / VoIP</a></li>
            <li><a href="http://geekpowwow.com/televisions/">Televisions</a></li>
            <li><a href="http://geekpowwow.com/universalremotes/">Universal Remotes</a></li>
          </ul>
        </li>
        <li><a id="forums" class="MenuBarItemSubmenu" href="http://geekpowwow.com/under-construction/"><span></span></a></li>
      </ul>
    </div>
    <script type="text/javascript">
    var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgDown:"../../../SpryAssets/SpryMenuBarDownHover.gif", imgRight:"../../../SpryAssets/SpryMenuBarRightHover.gif"});
    </script>
    </body>
    </html>
    styles.css
    html, body, div, span, object, iframe,
    h1, h2, h3, h4, h5, h6, p, blockquote, pre,
    abbr, address, cite, code,
    del, dfn, em, img, ins, kbd, q, samp,
    small, strong, sub, sup, var,
    b, i,
    dl, dt, dd, ol, ul, li,
    fieldset, form, label, legend,
    table, caption, tbody, tfoot, thead, tr, th, td,
    article, aside, canvas, details, figcaption, figure,
    footer, header, hgroup, menu, nav, section, summary,
    time, mark, audio, video {
      margin:0;
      padding:0;
      border:0;
      outline:0;
      font-size:100%;
      vertical-align:baseline;
      background:transparent;
    html {
        font: 100% Verdana, Geneva, sans-serif;
        overflow-y: scroll;
    body {
        background: #0053de url(http://geekpowwow.com/wp-content/themes/Geek%20PowWow/images/header.jpg) no-repeat center top;
    #nav-bar {
        background: url(http://geekpowwow.com/wp-content/themes/Geek%20PowWow/images/navbar.gif) repeat-x;
        height: 85px;
        margin-top: 195px;
    myMenu.css
    /* CSS Document */
    ul.MenuBarHorizontal {
        width: 1120px;
        margin: auto;
        font-size: 0.9em;
    ul.MenuBarHorizontal li {
        margin: 6px 3px 0 0;
        width: 157px;
    ul.MenuBarHorizontal a {
        height: 70px;
    ul.MenuBarHorizontal a span {
        visibility: hidden;  
    ul.MenuBarHorizontal ul {
        padding: 0 10px 10px 10px;
        width: 192px;
        background: #CCC;
    ul.MenuBarHorizontal ul.rows2 {
        padding: 0 10px 10px 10px;
        width: 384px;
        background: #CCC;
    ul.MenuBarHorizontal ul li {
        margin: 0;
        width: 192px;
    ul.MenuBarHorizontal ul a {
        background:url(http://geekpowwow.com/wp-content/themes/Geek%20PowWow/images/Spry%20Buttons/li_blank.gif) no-repeat;
        height: 24px;
    ul.MenuBarHorizontal a#home {
        background:url(http://geekpowwow.com/wp-content/themes/Geek%20PowWow/images/Spry%20Buttons/home_button.gi f) no-repeat;
    ul.MenuBarHorizontal a#home:hover, ul.MenuBarHorizontal a#home:focus,
    ul.MenuBarHorizontal a#home.MenuBarItemHover, ul.MenuBarHorizontal a#home.MenuBarItemSubmenuHover, ul.MenuBarHorizontal a#home.MenuBarSubmenuVisible {
        background:url(http://geekpowwow.com/wp-content/themes/Geek%20PowWow/images/Spry%20Buttons/home_button_ho ver.gif) no-repeat;
    ul.MenuBarHorizontal a#hardware {
        background:url(http://geekpowwow.com/wp-content/themes/Geek%20PowWow/images/Spry%20Buttons/hardware_butto n.gif) no-repeat;
    ul.MenuBarHorizontal a#hardware:hover, ul.MenuBarHorizontal a#hardware:focus,
    ul.MenuBarHorizontal a#hardware.MenuBarItemHover, ul.MenuBarHorizontal a#hardware.MenuBarItemSubmenuHover, ul.MenuBarHorizontal a#hardware.MenuBarSubmenuVisible {
        background:url(http://geekpowwow.com/wp-content/themes/Geek%20PowWow/images/Spry%20Buttons/hardware_butto n_hover.gif) no-repeat;
    ul.MenuBarHorizontal a#pcs {
        background:url(http://geekpowwow.com/wp-content/themes/Geek%20PowWow/images/Spry%20Buttons/pcs_button.gif) no-repeat;
    ul.MenuBarHorizontal a#pcs:hover, ul.MenuBarHorizontal a#pcs:focus,
    ul.MenuBarHorizontal a#pcs.MenuBarItemHover, ul.MenuBarHorizontal a#pcs.MenuBarItemSubmenuHover, ul.MenuBarHorizontal a#pcs.MenuBarSubmenuVisible {
        background:url(http://geekpowwow.com/wp-content/themes/Geek%20PowWow/images/Spry%20Buttons/pcs_button_hov er.gif) no-repeat;
    ul.MenuBarHorizontal a#gaming {
        background:url(http://geekpowwow.com/wp-content/themes/Geek%20PowWow/images/Spry%20Buttons/gaming_button. gif) no-repeat;
    ul.MenuBarHorizontal a#gaming:hover, ul.MenuBarHorizontal a#gaming:focus,
    ul.MenuBarHorizontal a#gaming.MenuBarItemHover, ul.MenuBarHorizontal a#gaming.MenuBarItemSubmenuHover, ul.MenuBarHorizontal a#gaming.MenuBarSubmenuVisible {
        background:url(http://geekpowwow.com/wp-content/themes/Geek%20PowWow/images/Spry%20Buttons/gaming_button_ hover.gif) no-repeat;
    ul.MenuBarHorizontal a#software {
        background:url(http://geekpowwow.com/wp-content/themes/Geek%20PowWow/images/Spry%20Buttons/software_butto n.gif) no-repeat;
    ul.MenuBarHorizontal a#software:hover, ul.MenuBarHorizontal a#software:focus,
    ul.MenuBarHorizontal a#software.MenuBarItemHover, ul.MenuBarHorizontal a#software.MenuBarItemSubmenuHover, ul.MenuBarHorizontal a#software.MenuBarSubmenuVisible {
        background:url(http://geekpowwow.com/wp-content/themes/Geek%20PowWow/images/Spry%20Buttons/Software_butto n_hover.gif) no-repeat;
    ul.MenuBarHorizontal a#electronics {
        background:url(http://geekpowwow.com/wp-content/themes/Geek%20PowWow/images/Spry%20Buttons/Electronics%20 _button.gif) no-repeat;
    ul.MenuBarHorizontal a#electronics:hover, ul.MenuBarHorizontal a#electronics:focus,
    ul.MenuBarHorizontal a#electronics.MenuBarItemHover, ul.MenuBarHorizontal a#electronics.MenuBarItemSubmenuHover, ul.MenuBarHorizontal a#electronics.MenuBarSubmenuVisible {
        background:url(http://geekpowwow.com/wp-content/themes/Geek%20PowWow/images/Spry%20Buttons/Electronics%20 _button_hover.gif) no-repeat;
    ul.MenuBarHorizontal a#forums {
        background:url(http://geekpowwow.com/wp-content/themes/Geek%20PowWow/images/Spry%20Buttons/forums_button. gif) no-repeat;
    ul.MenuBarHorizontal a#forums:hover, ul.MenuBarHorizontal a#forums:focus,
    ul.MenuBarHorizontal a#forums.MenuBarItemHover, ul.MenuBarHorizontal a#forums.MenuBarItemSubmenuHover, ul.MenuBarHorizontal a#forums.MenuBarSubmenuVisible {
        background:url(http://geekpowwow.com/wp-content/themes/Geek%20PowWow/images/Spry%20Buttons/forums%20_butt on_hover.gif) no-repeat;
    ul.MenuBarHorizontal a#li:hover, ul.MenuBarHorizontal a#li:focus,
    ul.MenuBarHorizontal a#li.MenuBarItemHover, ul.MenuBarHorizontal a#li.MenuBarItemSubmenuHover, ul.MenuBarHorizontal a#li.MenuBarSubmenuVisible {
        background:url(http://geekpowwow.com/wp-content/themes/Geek%20PowWow/images/Spry%20Buttons/li_blank_hover .gif) no-repeat;
    @media screen, projection {
        ul.MenuBarHorizontal li.MenuBarItemIE     {
            background: transparent;
    Using original SpryMenuBar.js and SpryMenuBarHorizontal.css
    Gramps

Maybe you are looking for