Web Design and Development Forums

change the size of my button

This is a discussion on "change the size of my button" within the ASP.NET Forum section. This forum, and the thread "change the size of my button are both part of the Program Your Website category.


Go Back   Webforumz.com > Program Your Website > ASP.NET Forum

Welcome to Webforumz.com.
Register Now Register now!

Reply
 
LinkBack Thread Tools Rate Thread
Old Jan 30th, 2008, 13:54   #1 (permalink)
Junior Member
 
Join Date: Dec 2007
Location: UK
Posts: 25
change the size of my button

hello,

can anybody advise me on how i can change the size of my button, i want it to be a specific size, i.e. smaller than what it is now. the following is the code i have. any suggestions will be good,
thanks

htmlxmlns="http://www.w3.org/1999/xhtml">
<
headid="Head1"runat="server">
<title>Untitled Page</title>
<scriptrunat="server">
Sub
submit(Source AsObject, e As EventArgs)
button1.Style(
"background-color") = "#ADD8E6"
button1.Style("color") = "#000000"
button1.Style("width")="200px"
button1.Style("cursor")="hand"
button1.Style("font-family")="verdana"
button1.Style("font-size") = "10pt"
button1.Text = "button"
EndSub
</
script>
</
head>
<
body>
<
formid="Form2"runat="server">
<
asp:Buttonid="button1"Text="Click me!"runat="server"OnClick="submit"/>
</
form>
</
body>
</
html>
skat is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old Mar 11th, 2008, 19:56   #2 (permalink)
Junior Member
 
Join Date: Feb 2008
Location: Paris
Age: 31
Posts: 18
Re: change the size of my button

use some CSS / dynamic style
for that, use cssClass attribute (don't have VS2005 open, but I think that's it)...
or cssStyle ?
If cssClass, just create a class in your css that defines the button size
If cssStyle, define "width:500px;height:200px;" for instance.
magicben is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Thread Tools
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
button text picture change R8515198 JavaScript Forum 7 Feb 11th, 2008 12:36
how to change button action into a movieclip button action cjrollo Flash & Multimedia Forum 7 Nov 21st, 2007 17:07
how do you make it so the user can change the font colour and size and background... VanHype JavaScript Forum 2 Apr 24th, 2007 16:39
How Do You Increase Video Size with a button? ctrent Flash & Multimedia Forum 0 Jul 15th, 2006 07:34
When a button refuses to behave like a button in Flash autumn_whispers2me Flash & Multimedia Forum 2 May 24th, 2005 22:08



Latest Updates

All Points SEO Security Advisory - CHECK YOUR SITE NOW!

Creative Coding :: February 2008

Webforumz is sponsored by: WESH UK Web Hosting
All times are GMT. The time now is 20:57.

Sleep Study Scoring :: Free Bet :: Website Templates :: Online Betting :: Bookmakers :: Funny Quotes :: Internet Recruitment Software :: Microsoft CRM Experts :: Online Casino :: Decorated Christmas Trees :: Midwife Forums :: Football Betting :: Ecommerce Software :: Web Hosting :: Football Stats :: Dry Cleaning Collection :: xtreme wales - extreme clothing :: Apuestas :: Sharepoint Consultants :: Website Optimisation :: Office Clearance London :: Sharepoint Experts :: Sports Betting :: Casino :: Website Templates :: Web Design Development India :: Online Gambling

Powered by: vBulletin Version 3.7, Copyright ©2000 - 2008, Jelsoft Enterprises Limited.
© 2003-2008 Webforumz.com : All Rights Reserved
Search Engine Friendly URLs by vBSEO 3.2.0 RC6


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59