<h3 style="text-align:start;"><span style="color: rgb(97,189,109);font-size: 24px;font-family: Source Sans Pro;">(optional) customChunkRenderer</span></h3>
<p><span style="color: rgb(51,51,51);font-size: 18px;font-family: Source Sans Pro;">Use to define additional HTML nodes. Only supports atomic blocks.</span></p>
the above code has to be sanitized in react, like
use jsx and convert this to jsx format
use this -
<h3 style={{textAlign: 'start'}}><span style={{color: 'rgb(97,189,109)', fontSize: 24, fontFamily: 'Source Sans Pro'}}>(optional) customChunkRenderer</span></h3>
<p><span style={{color: 'rgb(51,51,51)', fontSize: 18, fontFamily: 'Source Sans Pro'}}>Use to define additional HTML nodes. Only supports atomic blocks.</span></p>
Related
I am displaying a greeting to the user on my dashboard page, how can I change the first 2 words (the div) to be a larger, maybe even a different font? Can I add a space margin underneath too, to separate the greeting from the rest? (This is me trying to learn Laravel) Thank you :)
So far I've tried:
<div>
#isset($user)
<style type="text/css">
#font-face {
font-family: Muli-Bold;
src: url('{{ public_path('fonts/materialdesignicons-webfont.ttf') }}');
} // I guess I need an #endfont-face here, but for some reason my ide wasn't recognizing it
</style>
Hallo {{ $user->name }},
#endisset
</div>
<div>Willkommen im <b class="text-gray-700">Formular-Editor!</b></div>
<div>Neue Formulare kannst du รผber den Tab <i><b class="text-gray-700">"Editor"</b></i> oben in der Leiste anlegen. Hier kannst Du auch bestehende Formulare bearbeiten.</div>
(I've also tried putting "hello user" into the style component/tag)
also like this:
<div font-size="3">
Hallo {{ $user->name }}
</div>
But they haven't worked. What's the best way to make it work without insalling trailhead?
Move your #isset($user) to wrap the <div> element and apply your styles on the <div>. There is no point performing #isset($user) inside the <div> as all that will do is render a redundant empty element.
#isset($user)
<div style="font-family: Muli-Bold; font-weight: bold; text-decoration: underline; padding-bottom: 10px;">
Hallo {{ $user->name }},
</div>
#endisset
You can apply any other css styles you want in the same manner, however, it would be better to define one or more classes which encapsulate the required styling and then apply the class to your elements.
Is there a work around to make country flag emoji visible on windows 10 through HTML?
<!DOCTYPE html>
<html>
<style>
body {
font-size: 40px;
}
</style>
<body>
<p>9983 will display โฟ</p>
<p>How to display American or Japanese flags?</p>
<p>๐บ๐ธ is just letters on Windows 10 ๐</p>
</body>
</html>
I found this on https://mdbootstrap.com/docs/jquery/content/flag/
I don't see a flag emoji on https://www.w3schools.com/charsets/ref_emoji.asp
I can view them on https://www.emojicopy.com/ but cannot use.
I found a CSS flag on
https://github.com/pixelastic/css-flags/blob/master/app/styles/_flags/usa.scss
I'm still learning to use stackOverflow, and I'm new at coding.
This is my fourth try at this question.
Use Noto Color Emoji font.
First, write a #font-face rule with the unicode-range property. Then add the font to the top of your font stack:
(Source)
#font-face {
font-family: NotoColorEmojiLimited;
unicode-range: U+1F1E6-1F1FF;
src: url(https://raw.githack.com/googlefonts/noto-emoji/main/fonts/NotoColorEmoji.ttf);
}
div {
font-family: 'NotoColorEmojiLimited', -apple-system, BlinkMacSystemFont,
'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji',
'Segoe UI Emoji', 'Segoe UI Symbol';
}
<div>
<p>
๐ฆ๐ซ ๐ฆ๐ฑ ๐ฉ๐ฟ ๐ฆ๐ฉ ๐ฆ๐ด ๐ฆ๐ฌ ๐ฆ๐ท ๐ฆ๐ฒ ๐ฆ๐บ ๐ฆ๐น ๐ฆ๐ฟ ๐ง๐ธ ๐ง๐ญ ๐ง๐ฉ ๐ง๐ง ๐ง๐พ ๐ง๐ช ๐ง๐ฟ ๐ง๐ฏ ๐ง๐น ๐ง๐ด ๐ง๐ฆ ๐ง๐ผ ๐ง๐ท ๐ง๐ณ ๐ง๐ฌ ๐ง๐ซ ๐ง๐ฎ ๐จ๐ป ๐ฐ๐ญ ๐จ๐ฒ ๐จ๐ฆ ๐จ๐ซ ๐น๐ฉ ๐จ๐ฑ ๐จ๐ด ๐ฐ๐ฒ ๐จ๐ฉ ๐จ๐ท ๐จ๐ฎ ๐ญ๐ท ๐จ๐บ ๐จ๐พ ๐จ๐ฟ ๐ฐ๐ต ๐จ๐ฌ ๐ฉ๐ฐ ๐ฉ๐ฏ ๐ฉ๐ฒ ๐ฉ๐ด ๐ช๐จ ๐ช๐ฌ ๐ธ๐ป ๐ฌ๐ถ ๐ช๐ท ๐ช๐ช ๐ธ๐ฟ ๐ช๐น ๐ซ๐ฏ ๐ซ๐ฎ ๐ซ๐ท ๐ฌ๐ฆ ๐ฌ๐ฒ ๐ฌ๐ช ๐ฉ๐ช ๐ฌ๐ญ ๐ฌ๐ท ๐ฌ๐ฉ ๐ฌ๐น ๐ฌ๐ณ ๐ฌ๐ผ ๐ฌ๐พ ๐ญ๐น ๐ญ๐ณ ๐ญ๐บ ๐ฎ๐ธ ๐ฎ๐ณ ๐ฎ๐ฉ ๐ฎ๐ท ๐ฎ๐ถ ๐ฎ๐ช ๐ฎ๐ฑ ๐ฎ๐น ๐ฏ๐ฒ ๐ฏ๐ต ๐ฏ๐ด ๐ฐ๐ฟ ๐ฐ๐ช ๐ฐ๐ฎ ๐ฐ๐ผ ๐ฐ๐ฌ ๐ฑ๐ฆ ๐ฑ๐ป ๐ฑ๐ง ๐ฑ๐ธ ๐ฑ๐ท ๐ฑ๐พ ๐ฑ๐ฎ ๐ฑ๐น ๐ฑ๐บ ๐ฒ๐ฌ ๐ฒ๐ผ ๐ฒ๐พ ๐ฒ๐ป ๐ฒ๐ฑ ๐ฒ๐น ๐ฒ๐ญ ๐ฒ๐ท ๐ฒ๐บ ๐ฒ๐ฝ ๐ซ๐ฒ ๐ฒ๐จ ๐ฒ๐ณ ๐ฒ๐ช ๐ฒ๐ฆ ๐ฒ๐ฟ ๐ฒ๐ฒ ๐ณ๐ฆ ๐ณ๐ท ๐ณ๐ต ๐ณ๐ฑ ๐ณ๐ฟ ๐ณ๐ฎ ๐ณ๐ช ๐ณ๐ฌ ๐ฒ๐ฐ ๐ณ๐ด ๐ด๐ฒ ๐ต๐ฐ ๐ต๐ผ ๐ต๐ฆ ๐ต๐ฌ ๐ต๐พ ๐ต๐ช ๐ต๐ญ ๐ต๐ฑ ๐ต๐น ๐ถ๐ฆ ๐ฐ๐ท ๐ฒ๐ฉ ๐ท๐ด ๐ท๐บ ๐ท๐ผ ๐ฐ๐ณ ๐ฑ๐จ ๐ป๐จ ๐ผ๐ธ ๐ธ๐ฒ ๐ธ๐น ๐ธ๐ฆ ๐ธ๐ณ ๐ท๐ธ ๐ธ๐จ ๐ธ๐ฑ ๐ธ๐ฌ ๐ธ๐ฐ ๐ธ๐ฎ ๐ธ๐ง ๐ธ๐ด ๐ฟ๐ฆ ๐ธ๐ธ ๐ช๐ธ ๐ฑ๐ฐ ๐ธ๐ฉ ๐ธ๐ท ๐ธ๐ช ๐จ๐ญ ๐ธ๐พ ๐น๐ฏ ๐น๐ญ ๐น๐ฑ ๐น๐ฌ ๐น๐ด ๐น๐น ๐น๐ณ ๐น๐ท ๐น๐ฒ ๐น๐ป ๐บ๐ฌ ๐บ๐ฆ ๐ฆ๐ช ๐ฌ๐ง ๐น๐ฟ ๐บ๐ธ ๐บ๐พ ๐บ๐ฟ ๐ป๐บ ๐ป๐ช ๐ป๐ณ ๐พ๐ช ๐ฟ๐ฒ ๐ฟ๐ผ
</p>
<p>
Noto Color Emoji abcdefghijklmnopqrstuvwxyz0123456789
</p>
</div>
Flags don't seem to work on Windows due to political reasons, see https://answers.microsoft.com/en-us/windows/forum/all/flag-emoji/85b163bc-786a-4918-9042-763ccf4b6c05?page=1
This thread seems to have found a workaround
Flag Emojis not rendering
Windows includes the Segoe UI Emoji font, but it does not support flags. To see flag emoji on Windows 10, you'll have to provide a custom emoji font that does support flags.
There's an ISO standard with two-letter codes for countries, like "JP" for Japan. In Unicode, the emoji flags are encoded as a pair of special characters that correspond to "A" to "Z", but that are different characters from A-Z. You can see the different sequences at https://unicode.org/emoji/charts/full-emoji-list.html#country-flag. For example, for the Japanese flag the sequence U+1F1EF U+1F1F5 is used. To encode those in a Web page, you can use character entities ๐ฏ๐ต: "๐ฏ๐ต". If the browser / host OS support display of emoji flags, that's what you'll see. If not, you'll probably see something that looks like "JP".
The problem is that the Windows' default emoji font, Segoe UI Emoji, has the 26 country flag letter codepoints the country flags are composed of, but has only letters representing them, so the flags will always be rendered as the Segoe UI Emoji letters unless an application explicitly declares that another Emoji Font is to be preferred.
Luckily, you can just replace the Windows Emoji font by taking another Emoji Font and changing its internal name to Segoe UI Emoji.
I did that for Google's Noto Emoji font, which you can download at https://github.com/perguto/Country-Flag-Emojis-for-Windows.
I have an eCommerce store on WordPress. We just migrated from Opencart to WordPress and have been having issues regarding the product description.
All our products have different CSS in the description and we were hoping it could be done the way its done in opencart (where css tags start with style tag and followed by HTML classes which are referred in HTML tags).
An example of the code from OpenCart is pasted below to give an idea:
I tried doing the same thing that I did for opencart but that doesn't seem to work in the product description editor on wordpress. It's just taking the HTML tags and totally ignoring the css tags.
<style>
body {
font-family: Open Sans, Arial, Helvetica, sans-serif
}
#topDiv {
font-family: Arial, Helvetica, sans-serif
}
.tt1 {
color: #000;
font-size: 16px;
font-size: calc(100% + 24 * (100vw - 320px) / 1600);
font-size: calc(16px + 24 * (100vw - 320px) / 1600);
line-height: 1.2;
font-weight: 700
}
</style>
<div class="tt1">Pair Seamlessly</div>
It's just displaying "Pair Seamlessly" without any formatting that should be coming from the css tag
I haven't done a lot of work in wordpress, but from what I know I believe there is specific file where you put all your CSS. Here's an article that might help. How to Find WordPress CSS File
Because all of your products rely on the same file (e.g. single-product.php or something similar) all the css you write for this file will be applied to al of your products. The easiest thing you can do is to give your products an ID. You can achieve this by passing the_ID(); into your while loop. Each product will have his own ID, so every product can have its own styling.
So basically you'll get something like this:
<ul class="products">
<?php
$args = array(
'post_type' => 'product',
'posts_per_page' => -1
);
$loop = new WP_Query( $args );
if ( $loop->have_posts() ) :
while ( $loop->have_posts() ) : $loop->the_post(); ?>
<div class="product" id="product-<?php the_ID(); ?>">This is your product</div>
<?php endwhile;
else :
echo __( 'No products found' );
endif;
wp_reset_postdata();
?>
Now you can style your products like for example this way
#product-1 {
background-color:red;
}
Styles should be applied in its own stylesheet, which should be enqueued in functions.php
The following documentation should give you enough guidance in how to do so:
https://developer.wordpress.org/reference/functions/wp_enqueue_style/
I found the answer. Insert the following code to your child's theme functions.php file:
add_action( 'woocommerce_after_add_to_cart_button', 'css_for_products', 30 );
function css_for_products() {
global $product;
if ($product->id == 784 or $product->id == 832 )
{
wp_enqueue_style( 'sample-code', 'https://www.yoursite.com/css/custom.css',false);
}
Where custom.css is the css file that will be uploaded to the above location. Add more conditions for different products.
I have following html code (data coming in the variable as UTF-8)
<p style="margin: 0; font-size: 14px; font-family: Helvetica, Arial, sans-serif;">
Project Name: <span th:text="${projectName}">ProjectName</span>
</p>
Any special character that is in ${projectName} , for example : "Carol's" is getting converted to "Carol?s" in Outlook mail. Anyway to correct this in Thymeleaf ?
I'm pretty new in objective C
I try to pass a NSString containing some html and css to my webview :
[_webView loadHTMLString:htmlString baseURL:nil];
The string :
#"<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01//EN\">\n<html>\n <head>\n <style type=\"text/css\">\n
body {\n font-family: \"Gill sans\";\n font-size: 12pt;\n color: #808080;\n margin: 0px;\n }\n
a:link, a.visited, a:active {\n font-style: normal;\n color: #ffffff;\n text-decoration: underline;\n }\n
.accroche {\n font-size: 19pt;\n color: #ffffff;\n text-align : center;\n }\n
#title {\n \n text-transform : capitalize;\n }\n
</style>\n
</head>\n
<body>\n
<div id=\"title\">Informations Utiles</div>\n
<p><span class=\"accroche\"><p>blablahblablablah<br /> blabla<br />blabla <br /> </p></span></p>\n
</body>\n</html>\n"
Sorry about the formatting but i don't want to change it too much as it may hide things.
Problem is, on the screen in the simulator, css is just ignored, capitalize wont work, as well as text-align or font-size, anything...
Any idea?
I have tried this on a real device and it renders correctly. This is a simulator issue :(
I was using Xcode 4.3.2 and the simulator running iOS5.1.
I will raise this as a bug with Apple, but hopefully this answer will help somebody else in the future!
Hope it helps.