html - CSS calc() in border-width? -


Can I use calc () with border width?

I would like the following CSS to work:

  .mi element (border-left-width (10% + 10px); Calc (10% + 20px);}   

But for whatever reason, any value I Calc () with no results in any given range. The document I found is not clear whether Calc can be used - it says that I someone Also gt

I target IE9, but I get the same results in Chrome 34 and Firefox 28. I know that I can use jQuery to achieve these things, but I unfortunately, Code> border width

Unfortunately, border width < / code> can not use one% value because no% is related to the size of the element

Therefore, basically ... no you calc Ima-not with width% can use because it does not know what it's like <% P>

Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -