Link to home
Start Free TrialLog in
Avatar of Ameerh24
Ameerh24

asked on

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.
Avatar of Roonaan
Roonaan
Flag of Netherlands image

You can only do this by applying the filter to a element that only surrounds the first sentence.

-r-

u can alway write some styles in the second <div> so the sentence(2) will not show the styles in the parent div.

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>
Avatar of Ameerh24
Ameerh24

ASKER

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).
ASKER CERTIFIED SOLUTION
Avatar of CetusMOD
CetusMOD
Flag of Netherlands image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial