ganeshjiyer
February 24th, 2003, 12:36 AM
i put a listbox of height 188px and changed the background color to red. i am getting red color after the bottom border of the list box. how to avoid that extra color after the listbox bottom border?
|
Click to See Complete Forum and Search --> : client side scripting ganeshjiyer February 24th, 2003, 12:36 AM i put a listbox of height 188px and changed the background color to red. i am getting red color after the bottom border of the list box. how to avoid that extra color after the listbox bottom border? antares686 February 24th, 2003, 04:26 AM The problem is the control is drawn in sizes not pixels, where you are specifying pixels. What is happening is the box is still being draw to the closests size value but the control is being sized to the pixel value which causes the bleed over to appear. If you use Size=n instead of using a height it will draw right, this is safer. Or if you drop to 182px will be right but it may not look right on all machines. codeguru.com
Copyright Internet.com Inc., All Rights Reserved. |