HTML, JavaScript And CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgrammingHTML, JavaScript And CSS Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old February 10th, 2004, 12:00 PM
HaHa! HaHa! is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Posts: 33 HaHa! User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
Simple Button Formatting Width, Height, Size

Hey,

I'm simply trying to create a series of buttons with the same dimensions. I tried using the key words WIDTH, HEIGHT, SIZE button no matter what values I give it they do not change.

An example is below:

<input type="submit" value= "Reports" name="REP" width = "200">

<input type="submit" value= "Reports" name="REP" size = "25%">


Any suggestions or help would be way cool!
Thanks

Reply With Quote
  #2  
Old February 11th, 2004, 05:06 AM
sfm0 sfm0 is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 27 sfm0 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 m 23 sec
Reputation Power: 0
Hi,

I think you might be able to use CSS to do this. I have done it before with form fields...so i think it may work with buttons. Try:

<head>
<style type="text/css">

input.big
{
font-size: 150%
}

input.small
{
font-size: 75%
}
</style>

</head>
<body>

<input type=button class=small>

</body>


Quote:
Originally Posted by HaHa!
Hey,

I'm simply trying to create a series of buttons with the same dimensions. I tried using the key words WIDTH, HEIGHT, SIZE button no matter what values I give it they do not change.

An example is below:

<input type="submit" value= "Reports" name="REP" width = "200">

<input type="submit" value= "Reports" name="REP" size = "25%">


Any suggestions or help would be way cool!
Thanks

Reply With Quote
  #3  
Old February 11th, 2004, 10:30 AM
HaHa! HaHa! is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Posts: 33 HaHa! User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
Hmm...

The above post did help but didn't format in the way I was hoping.

The problem is that when I have a caption on a button such as "Reports" and then have a button with a caption "Inventory" the length of the string determines the width of the button each button. I want to hard code the width of the button regardless the length of its captions.

Reply With Quote
  #4  
Old February 11th, 2004, 10:42 AM
Yeruhn's Avatar
Yeruhn Yeruhn is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Location: Netherlands
Posts: 428 Yeruhn User rank is Sergeant (500 - 2000 Reputation Level)Yeruhn User rank is Sergeant (500 - 2000 Reputation Level)Yeruhn User rank is Sergeant (500 - 2000 Reputation Level)Yeruhn User rank is Sergeant (500 - 2000 Reputation Level)Yeruhn User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 2 Days 16 h 35 m 27 sec
Reputation Power: 10
Something like this:

<input type=button style="width:100px;height:50px">

Reply With Quote
  #5  
Old February 11th, 2004, 11:14 AM
HaHa! HaHa! is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Posts: 33 HaHa! User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
Way Cool!

Hey,

Thanks! The last post above worked perfectly. Thanks.

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingHTML, JavaScript And CSS Help > Simple Button Formatting Width, Height, Size


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump



 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
Stay green...Green IT