Missing whitespace in combobox - html

My code:
<select><option value='3'>0000000000000001 11121</option></select>
I want to get combo box with spaces between two numbers, however all I get is the same as this:
<select><option value='3'>0000000000000001 11121</option></select>
Can someone advice how to get additional whitespace.

well you can put inside your tag like this:
<select><option value='3'>0000000000000001 11121</option></select>
White spaces aren't interpreted by html
It is essentially a standard space, the primary difference being that a browser should not break (or wrap) a line of text at the point that this occupies.
JSFIDDLE

You need to fill area not with space symbol but with .
is the entity used to represent a non-breaking space.
So try this:
<select><option value='3'>0000000000000001 11121</option></select>

To add spaces to your text, you can use the character entity.
Try this:
<select><option value='3'>0000000000000001 11121</option>
</select>
Demo

Related

HTML - text position like squared number

As I found this for squared symbol numbers.
Is it maybe possible to have some [text] like number two is presented in example?
Like here if you put:
²
in HTML code you got: 2²
Put those characters after the text you want or your can use <sup> tag around 2.
2²
2<sup>2</sup>
This is called Superscript and actually there is a special HTML element just for this task: <sup>
You simply need to wrap your desired text inside <sup></sup>
Here's an example:
<span>my<sup>text</sup></span>

select text and hint other same text

When I select Button, other line "Button" surrounded by rectangle, like this:
When I select Button, other line "Button" don't have rectangle, like this:
word_separators remove ".:"
"word_separators": "/\\()\"'-,;<>~!##$%^&*|+=[]{}`~?"
how to control rectangle
This has nothing to do with plugins. The auto-highlighting functionality only works for selecting whole words, meaning they are surrounded by word boundaries (\b in regex-speak). When you remove . and : from "word_separators", those characters are no longer treated as word boundaries, and Button in the line
ccui.Button:create(string,string,string,int)
is no longer selected. Easy fix: add . and : back to "word_separators", so you get something like this:

How to add a blank spaces before and after the content inside a layer?

The next code trims the blank spaces before and after the text:
<div> foo </div>
So, How to add blank spaces there?
Use
This is a space in html.

Html tags inside of double quote

I need to bold the words inside of double quotes.
title="Character needs to be bold"
When i put <b></b> inside of title's double quote. it just displays them as it is.
So, Is there any way i can bold the characters inside the double quotes?
Are you trying to markup the text inside a title attribute? Because that's not going to work, you'll have to resort to some kind of extended tooltip solution (can be js, but there's also ways to do it with just html/css).
See this question:
Tooltip with HTML content without JavaScript
Some more context would be appreciated though, just the title attribute doesn't give us much information
Title was edited to give context, my answer remains the same.
There is a way depending on the node you are using the 'title' attribute under. See if it has a 'format' attribute as by default the title is set to 'text'. If so, set the format="html", then you will be able to use <b> within your title.
As far as i know you cannot format the string, that is used as the title of a html document. That ist the String, that will get the titel of the tab or window of the browser etc.
If you have a html-entity, that needs formatting, you can format the whole thing with style="your css style", or other css integration. If you have a switch of formatting inside one html entity, you schould look after dividing it up into multiple entities or using another aproach. Do you have a complete example?
cheers,
nx
use < b > Character needs to be bold < / b>
no spaces in between the b and the symbols

format text in textarea

I need to display the text retrieved from the database in the <textarea> tag. But the thing is that i get this text from db with html tags, like:
The line number 1<br>
The line number 2<br>
The line number three<br><br>
But when i do:
<textarea>mytext</textarea>
Inside the textarea box i get exatly the same text will all the tags, like
The line number 1<br>
The line number 2<br>
The line number three<br><br>
htmlspecialchars didn't help. It just made it to display entities instead of formatted text, without any tags as if it was show on the web page
What I need is just to show formatted text without possibility to edit it.
How can I accomplish this?
You can use following:
I hope it helps.
I'm not sure why you have HTML tags like <br> in your database. Did you use nl2br before saving or something? You shouldn't do that. Replace them by fullworthy newlines and it'll work in the textarea.
If you intend to present them in a non-textarea afterwards, then you're allowed to use nl2br or like (only at the point of presentation!), or just use CSS white-space: pre instead.