Wrox Programmer Forums
|
ASP.NET 1.1 As of 10/6/2005, this forum is locked as part of the reorganization described here: http://p2p.wrox.com/topic.asp?TOPIC_ID=35394. No posts have been deleted. Open ongoing discussions from the last week have been moved to either ASP.NET 1.0 and 1.1 Beginners http://p2p.wrox.com/asp-net-1-0-1-1-basics-60/ or ASP.NET 1.0 and 1.1 Professional. http://p2p.wrox.com/forum.asp?FORUM_ID=50. See my sticky post inside for more.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.1 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 9th, 2004, 10:07 PM
Authorized User
 
Join Date: Jul 2004
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Default length of buttons

Hi,

Below is my user interface. But i cannot seems to get the length of the buttons to be equal. How can i do that??


<%@ page Language= "c#" ContentType="text/html" ResponseEncoding="iso-8859-1" %>

<HTML>
    <align =" center">
        <h2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
Stationary Inventory Control System (SICS)</h2>
    </align>
    <h3>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
Administrator Main Menu</h3>
    <input type="button" style ="height=50;" value="View/Approve Staff Request"> &nbsp;&nbsp;&nbsp;<input type="button" style ="height=50;" value="Generate Monthly Excel Report" >
    <br>
    <br>
    <INPUT type="button" style ="height=50;" value="Issue Items to New Staff">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; <input type="button" style ="height=50;" value="Issue Items On Special Request">
    <br>
    <br>
    <input type="button" style ="height=50;" value="Add/Edit Stationary Item">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; <input type="button" style ="height=50;" value="Procurement">
    <br>
    <br>
    <input type="button" style ="height=50;" value="Print Request to File">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n bsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;<INPUT type="button" style ="height=50;" value="Log Off">
</HTML>



Ong Lee Hiang

 
Old August 10th, 2004, 07:44 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Hey,

Sometimes, if the height of the text is different, the browser will ignore your height setting and push it up. I don't know if that is your case... I'm assuming that is what you want to control?

Brian
 
Old August 10th, 2004, 07:44 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,110
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Are you using Visual Studio .NET? You can use grid layout if you are.

Also, the style should be in this format style="height:50;"
 
Old August 12th, 2004, 12:52 PM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

Or just use explicit widths for the buttons. Perhaps you need to look at some HTML tutorials to familiarize yourself with the basics of HTML layout.





Similar Threads
Thread Thread Starter Forum Replies Last Post
length is null? darkhalf Javascript 2 October 19th, 2005 12:22 AM
Location.length=0 jack12345 BOOK: ASP.NET Website Programming Problem-Design-Solution 1 June 21st, 2005 01:14 AM
length crmpicco Classic ASP Basics 1 February 11th, 2005 11:24 AM
Is one (1) a 'length' for option buttons? John K. King Javascript How-To 2 November 7th, 2004 06:04 PM
Record length ?!? hcweb Classic ASP Basics 2 November 1st, 2003 11:16 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.