www.webdeveloper.com
Results 1 to 3 of 3

Thread: Div Opacity

  1. #1
    Join Date
    Jan 2010
    Posts
    12

    Div Opacity

    When I change the Opacity of a Div, shouldn't the images inside the Div change Opacity also ?

  2. #2
    Join Date
    May 2010
    Posts
    213
    Quote Originally Posted by bgreer5050 View Post
    When I change the Opacity of a Div, shouldn't the images inside the Div change Opacity also ?
    Depends on the browser, so it's best to believe the answer is no. If you're doing this with jQuery, you can easily change it by doing:

    Code:
    $('div, div > img')
    or, if you want it for all elements:

    Code:
    $('div, div > *')
    If, on the other hand, you're not doing it with jQuery, please start doing so

  3. #3
    Join Date
    Feb 2006
    Posts
    2,927
    or css

    div img{opacity:inherit; filter:inherit}

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles