Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 800699
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T23:19:46+00:00 2026-05-14T23:19:46+00:00

What are cons if we use JavaScript to apply only CSS property/selectors to that

  • 0

What are cons if we use JavaScript to apply only CSS property/selectors to that browser who do not support that property by default? to keep my HTML semantic and keep free from Deprecated HTML.

Is it against content, style and Behavior separation?

If I make accessible site then should i only use whatever i can do with pure css. shouldn’t use JavaScript to apply CSS properties.

I know those css properties which I’m applying through javascript will not work if javascript is disabled. then due to this reason shouldn’t use javascript to apply css never.

I’m talking about using these type of stuffs

http://www.fetchak.com/ie-css3/

http://code.google.com/p/ie7-js/

http://www.noupe.com/css/using-javascript-to-fix-12-common-browser-headaches.html

http://www.catswhocode.com/blog/8-javascript-solutions-to-common-css-problems

http://www.impressivewebs.com/buggy-css-selectors-cross-browser-jquery/

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T23:19:47+00:00Added an answer on May 14, 2026 at 11:19 pm

    It is fairly common practice to use Javascript to detect CSS support and apply fixes. Go right ahead. The risk comes in when you start applying the literal CSS fixes in the Javascript, e.g element.style.border = '1px solid black', since that will be a nightmare to maintain. As long as you do your actual styles in your stylesheet, you’re good to go.

    For instance, Modernizr is a project that adds classes to your body tag based on what technologies are supported. This allows you to use Javascript for detection, but then apply your styles in the stylesheet. (For instance, Modernizr gives you body.borderradius if rounded corners are supported, and body.no-borderradius otherwise.)

    This allows you to easily fall back on other styles if you need to. Of course, if a certain feature isn’t supported, perhaps it just isn’t all that important – you can probably emulate it to some extent, but does it really matter if IE7 users see pointy corners? Maybe it does, but probably not.

    EDIT: Regarding those links you just added: they look fine to me. I wouldn’t depend on them too significantly, but if it’s just a single line you drop in, you haven’t mixed your technologies significantly. In fact, I rather like how that IE-CSS3 project does it, by having you drop those lines in the actual stylesheet. That keeps everything all together.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 443k
  • Answers 443k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer require searches for the library in all the defined search… May 15, 2026 at 6:22 pm
  • Editorial Team
    Editorial Team added an answer I don't have Xalan, but with 8 other XSLT processors… May 15, 2026 at 6:22 pm
  • Editorial Team
    Editorial Team added an answer Once you get the number of distinct shapes for a… May 15, 2026 at 6:22 pm

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.