Problem: Div is 850px and has a variable number of child elements (image in link element). I want them to change their width automatically so they fill out the parent div having a 10px wide gap between them. Also they should be justified in the parent and the first and last child should have no gap to the left, respectively to the right.
Resizing and fitting works fine but I haven't got a clue how to get the gaps in there.
$(".products a img").width($("#products_div").width() / $(".products a img").length);