I have .aspx file (i dont have the .aspx file code), I'm trying to change the direction of .html page via .css file.
My problem is that the .css file is dynamic loaded from .axd file.
How can i change .css file at this case?
Thanks.
Asked
Active
Viewed 80 times
0

CSharpBeginner
- 601
- 2
- 7
- 22
1 Answers
0
Use javascript. like
document.getElementById('id').style.property = 'value';
document.getElementById('id').setAttribute("dir", "value");

It's a trap
- 1,333
- 17
- 39
-
yeah..but i have a big .html file.. i want to be able to change at .css file the direction and all the elements using at this class – CSharpBeginner Jul 13 '16 at 06:47
-
big html file won't stop you from using javascript. And you cant set attributes using CSS, you have to use javascript for that( assuming you are referencing to the dir attribute of html tag) – It's a trap Jul 13 '16 at 06:49
-
when i need to do that? on page ready/load? this is the best way to do that? – CSharpBeginner Jul 13 '16 at 08:31
-
i can to do that maybe to the tag to all page instaed of any element? – CSharpBeginner Jul 13 '16 at 08:39
-
yes you can do that at onloadstart/onload/document.ready etc, doesn't make much difference – It's a trap Jul 13 '16 at 09:09