![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks. |
| |||||||
![]() |
| |
| | #1 (permalink) |
| | Font on Button Please have patience guys, database applications programmer just starting out with asp. Designing pages for my high schools using their school colors, the gray Buttons with the Black font just not stand out well or looks bad. One the following script how do I get the font to appear in Red? <Input Type="Button" Value="Click To Look Up By S.A.T. Test Code" Name="SATL" OnClick="ACQYB()"> I tried <Font="Red"> Before it and it ignored it. Thanks in Advance Granny the Teacher |
My System Specs![]() |
| | #2 (permalink) |
| | Re: Font on Button "Leona Leal Educator" <LeonaLealEducator@xxxxxx> wrote in message news:022157D3-65D4-4DEC-8121-9081790F264A@xxxxxx Quote: > Please have patience guys, database applications programmer just starting > out > with asp. > > Designing pages for my high schools using their school colors, the gray > Buttons with the Black font just not stand out well or looks bad. > > One the following script how do I get the font to appear in Red? > > <Input Type="Button" Value="Click To Look Up By S.A.T. Test Code" > Name="SATL" OnClick="ACQYB()"> > > I tried <Font="Red"> Before it and it ignored it. exmaple of inline styles. Watch for wrapping: <Input style='color:red;background-color:black;font-weight:bold' Type="Button" Value="Click To Look Up By S.A.T. Test Code" Name="SATL" OnClick="ACQYB()"> Change to suit your taste. On colors, consider that you can use the many HTML constants like red, green, black, white, etc. You can also use RGB values like #FF0000. The first 2 hex digits are the red value, then green & lastly blue. You can fine-tune these to get exactly the colors and shades you are looking for. Below are a few links: http://html-color-codes.com/ http://www.w3schools.com/HTML/html_colornames.asp http://www.w3schools.com/Html/html_colors.asp |
My System Specs![]() |
| | #3 (permalink) |
| | Re: Font on Button Thank You, Works Great! "James Whitlow" wrote: Quote: > "Leona Leal Educator" <LeonaLealEducator@xxxxxx> wrote in > message news:022157D3-65D4-4DEC-8121-9081790F264A@xxxxxx Quote: > > Please have patience guys, database applications programmer just starting > > out > > with asp. > > > > Designing pages for my high schools using their school colors, the gray > > Buttons with the Black font just not stand out well or looks bad. > > > > One the following script how do I get the font to appear in Red? > > > > <Input Type="Button" Value="Click To Look Up By S.A.T. Test Code" > > Name="SATL" OnClick="ACQYB()"> > > > > I tried <Font="Red"> Before it and it ignored it. > You can use inline styles or CSS (Cascading Style Sheets). Below is an > exmaple of inline styles. Watch for wrapping: > > <Input style='color:red;background-color:black;font-weight:bold' > Type="Button" Value="Click To Look Up By S.A.T. Test Code" Name="SATL" > OnClick="ACQYB()"> > > Change to suit your taste. On colors, consider that you can use the many > HTML constants like red, green, black, white, etc. You can also use RGB > values like #FF0000. The first 2 hex digits are the red value, then green & > lastly blue. You can fine-tune these to get exactly the colors and shades > you are looking for. Below are a few links: > > http://html-color-codes.com/ > http://www.w3schools.com/HTML/html_colornames.asp > http://www.w3schools.com/Html/html_colors.asp > > > |
My System Specs![]() |
| | #4 (permalink) |
| | Re: Font on Button It's not an ASP issue. It's a web design issue. You really need to spend a little time studying CSS if you're going to be doing webpages. I answered almost the same question from you a couple of days ago. You apparently didn't understand that answer but didn't ask any follow-up questions. So now you're still trying to accomplish what you need through HTML attributes. With CSS you can have much better control than with HTML attributes. HTML alone is very limited. In fact, the FONT tag has been "deprecated" for years now in favor of styles. With styles you can also assign IDs and CLASSes to page elements and assign styles to those. James Whitlow posted a sample of inline styles. I posted a sample of using IDs in a STYLE tag to affect any element that has that ID. You can use a class assignment to create a custom-designed element for reuse. In other words, if you have 10 buttons that you want to be red you can give them all a class assignment, like <INPUT CLASS="RedButton"... and then assign the red to all of them in a STYLE tag that goes in the HEAD section of the page: <STYLE> ..RedButton {background-color: #FF0000;} </STYLE> If you decide to learn about CSS you might try the O'Reilly guide written by Eric A. Meyer. He writes clearly and simply, while also being expert. He's also got some online information that details more advanced CSS techniques: http://meyerweb.com/eric/css/ Quote: > Please have patience guys, database applications programmer just starting Quote: > with asp. > |
My System Specs![]() |
![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| Button Cotrol: Event, when mouse leaves button with mousebutten still down | .NET General | |||
| Vista SP2: Stop button disabled when Send/Recv button pressed | Vista mail | |||
| Outgoing font and font size | Vista mail | |||
| disable lock button beside power button? | Vista General | |||
| How to remove unneeded large asian font files from font folder | Vista account administration | |||