I am developing a website which uses SQL and php to generate a div block. This div block will have an associated number (the range of which will probably be 1 - 100). I need the CSS to display the div element in relation to the associated number (e.g. the associated number is the margin-left % value). 

How do I do this?

Thanks