www.webdeveloper.com
Recent Articles
  • Finding Slow Running Queries in ASE 15
  • A More Advanced Pie Chart for Analysis Services Data
  • Adobe AIR Programming Unleashed: Working with Windows
  • Performance Testing SQL Server 2008's Change Data Capture Functionality
  • The ABC's of PHP: Introduction to PHP
  • How to Migrate from BasicFiles to SecureFiles Storage
  • Why the Twitter Haters Are Wrong
  • User Personalization with PHP: Beginning the Application
  • Whats in an Oracle Schema?
  • Lighting Enhancement in Photoshop
  •  

    Go Back   WebDeveloper.com > Client-Side Development > CSS

    CSS Discussion and technical support relating to Cascading Style Sheets.

    Reply
     
    Thread Tools Search this Thread Rate Thread Display Modes
      #1  
    Old 11-03-2009, 03:01 PM
    SERVERMAN SERVERMAN is offline
    Registered User
     
    Join Date: Jul 2009
    Posts: 5
    working with Css alpha setting in <ul><LI>

    i want to know if there is a way to aply alpha settings to one property of <ul><li> without affecting other properties of <ul><li> for example
    ul#navlist li {


    margin: 0;
    padding: 7px 0 7px 0;
    background-color: #999999 , -moz-opacity:0.2 ; //this will not make the setting for background be #999999 with 0.2 opacity//
    float: left;
    font-family:verdana,arial,sans-serif;
    font-size:10px;
    font-weight:bold;
    border-top: 1px solid #CCCCCC;
    border-bottom: 1px solid #CCCCCC;



    }

    ul#navlist li {


    margin: 0;
    padding: 7px 0 7px 0;
    background-color: #999999
    float: left;
    font-family:verdana,arial,sans-serif;
    font-size:10px;
    font-weight:bold;
    border-top: 1px solid #CCCCCC;
    border-bottom: 1px solid #CCCCCC;
    -moz-opacity:0.2 ;//this will aply alpha settings to borders, font, and background. and i only want the alpha settings in a background.//


    }

    all i want is background with alpha setting. any suggestion?
    i did search for alpha topic in this forum and i think all of them are image base problems thank for the help
    Reply With Quote
      #2  
    Old 11-03-2009, 03:15 PM
    aj_nsc's Avatar
    aj_nsc aj_nsc is offline
    Registered M$IE hater
     
    Join Date: Dec 2005
    Posts: 1,354
    If you apply the alpha transparency to the li in a stylesheet, it gets applied to the li and anything and everything contained therein. That's the way CSS works, any child of an element cannot have a higher opacity than it's parent....

    Usually, the only way to achieve this effect is to fake it - e.g. make an element LOOK like it's inside an element with a specified alpha opacity, without it actually being inside the element in the actual markup. This is usually accomplished with absolute positioning and a good knowledge of cross-browser CSS positioning.
    __________________
    I'm not a webdeveloper.
    I'm actually a scientist.
    ...you can probably tell.
    Reply With Quote
      #3  
    Old 11-03-2009, 07:06 PM
    SERVERMAN SERVERMAN is offline
    Registered User
     
    Join Date: Jul 2009
    Posts: 5
    ok is good to hear that lesson. the reason i was trying to do that is because i like the color the alpha setting give you when you apply it to specific color and i was able to find the code of the color that i was looking for f6f6f6 this color is similar to 999999 with alpha of 10%. so the setting will be

    ul#navlist li {


    margin: 0;
    padding: 7px 0 7px 0;
    background-color: #f6f6f6; //this is one way to achieve what i was looking for
    float: left;
    font-family:verdana,arial,sans-serif;
    font-size:10px;
    font-weight:bold;
    border-top: 1px solid #CCCCCC;
    border-bottom: 1px solid #CCCCCC;



    }

    thanks for the replay
    Reply With Quote
    Reply

    Bookmarks


    Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
     
    Thread Tools Search this Thread
    Search this Thread:

    Advanced Search
    Display Modes Rate This Thread
    Rate This Thread:

    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 Off
    HTML code is Off
    Forum Jump


    All times are GMT -5. The time now is 07:44 AM.



    Acceptable Use Policy

    internet.comMediabistrojusttechjobs.comGraphics.com

    WebMediaBrands Corporate Info


    Advertise | Newsletters | Feedback | Submit News

    Legal Notices | Licensing | Permissions | Privacy Policy

    Powered by vBulletin® Version 3.7.3
    Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.