how to get these symbols on buttons in HTML - html

i am unable to find these symbols for HTML buttons.
please tell me how to put these symbols on HTML buttons.

If you want to add arrow symbols to as text to button in HTML, you have several options.
Select a font that features arrows and use it.
Use Unicode symbols with the &<identifier>; syntax and use a code from this page.
If a custom image is what you're after, download or locate the image you want to place on the button and apply the following css to your button, replacing the url with the one from the image.
.button {
background-image: url('image/url/image.png');
}

Related

HTML and CSS codes to be together color highlighted in one .html project

I am doing HTML/CSS as beginner and when I add an simple CSS styled button code in my HTML file it won't highlight that code with an specific color. I changed in settings from HTML to CSS highlights but then it doesn't show HTML color codes but it finally shows up CSS highlighted colored codes. If you really didn't understand me, what I am about to say is like when <a href="Website.html" is colored with href as green colored code and the other one CSS code such as .btn, border: none; etc it doesn't have any color until I change it in the settings but later that .btn and whole CSS file have colors but HTML doesn't. If can anyone tell me if I can do something in any of these two Notepad++ or Sublime Text 3.
Sublime Text should be able to tell which syntax highlighting to use, if the file syntax is set to HTML. As long as your css is inside style tags. If it is and you're still not seeing correct highlighting, it might be an issue with your particular color scheme.

Want special private character to use in input field

I thought this would be easy, but clearly it takes someone smarter than me to do this. My project as a special currency symbol to use instead of $. We have been using it as a tiny image and imbedding it with <img>. But, cannot use it in an <input> field. In particular want to make it part of the button text in a type=submit <input> field.
I have read a lot, but not understanding what makes sense to do this. I created a private character using Windows Private Character editor, but I need a way for html to render it for me in an <input> field.
I was reading about <glyph-data> and also icon fonts. I had this feeling (just a feeling) that icon fonts might do this for me, but it looked like quite an investment in time to get it done.
Can anyone suggest an approach for this that makes sense?
There already is common currency sign: ¤ (¤ or ¤).
I'd advise to get your desired "private image" in SVG format, visit IcoMoon web application, upload it there, generate webfont while assigning the corresponding character point 00a4. By this you'll get backwards compatible representation of common currency sign with alternative shape of your will.
You can use and image or an icon in a button, here is a good example of how to do it - Font-awesome, input type 'submit'
Creating a special character is nothing more than creating a logo or something similar. You need to export this symbol to SVG and use it either as embedded SVG or an icon font (I suggest http://fontello.com/).
Also, please note that if you only want to use it in a button, you can use <button> tag, like this:
<button type="submit"><img src="your/image.png" alt="currency"></button>
It will work just like input[type="submit"].
You can set the background image of a button (or any input field really).
#submitButton {
background-image: url('/link/to/image');
background-position: left center;
padding-left: 12px; /* or whatever your image width is */
}
The above CSS assumes you are putting additional text in the submit button
<input type="submit" id="submitButton" value="Some text"/>
If you don't put any text and only want to use the image, you can just set the background position to center center and remove padding-left

Base64 encoded SVG isn't colorable via an inline style in the HTML markup nor via a class in the CSS

I have a SVG logo i want to place a few times on a single page. Each time it should show up in a different color. That colors are defined via the Wordpress backend. The colors get applied with a snippet like that:
<div class="logo" style="fill:<?php the_field('op-about-color', 'option'); ?>;"></div>
The SVG is placed in the CSS and is base64 encoded. Inside the <svg>tag i've also included the class logotest. But the problem is the SVG isn't getting colored. I've created an example pen with the base64 encoded svg:
http://codepen.io/rpkoller/pen/DuqBh
It stays black.Opposite to the fact that the inline style filled it red and even the assignment of the fill color green for the sktest class has no effect at all.
If i place an unencoded svg code right into the html into a div everything works as expected. Inline style assignment as well as with the logotest class:
http://codepen.io/rpkoller/pen/rdFup
Is there a way to get things going with the base64 variant? Best regards Ralf
Your problem is in your implementation. It's not necessarily that base64 is the issue so to speak, but the difference between including the image as a CSS background, versus including it in HTML.
In HTML... You literally can read the code of the SVG in the HTML. Because that HTML markup exists in the DOM, it is editable via CSS through your classes. If you were to right click the page and click "View page source" you would see the code of the SVG in the HTML.
In CSS, you are adding the image as a background image. Background images don't get any sort of HTML markup that is outputted into the DOM. It is... an "effect" if you want to say it that way, which is applied to some HTML element that you define. If you right click the page and click "View page source" you will see the element that you are applying the background image to, but there is no additional markup outputted that further CSS could then read and modify.
What are your options? Well, you could apply the inline styling directly to the SVG image, but that isn't in any way dynamic, so you won't be able to do your back-end snippet for class names and such.
The other option is to include the SVG like you have done already, which is called "Inline SVG". This way you can effect it with CSS code.

Change formatting on specific parts of text with TextArea

I have a little bit of a problem here. I am making a kind of chat application in Flash CS5, using Action Script 3, and I am trying to make URLs that appear in the main chat textbox (where all of the things that other people have said come up), which is a TextArea component, be converted into HTML link tags. I have this working, but the problem I am facing now is that the links appear black. I want them to appear with an underline, and blue text. I am formatting the TextArea with TextFormat, and I am using some of the functionality that is only available in TextAreas, so I cannot use plain dynamic labels.
I have also tried using the style attribute of the link tag, but that didn't do anything.
How can I change the formatting for the link tags to appear blue and with an underline?
My current code for changing the links to HTML link tags looks like this:
txtOutput.htmlText += replace(/(?:http|https):\/\/\S*/g, function ():String
{
return '' + arguments[0] + ''
});
have a look at style sheets you can implement hyperlink styles form there.
update:
The textArea has a textField property. try applying he style sheet to that.

How to add an image to tool tip using javascript?

How can I show an image as a tool tip in my web page. I want my tool tip in a custom image, rather than the usual one. I tried defining a class to hold the image and added the class to the anchor element, but I did not get the image. Someone help me.
My css:
.bubbleText{
background:transparent url(../images/static/link_hover_M_120.png) no-repeat;
}
.questionIcon{
background: url(../images/static/question2.png) no-repeat;
text-decoration:none;
}
My html code:
<a title="Your Contact number" href="#" class="questionIcon bubbleText"> </a>
The questionIcon class hold a 'question mark' image. On hovering on the question mark, I need the tool tip to be displayed inside the image. The image is just a white box with borders.
If you mean you want to style the tooltip you'll need to use javascript to create the functionality. What script you use depends on what JS framework you're using, if any.
There's a big list of tooltips on this site : http://www.1stwebdesigner.com/css/stylish-jquery-tooltip-plugins-webdesign/
Uses different frameworks, so pick the one that works for you.
I would use a common library like jQuery. There are a lot of running examples: http://jquery.bassistance.de/tooltip/demo/
Browsers don't support rich tooltips but it can still be done
The easiest way is to use some plugin (if you're using something like jQuery) that provides rich tooltips functionality. Browsers can only display text that's defined in alt attribute (of image elemnt) or title attribute in any other HTML element (including image).
This will get you started on jQuery tooltip plugins.