title: Convert pixel to percent using jQuery
body: <p>i would like to know if there's a way to convert pixel to percent... I have a code which i get the value of full width successfully, but the only thing to keep the object in center, i must need to use percent.</p>
  
  <p>Here's what i use on getting the value of width which i need to convert after to percent.</p>
  
  <pre><code>$(document).ready(function(){
      var sp = $('.slide'),
          winWidth = $('#slides').width();
          console.log(winWidth);
  
      sp.css('width', winWidth);
  });
  </code></pre>
  
  <p>Thanks for the help.</p>
  
  <p><a href="http://jsfiddle.net/imarkdesigns/4SwmE/4/" rel="nofollow">Here's the updated fiddle link.</a>
  *note: what i wanted here was to set the ".slide" container become fluid to make the object still in center spot. Feel free to modify my fiddle. Right now im using my given jQuery code to get the exact width of the "#slide" in percent to pixel ('.slide'). Then as of that, try to resize your browser to see the output of the slide frame. Im using SlidesJS plugin FYI.</p>