This question already has an answer here:
- Chained :not selector does not working for child div 2 answers
I have a child div which has been effected by .img class.
Although I insert :not
selector for this div as
.main .content .index-exp .img:not(#view-image):not(.view-image){ /*rest*/ }
it is still effecting my div and this hurts my brain.
If I remove :not(#view-image)
it is working as expected,
but as .img:not(#view-image):not(.view-image)
chained not working.
I know that this kind of usage is true.
What could be problem.
Here is http://jsfiddle.net/x80vm7y8/6/ address.
My result
Expected result is
<div class="main">
<div class="content">
<div class="index-exp">
<div class="container">
<div class="viewers">
<div class="product-exp">
<div class="view-exp">
<div class="content">
<div class="inquiry-form">
<form action="http://akasiayachting.com/wp-content/themes/active3/php/get_sendmail/get_sendmail.php" method="post" name="inquiry-form">
<div>
<span class="img"><img class="view-image" id="captcha" src="http://akasiayachting.com/wp-content/themes/active3/php/get_captcha/get_captcha.php" /></span>
<span class="img"><img class="view-image" id="code-refresh" src="http://akasiayachting.com/wp-content/themes/active3/views/active-71-detail/images/form-icon-refresh.png" /></span>
<input name="code-verification" type="text" class="code-verification" value="Security Code" />
<input name="submit" type="submit" value="Send Inquiry" />
</div>
</form><!-- #form -->
</div><!-- #inquiry-form -->
</div><!-- #content -->
</div><!-- #view-exp -->
</div><!-- #product-exp -->
</div><!-- #viewers -->
</div><!-- #container -->
</div>
</div>
</div>