1

I am new CSS styles and HTML.I have css file called layout.css in which we have a class called

.Grid {
    width:100%; 
    direction:rtl
}
.tblsMonth {
    direction :rtl
}

I have created another css file with class as below:

.textdirection {direction:ltr}

Can i make for .Grid and .tblsMonth direction property to read from my css file .textdirection

5
  • as far as i know, you can't do it with pure CSS Commented Jul 19, 2013 at 10:02
  • I don't understand your question? Commented Jul 19, 2013 at 10:04
  • yes you may use it like .Grid.textdirection so that it will override your above css Commented Jul 19, 2013 at 10:04
  • @ManojMeena: then it would be .Grid.textdirection {width:100%;} and i have replace .Grid to .Grid.textdirection in all the pages where .Grid has been used..Correct me if i am wrong Commented Jul 19, 2013 at 10:09
  • you just need to replace .textdirection {direction:ltr} to .Grid.textdirection {direction:ltr} into your css file not for all pages Commented Jul 19, 2013 at 10:12

1 Answer 1

4

As far as I know, you can't combine them in the CSS, but you can in HTML:

direction.css

.textdirection {direction:ltr}

layout.css

.Grid {
    width:100%; 
}
.tblsMonth {
}

HTML

<div class"Grid textdirection"></div>
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.