Can i use javascript in cascade style sheet file
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Deepak VermaRank #672 · 3.6K reputationPosted Nov 27, 2012, 8:21 PM EST
You might write css expressions for Internet Explorer like this:
width:expression(document.body.clientWidth > 960 ? "960px": "100%");
But use of such expression is deprecated and nothing good for cross browser support.