Solved

Bar Heights -  visual studio 2005

Posted on 2006-10-24
3
177 Views
Last Modified: 2010-04-07
I'm creating my own version of a bar chart.  I am having difficulties with the height properties.... For example, if I use a textbox, panel, label, image, etc... I change the properties’ height based some math for this bar of the 'chart'...  the problem is... the height changes DOWNWARD... rather than the desired upward... in other words, I would like the object to grow up, rather than downward... this is a webform, so I can’t use an anchor property... is there a way to absolutely position an object by its bottom?

Thanks!
0
Comment
Question by:zebasdad
3 Comments
 
LVL 11

Accepted Solution

by:
ethoths earned 125 total points
ID: 17834693
This really depends on how you are drawing the bars. If you are using a table and filling a cell with a coloured image you could simply fix the hieight of the row to the maximum bar height (say 300px) and then place the sized gif (say height=250px, width=20px) in to the cell with a valign=bottom attribute. (By the way, to generate the bar image simply create a 1px by 1px gif the the appropriate colour an dthen set the height and width in the html. The image will automatically be streatched to the specified diemnsions).

Prehaps a better way to do it is to use css positioning and simply specify a div to create the bars...
     <div height=250 width=20 left=10 bottom=300 color=red float=left />

You's need to refer to a css reference for all the options on how to do this but the web is full of these.


0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article provides a case study on how our local youth baseball league deployed a new website, including the platform selection, implementation and benefits to the league.
When setting up new project requests for our site, one of the most powerful tools our team has available to use is Axure (http://www.axure.com/). It’s a tool for creating software and web prototypes that can function and interact as if it were the a…
The purpose of this video is to demonstrate how to add AdSense Ads to a WordPress Website, and how to set up WordPress to automatically place Ads in Sidebars. This will be demonstrated using a Windows 8 PC. Log into your AdSense account. : Cli…
The purpose of this video is to demonstrate how to Test the speed of a WordPress Website. Site Speed is an important metric of a site’s health. Slow site speed can result in viewers leaving your site quickly and not seeing your content. This…

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question