title: Using parameters or existing vars in CSS
body: <p>I added CSS to a checkbox and it works just fine.
  I use a local file (named check.png) to use as the check background image and crop it inside the checkbox area.</p>
  
  <p>Here are two checkboxes one checked and one unchecked</p>
  
  <p><img src="https://i.stack.imgur.com/4TObz.png" alt="enter link description here"></p>
  
  <p>Now I'd like to know if it's possible, instead of manually setting 25px in the CSS file, to get the background image's real width and height and set the width to background.width and the height to background.height/2. </p>
  
  <p>That would allow to have it automatically resize if I ever change check.png and still work properly</p>
  
  <p>EDIT: I think I was misunderstood. I want the box to fit the background image, not the image to fit the box. I'll try the opposite anyway</p>
  
  <p>EDIT2: Okay Nvm Apparently fitting the background in the box was a better idea than fitting the box in the image. Thanks :D</p>