Jump to content
Sign in to follow this  

Answerbox rotation

Recommended Posts

I'm displaying a answerbox(s) on a map and now I want to be able to rotate some of them by X deg. Here's what works sans rotation.


height: 38; /*Specify Height*/
width:  42px; /*Specify Width*/
border: 2px solid black; /*Add 1px solid border, use any color you want*/
background-color: #ffbbbb; /*Add a background color to the box*/
text-align:center; /*Align the text to the center*/
font-family: "Times New Roman", Times, serif;
margin-left: 0px;
margin-right: 0px;
margin-top: 0px;
margin-bottom: 0px;


div class='answerbox;  style='position: absolute; top: $yleft: $x;'


x, y and rotate comes from a mysql query and 

div class='anserbox2fn; rotate=${rotate}deg, style='position: absolute; top: $y; left: $x;'

doesn't work nor does

div class='answerbox; style='position: absolute; top: $y; left: $x; transform: rotate=45deg'>


Thanks in advance


And I've tried several other variations without any luck.

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Create New...