Hello,
I am developing a graph in HTML div tags with colored backgrounds as elements, and am having a bit of trouble with making it dynamic by positioning things with percentages instead of hard pixel values.
Have a look at the source code of http://www.rayslinks.com/Graph.html
Note that the main enclosing div for the first graph [with class, and id set to 'graph'] has a relative position of 1% which I expected to put it really close to the left side of the browser window, but it does not, it puts it about where the second graph is, which is set with hard pixel values.
Inside the graphbody div, the first bar div is set with absolute left position equal to 0 %, and it is in it's expected extreme left position within the graphbody div.
Even using absolute on the graph div and setting left to 0% leaves it far out from the left edge instead of putting it at the extreme left edge of the page as I was expecting it to do.
Can anyone tell me why this is?
Thanks for any help you can be.
Later, Ray Parrish
I am developing a graph in HTML div tags with colored backgrounds as elements, and am having a bit of trouble with making it dynamic by positioning things with percentages instead of hard pixel values.
Have a look at the source code of http://www.rayslinks.com/Graph.html
Note that the main enclosing div for the first graph [with class, and id set to 'graph'] has a relative position of 1% which I expected to put it really close to the left side of the browser window, but it does not, it puts it about where the second graph is, which is set with hard pixel values.
Inside the graphbody div, the first bar div is set with absolute left position equal to 0 %, and it is in it's expected extreme left position within the graphbody div.
Even using absolute on the graph div and setting left to 0% leaves it far out from the left edge instead of putting it at the extreme left edge of the page as I was expecting it to do.
Can anyone tell me why this is?
Thanks for any help you can be.
Later, Ray Parrish

Help
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.




Back to top










