stop style for inner tags

how could I stop style for inner tags ..
suppose I have this html code :

<div style="width:160px; padding-top:50px; height:116px; filter:progid:DXImageTransform.Microsoft.Alpha( Opacity=100, FinishOpacity=20, Style=3, StartX=0,  FinishX=100, StartY=0, FinishY=100)">
This sentence is effected by div style <!-- sentence (1) //-->
<div>
This sentence is needed without filter <!-- sentence (2) //--> </div>
</div>
I need the first sentence to be effected by filter .. and the second one without any effect of this filter..
(I need this to be done without placing inner div outside the outer div tag)
so any help will be appreciated.
Ameerh24Asked:
Who is Participating?
 
CetusMODCommented:
PAQed with points refunded (500)

CetusMOD
Community Support Moderator
0
 
RoonaanCommented:
You can only do this by applying the filter to a element that only surrounds the first sentence.

-r-
0
 
Kiran Paul VJComputer EngineerCommented:

u can alway write some styles in the second <div> so the sentence(2) will not show the styles in the parent div.
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

 
Kiran Paul VJComputer EngineerCommented:

or try this

<div style="width:160px; padding-top:50px; height:116px; filter:progid:DXImageTransform.Microsoft.Alpha( Opacity=100, FinishOpacity=20, Style=3, StartX=0,  FinishX=100, StartY=0, FinishY=100)">
This sentence is effected by div style <!-- sentence (1) //-->
<div style="width:160px; padding-top:50px; height:116px; filter:progid:DXImageTransform.Microsoft.Alpha( enabled=0)">
This sentence is needed without filter <!-- sentence (2) //--> </div>
</div>
0
 
Kiran Paul VJComputer EngineerCommented:
0
 
Ameerh24Author Commented:
hi kiranvj
the second sentence is still affected with that filter,
The problem that I have the outer div forleft column in my website ..
and in need it all effected with alpha filter expect this div (that is shown in my question).
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.