0
@media (min-width: THIS-VALUE) {
.CLASS {
    Width: QUERY-WIDTH;
}

Is this Possible?
Please explain with example.
Thanks

1
  • If there is any other possible value then please let me know. Commented Apr 29, 2015 at 9:03

2 Answers 2

1

This is probably an example of a css pre-processor. You can set variables in less that can be re-used throughout your css.

Less is a CSS pre-processor, meaning that it extends the CSS language, adding features that allow variables, mixins, functions and many other techniques that allow you to make CSS that is more maintainable, themable and extendable.

Check out a couple of options:

http://lesscss.org/

Sign up to request clarification or add additional context in comments.

3 Comments

Is it possible in CSS?
not that I know of, (although this is possibly coming) you can make use of these features when you write in the less syntax then compile it to css.
I know the less but i was just asking about css. So i will try in less. Thanks
0

It's not possible is CSS. you can use that in css pre-processors like Less, sass, SCSS, Stylus Etc.

in that case you can use % to set full size width.

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.