473,396 Members | 1,712 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

How can i make a button that looks like the one that says +Ask Question?

4
I have already tried one code but didnt really work. this is the code
Expand|Select|Wrap|Line Numbers
  1. <div> <input type="button" value="Button Text" style="border-style:none;" /> </div>
. I want the button to be a flat HTML 5 button but can't figure out how to do it.
Feb 6 '13 #1
9 2185
Rabbit
12,516 Expert Mod 8TB
You didn't set the background color and color of the text. Also, you should avoid inline sytles.
Feb 6 '13 #2
WebBoy
4
Is this the right code?
Expand|Select|Wrap|Line Numbers
  1. <div> <input type="button" value="Button Text" background="Blue" text color="Black" /> </div>
I hope i did that right.
Feb 7 '13 #3
Rabbit
12,516 Expert Mod 8TB
You should be able to tell if that's right or not by looking at the result.
Feb 7 '13 #4
WebBoy
4
It stil shows the normal button style not the flat button. Would you be able to tell me what i am doing wrong. And how i can fix it? I want it to be the HTML5 flat button.
Feb 7 '13 #5
acoder
16,027 Expert Mod 8TB
Why don't you just right click and Inspect Element (where supported)?

If you're using Firefox, get Firebug. Chrome has a decent built-in inspector. You can also use Firebug Lite for other browsers. There are also other tools.
Feb 7 '13 #6
Rabbit
12,516 Expert Mod 8TB
That's because you didn't do your style correctly. That and you're still trying to inline your styles when you should avoid that whenever possible.
Feb 7 '13 #7
Exequiel
288 256MB
Expand|Select|Wrap|Line Numbers
  1. <div> <input type="button" value="Button Text" style="background: blue; color: white; padding: 5px; text-shadow: 0px 1px 1px; box-shadow: 1px 2px 3px rgba(1,4,3,0.3);" /> </div>
try that code . . . observed and try it. . .
Feb 8 '13 #8
Exequiel
288 256MB
try to learn css3. . . search it in google. . .
Feb 8 '13 #9
WebBoy
4
Ok thanks Rabbit for the tip. And thanks Exequiel for the code it worked.
Feb 8 '13 #10

Sign in to post your reply or Sign up for a free account.

Similar topics

11
by: Bernie Yaeger | last post by:
If the user clicks the processit button, the click event code runs. What happens if he/she clicks it again before it's done processing? Does the system remember and process twice? Does it ignore...
1
by: Agnes | last post by:
I use vb.net to preview the report (it is designed by cyrstal report), and there is "X" button on the left hand side of "refresh", when I mouse on"X" button , it said "close current view" However,...
0
by: Adham Karam Salim | last post by:
Dear Sir : I want to know how we convert the unit (Bq/ml) to (ppm). Thank you EggHeadCafe.com - .NET Developer Portal of Choice http://www.eggheadcafe.com
1
by: sam | last post by:
Hi, I just want to ask what the use of unescape function and when and how to use it.
3
by: =?Utf-8?B?U2F0eWE=?= | last post by:
Even though I bought new VS 2008 but still the command buttons looks same old model like Visual Basic 6, not like classic look. What is the solutions for this? bye
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.