css3 perspective for text with a sleek appearance

I am currently facing a rather simple issue.

I have a 3D container with text inside it, here is an example:

.container{
    transform: perspective(120px) rotateY(45deg);
}
<div class="container">
Lorem ipsum dolor sit amet consectetur adipisicing elit. Quod, quis debitis odio facere 
voluptate <br> expedita non vel, accusamus eos, autem ipsam. Quis, in necessitatibus quod 
assumenda accusamus <br> asperiores deleniti sint!
</div>

However, the quality of the text appears to be quite low. How can I resolve this?

I have already attempted the following solution without success:

-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;

Answer №1

To improve the resolution and clarity, consider adjusting the font-size along with the rotation degree.

.container{
    transform: perspective(120px) rotateY(15deg);
    font-size: 4em;
}
<div class="container">
  Lorem ipsum dolor sit amet consectetur adipisicing elit. Quod, quis debitis odio facere voluptate <br>  expedita non vel, accusamus eos, autem ipsam. Quis, in necessitatibus quod 
assumenda accusamus <br>  asperiores deleniti sint!
</div>

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

Issue with Angular 2 NgFor Pattern Error Message Display Absence

I am attempting to incorporate inputs with a regex requirement within an ngFor loop, but I am not receiving the expected error message when entering something that does not match the required pattern. Even when I input an incorrect pattern, "Test" remains ...

Tips for capturing the interaction between a jQuery Dialog and its Parent

Within the parent HTML, there is a call that triggers a JavaScript function. <div class="data"> <form:input title="Building" styleClass="content contractorDisable" maxlength="5" size="6" path="fireImpairForm.bldCode" />&nbsp; <a hre ...

Preventing Text Truncation in THREE.js Texture Created from 2D Canvas

Many people tend to use the 2D canvas texture method for creating text billboards, sprites, and overlays in THREE.js scenes instead of relying on imported image files. You can check out an example by Lee Stemkoski here. However, I have noticed that when a ...

Determining if an HTML dialog was closed using the escape key

Wondering about detecting when an HTML dialog is closed using the ESC key. Specifically referring to the HTML dialog, not jQuery. ...

What is the best way to transfer data to a different section of my HTML webpage using PHP?

Can data be passed from an array to another part of the html code that is not in the same file? In file item.php and index.php, there is an array with objects. The goal is to include item.php as many times as the count of items in the array and send diffe ...

Issue with Google Chart overlapping drop down menu in CSS紿orizontal scrollingyan

I've exhausted all my options. I've experimented with positioning and z-indexes, but no matter what I try, the drop-down menu remains hidden behind the google chart. It functions properly on Firefox, but not on Chrome or IE. Any helpful advice wo ...

What could be the source of this margin or spacing?

Within this test, I have noticed that there are 2 inline flex containers. Specifically, I am referring to the test scenario that states Next The flex containers are laid out inline. Despite the fact that there is some space between the containers, upon in ...

Leverage variables in mixins and extends within Less.js

When using a variable with mixin or extend in Less.js, the following code will result in an error: @bar : bar; .@{bar} { background: yellow; } // ParseError: Missing closing ')' .foo { .@{bar}(); } // This will not work .jam { &:ex ...

Refresh the HTML webpage using AJAX technology

I am trying to implement a simple html page with a single table that updates in the background every 5 seconds. The traditional solution of using <meta http-equiv="refresh" content="5"> is not suitable as it would disrupt the user experience by displ ...

What is the best way to find the right construction match?

Currently, I am in the process of parsing text and looking to match a specific type of text that I want to remove entirely. The format of the text I am trying to target is as follows: <tr class="label-BGC"><td colspan="4">any content here</ ...

Steps for turning off image maps on a slider for mobile users

Hello, I'm currently working on a website that has an image slider with image maps embedded in each image. Everything works perfectly on desktop, but when it comes to mobile versions, things start to get messy. I was wondering if there is any way to d ...

What is the best way to decrease the spacing between buttons?

I've been working on creating a welcome banner for my index page, but I'm facing an issue where the buttons need to be closer to each other. However, I can't seem to figure out how to achieve this. The buttons should be aligned to the right ...

jPages fails to recognize dynamically added images using jQuery in real-time

I have a HTML and JS script that is designed to load images from PHP using AJAX and then place them into a div. Afterwards, a JavaScript function will paginate the images. Everything works perfectly fine when I hardcode the images manually. However, when I ...

Could you please clarify the specific functionality of this script?

I've been trying to figure out the communication process between (a website that tracks real-time changes in Roblox's catalog and updates the client) and I came across this script while inspecting the site. It seems like this script is responsib ...

Several Glyphicons are missing from Bootstrap

When attempting to utilize Glyphicons in Bootstrap, I encountered the following error: > http://address/fonts/glyphicons-halflings-regular.woff2 > http://address/fonts/glyphicons-halflings-regular.woff GET > http://address/fonts/glyphicons-halfl ...

Node.js Implementing css styles

Here are my folders: server.js index.html -public --css --ses.scss --style.css This is the Server js code: var express = require('express'); var path = require('path'); var publicPath = path.resolve(path.join(__dirname, ...

Is there a way to verify if an AJAX request calls HTML content?

Here is the HTML code for a mosaic of images. <div id="container"> <img id="1" /> ... <img id="20" /> </div> This script creates a mosaic layout from the images on the page after it has loaded or been resized. <script& ...

Stop any accidental double clicks on the <input type="submit" /> to avoid duplicate entries

Is it possible to prevent a user from clicking twice on an input tag button with type submit? I attempted using ondblclick="javascript:void(0)", but it did not work. My code is within an Html.BeginForm, not a form element tag. Thank you in advance for al ...

Can a simple text and javascript be used to create a register/login "database"?

For a school project, I am working on creating a cross-browser login script without using PHP or MySQL. I want the registration process to store usernames and passwords in a plain text file, and the login process to check that file for matches. I acknowled ...

Generating DOM elements at specific intervals using Jquery

I am looking to dynamically create 1 div container every x seconds, and repeat this process n times. To achieve this, I have started with the following code: $(document).ready(function() { for (var i = 0; i < 5; i++) { createEle(i); } }); f ...