Issue
I am trying to create a button with 2 parts of text, first the button text itself (title) and then (on the other side -> right) the price, also the price should have another color. So, if this is the button -> |title 3$|, the price must be aligned on the right! How would I do something like this? Please help, kind regards.
This is my button:
<input type="submit"
name="message"
class="myClass"
style="text-align: left;"
value="  Title">
Solution
You should use the html button element instead of a input element:
<button type="submit" style="width:10em;"><span style="float:left;">title</span><span style="float:right;">3$</span></button>
Answered By - Henryc17
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.