CSS Example: Unicode-Bidi Property
<title>Example</title>
<style>
p {
direction: rtl;
unicode-bidi: embed;
}
</style>
<p>This text has had its properties set using the unicode-bidi and direction properties.</p>
<p><strong>Note</strong>: These properties are mainly used for languages that run from left to right or both. If you are using english characters, try adding some punctuation to see what effect they have, for example, a full stop at the end of a paragraph.</p>
In this example, the left side provides the code used to render the output in the right side.
Feel free to copy and paste the code into your own project and modify as you wish.
About CSS
CSS stands for Cascading Style Sheets. It's used to add styles to web pages. It's typically added to HTML pages using the <link>
tag, so that we can have the CSS in a separate file to the HTML file. However, we also have the option of embedding the CSS in the actual HTML file by using the <style>
HTML tag, or by using the style
attribute within an individual HTML tag.