Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 168
  • Last Modified:

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.
0
Ameerh24
Asked:
Ameerh24
1 Solution
 
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
 
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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
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
 
CetusMODCommented:
PAQed with points refunded (500)

CetusMOD
Community Support Moderator
0

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now