OK I have full expectation of going down in flames for asking something stupid (or at least duplicate), but in the attached snippet, why do I have to use window.getComputedStyle to access styles applied by CSS? I was under the impression that the .st...
jQuery provides a nice, neat way to traverse the DOM...what I'm looking for is a way to traverse a stylesheet, getting and setting attributes for the defined styles.  Example Stylesheet  div {     background: #FF0000;     display: block; }  .styl...
I'm trying to pull different stylesheets in my main.js folder depending on the time of day. However, I keep receiving a file not found error in the console.    When I open up inspect element. The day.css file appears in the DOM, but in the consol...
I'm looking for a way to change the CSS rules of my stylesheet imported in the document. So I have an external stylesheet and some class and div attributes inside. I want to change one of the rules with JavaScript or jQuery.  Here is an example :...
I looked around and didn't see this question asked yet.  What's a reliable way in Javascript to determine the media type (e.g. screen, print, handheld) of the page? I've seen references to document.styleSheets[0].media, but I've had n...
Consider to develop a web control (ASP.NET). What you would really like to do is styling and developing this control in a very good way, here's a very good way to do this (this is how I would like to do, further in this question I will explain wh...
I have some floating point numbers where I would like to indicate that that the last few digits are not that important. What I have in mind is something like this.  For the number 273.978  <span style="font-weight:bold">273.9</span&g...
We've got a little tool that I built where you can edit a jQuery template in one field and JSON data in another and then hit a button to see the results immediately within the browser.  I really need to expand this though so the designer can edit...
I need to use specific styles for Mac in my stylesheet. What is the best way to do it?...
Is it possible to use   var script = document.createElement('link'); script.href = 'theme/style/ie/manageleads.css'; script.rel  = 'stylesheet'; script.type = 'text/css'; document.getElementsByTagName('head')[0...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.