Questions tagged [computed-style]

43 questions
63
votes
3 answers

What's the difference between rgba(0,0,0,0) and transparent?

In one of my other questions, the solution to fixing a rendering issue was by using the value rgba(255, 255, 255, 255) instead of transparent. We tested using rgba(0, 0, 0, 0) and this still corrected the problem, meaning that it is the definition…
jaunt
  • 4,978
  • 4
  • 33
  • 54
45
votes
4 answers

How do I get a computed style?

Can anybody please help me with a script.. or a way to get the value of height : 1196px; width: 284px; from the computed style sheet (webkit). I know IE is different- as usual. I cannot access the iframe (cross domain)—I just need the…
Piotr Kula
  • 9,597
  • 8
  • 59
  • 85
24
votes
3 answers

Set / Copy javascript computed style from one element to another

So I am trieing to copy all the style that apply on one element ( class / id / tagName / attribute etc. ). So far I found out that I can copy the computed style of an element, Just one problem ... couldend apply it on outher element ;/ or diffrend…
Adi Darachi
  • 2,137
  • 1
  • 16
  • 29
17
votes
6 answers

Detecting width: auto in jQuery

I'm retrieving the width of elements using jQuery and would prefer it if I could have an indication of whether there was an explicit width (and height) specified.