Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Login profile name #13

Open
vaibhao-ps opened this issue Jan 20, 2022 · 1 comment
Open

Login profile name #13

vaibhao-ps opened this issue Jan 20, 2022 · 1 comment

Comments

@vaibhao-ps
Copy link

vaibhao-ps commented Jan 20, 2022

Hello,

We have a request to separate a word "Hello" and "Username" into different html spans, so that we can style it on RTL version of our website.

We basically need to flip the email id in RTL version so that user can see the first letters of the email id instead of last letters.
We also want to implement a functionality where we would change the direction for Arabic text and English text based on the RTL/LTR version of website.

Please refer the attached screenshot.
test-email-id

Thanks!

@charzlwebz256
Copy link

Unfortunately, I cannot see any attached screenshot. However, I can provide you with some guidance on how to separate "Hello" and "Username" into different HTML spans and how to flip the email ID for RTL versions of your website.

To separate "Hello" and "Username" into different HTML spans, you can wrap them in separate elements like this
`


Hello
Username

` Then, you can apply CSS styles to the hello and username classes as desired to achieve the desired styling.

To flip the email ID for RTL versions of your website, you can use the CSS direction property. This property controls the direction of text, and can be set to either ltr (left-to-right) or rtl (right-to-left). To flip the email ID, you can wrap it in a separate element and apply the direction property to that element. For example:
`.email {
direction: rtl;
}

.email .username {
direction: ltr;
}
`
This would display the email ID in reverse order, with the domain name on the left and the username on the right, as is typical in RTL languages. The username span would be set to ltr direction so that it displays correctly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants