php - css which depends on a div tag value -


i developing website uses sql , php generate div block. div block have associated number (the range of 1 - 100). need css display div element in relation associated number (e.g. associated number margin-left % value).

how do this?

thanks

supposing $result number generated php, write script this

<?php $result = 1; echo '<div style="margin-left:'.$result.'">div content</div>'; ?> 

Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -