text content to be have fixed width after a certain size
-
Hi,
Was wondering, is there any way to make this text in the first section, not to adapt to grid 'so to say' after a certain width.
What I mean, is the text box above not to extend more than how it looks in the image.
For reference, see this text box here:
It responds when the browser is decrasing, but this form/view won't be deformed doesn't matter how big the screen is,
🤔
-
I think I did it through some CSS,
.main-text-cover { width: 70%!important; align-items: center!important; justify-content: center!important; }
Just now I have to find how to center it, :D
-
arminunruh Global Moderatorwrote on Sep 20, 2024, 11:09 AM last edited by arminunruh Sep 20, 2024, 7:12 AM
-
Tried it before I went for the costum CSS, and while it was changing in the Gridder, it wasn't affecting at all the element in the website preview.
Maybe isn't 100% precise, but the costum CSS is working fine for now.
Thank you again, :)
-
you could also think about using a textformat with fontsize in %. this way the text scales
-
@arminunruh Is there any way I can center the text block? 🤔 It's all I need now
-
-
Thank you man, it works almost perfectly. If I can only get rid of that fraction of a second when you load the page and the text box moves from right to center.
-
@panteley try this:
transform: translateX(-50%)!important;maybe this forces your style to be applied at page load.
-
5/10
Before you post:
- When using a WordPress Cache plugin, disable it or clear your cache.
- Update Lay Theme and all Lay Theme Addons
- Disable all Plugins
- Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code", click "Save Changes"
This often solves issues you might run into
When you post:
- Post a link to where the problem is
- Does the problem happen on Chrome, Firefox, Safari or iPhone or Android?
- If the problem is difficult to explain, post screenshots / link to a video to explain it