Results 1 to 2 of 2

Thread: Pop-It Menu and Background Opacity...

  1. #1
    Join Date
    Jul 2005
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Pop-It Menu and Background Opacity...

    Hello Friends,

    I am working with the Pop-It scripts and all is working well.
    http://www.dynamicdrive.com/dynamicindex1/popit.htm

    I would like to add an opacity to a background if possible and I was wondering if anybody could share any techniques to accomplish this. On approximately line 30 of the script, it goes as follows:
    document.write('<div id="popitmenu" etc...

    This is the div but if I place opacity on this then the text will take on the opacity effect as well which I do not want to have happen. Is there anyway I can add opacity just to the background and keep the text normal...?

    Thanks for any help.

    [Edit]
    I added
    opacity: 0.75;
    filter: alpha(opacity=75);
    -moz-opacity: 0.75;
    to the popitmenu css but it made everything(text) take on the opacity effect as well.
    Last edited by e-roq; 08-02-2005 at 06:54 AM.

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Once an element has a given opacity, the entire element and all its children have that opacity, period. One work around is to make your text black and bold, if it is a light background, white and bold if a dark background. That way it often looks as though the text is just a lighter or darker color, while the background allows some of what is beneath to show through.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

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
  •