Here is a sample that I work with. I would not want to use javascript if possible, and if it is absolutely necessary without any other solutions, I would use jQuery.
As an example, there are three internal divs that I'm trying to focus on. They are ultimately generated by the script, so I donβt know the width or height for using a negative pixel size for the field in the .circle class.
I would like to change the structure of the div, but I am looking for something clean and simple, although I would rather change the structure than using javascript.
FF4, Safari (iOS) / Chrome, IE9 are my ultimate goals.
change
This is the end result I need, but its using jquery.
Dan's answer will work. It puts the strain on generating a script to calculate negative fields. That would be acceptable, after all, I think, but I was hoping that all I would need to provide would be the desired size, and not any information related to the positioning from the script generator.
@thirtydot - Right now, no. I am coding manually. in the end it will be generated by PHP or C # depending on my server platform.
source share