Wrox Programmer Forums
|
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics 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 September 20th, 2006, 11:21 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 196
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to jmss66
Default Font Size in buttons

How can I resize the button on my form so it will be bigger? Will the value become bigger too or do I need to resize it? Below is my code for the button. Please help.

<SCRIPT LANGUAGE="VBScript">
Function MyForm_onSubmit
  If Msgbox("Are you sure?", vbYesNo + vbExclamation) = vbNo Then
    MyForm_onSubmit = False
  End If
End Function
</SCRIPT>
<FORM METHOD="POST" ACTION="http://www.mywebsite.com" NAME="MyForm">
  <INPUT TYPE="SUBMIT" NAME="btnSUBMIT"
        size = 18 VALUE="Click Here to take the Survey">
</FORM>

Cheers

 
Old September 20th, 2006, 11:41 AM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

Use a CSS style.

http://www.sitepoint.com/article/style-web-forms-css
http://www.outfront.net/tutorials_02...unkyforms3.htm

etc etc etc

--Stole this from a moderator

I will only tell you how to do it, not do it for you.
Unless, of course, you want to hire me to do work for you.
 
Old September 20th, 2006, 12:49 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 196
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to jmss66
Default

I created a style.css, included it in the program and still won't resize the submit button.

<style>
<!--

a.nav1
    {
    font-size: 36px;
    text-decoration: none;
    color: #ffffff;
    ont-family: Sans-Serif;
    font-weight: bold;
    }
a.nav1:link
    {
    font-size: 36px;
    text-decoration: none;
    color: #ffffff;
    ont-family: Sans-Serif;
    font-weight: bold;
    }

a.nav1:visited
    {
    font-size: 36px;
    text-decoration: none;
    color: #700205;
    ont-family: Sans-Serif;
    font-weight: bold;
    }
-->
</style>


<FORM METHOD="POST" ACTION="http://www.mywebsite.com/" NAME="MyForm">
<INPUT CLASS="nav1" TYPE="SUBMIT" NAME="btnSUBMIT"
         VALUE="Click Here to take the Survey">
</FORM>


Am I missing something else.

 
Old September 20th, 2006, 01:19 PM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

Well, ont-family should be font-family for one thing.

Also, you never define in your style a new width and height property, you define a text size, decoration, color, and a font-weight (ont-family should be font-family).

I did this real fast and it worked fine:

.Btn
{
    height:200px;
    width:384px;
}

and it produced a button that was 200px high by 384px wide.

--Stole this from a moderator

I will only tell you how to do it, not do it for you.
Unless, of course, you want to hire me to do work for you.
 
Old September 20th, 2006, 02:13 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 196
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to jmss66
Default

That worked. Oh and that "ont-Family". I was typing too fast then copied and pasted the block. Thanks for pointing that out.

Thanks for your help and the link although the link didn't discuss anything about resizing a submit box. Had it not been for your example, I wouldn't have made it work.

Thanks again.






Similar Threads
Thread Thread Starter Forum Replies Last Post
how to get font ,color,font size of text in win32 satishsatao Visual C++ 0 April 5th, 2006 05:05 AM
font-size problem in CSS crmpicco CSS Cascading Style Sheets 2 August 22nd, 2005 09:31 PM
Access Report Font Size ritag Access 2 November 5th, 2004 11:35 AM
Changing the font size in a statusbar xgbnow C++ Programming 0 February 3rd, 2004 04:05 PM





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