title: jQuery create DIV with dynamic ID and defined CSS attributes (which define look and position of that div)
body: <p>I have some basic code here.  It just creates a div element to a certain defined position, and the ID is not dynamic.</p>
  
  <pre><code>var i=1;
  while (i&lt;=6)
  {
      jQuery('&lt;div/&gt;', {
          id: 'karta_back'
          // I don't know how to insert CSS here
      }).appendTo('#igrac1');
  
      ++i;
  }
  </code></pre>
  
  <p>The problem is with dynamic ids.  With css, I don't know how to define the CSS inside that function.  For this example, I used the internal CSS that is defined somewhere in the document.  With the position, I suppose that cards need to be CSS absolute positioned to perform like i would like.</p>
  
  <p>This is the result that I have with this simple code I wrote:
  <a href="http://dl.dropbox.com/u/2849320/achieved.png" rel="nofollow">http://dl.dropbox.com/u/2849320/achieved.png</a></p>
  
  <p>This is what i want to achieve:
  <a href="http://dl.dropbox.com/u/2849320/want%20to%20achieve.jpg" rel="nofollow">http://dl.dropbox.com/u/2849320/want%20to%20achieve.jpg</a></p>
  
  <p>How can I do this?</p>