Solved

Bar Heights -  visual studio 2005

Posted on 2006-10-24
3
165 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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Turn A Profile Picture Into A Cartoon Using Photoshop And Illustrator This tutorial will teach you how to make a cartoon style image out of a regular picture. I have tried to keep the tutorial as simple as possible. I used Adobe CS4 for this tuto…
Introduction In this tutorial, I'll explain how to create an animated progress meter in a wireframe prototype developed using Axure RP 7.0 - a leading prototyping tool for designing web sites and software. (For more information about Axure and gett…
The purpose of this video is to demonstrate how to create a Printer Friendly PDF on a WordPress Page. This will be demonstrated using a Windows 8 PC. Tools Used are Photoshop, Awesome Screenshot” Google Chrome Extension, and SmallPDF.com Log…
The purpose of this video is to demonstrate how to manually back up a WordPress Database. This will be demonstrated using a Windows 8 PC. The Host used will be IPage.com Log into your Hosting account. IPage will be used for demonstration : Locat…

760 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

Need Help in Real-Time?

Connect with top rated Experts

25 Experts available now in Live!

Get 1:1 Help Now