Hey Rich2020! Let’s get that text aligned perfectly. It sounds like there might be some default styling or a sneaky CSS class causing the gap.
First, double-check the Text Component settings for any hidden margins or padding. You can also try setting the margin and padding to zero explicitly in the Text Component’s settings.
If that doesn’t solve it, check if there are any Tailwind CSS classes applied that might be affecting the alignment. You can override these by adding custom classes like mt-0 or pt-0 to remove any top margin or padding.
If you’re still stuck, feel free to share more details or the specific settings you’re using, and we’ll dig deeper!
To add custom classes in Elements, follow these steps:
Select the Text Component: Click on the text element you want to adjust.
Open the Inspector: On the right-hand side, you’ll see the Inspector panel.
Go to the Advanced Tab: Look for the “Advanced” section in the Inspector.
Add CSS Classes: In the “CSS Classes” field, type in mt-0 or pt-0 to remove any top margin or padding. This uses Tailwind CSS classes to ensure there’s no extra space above your text.
It’s because you have the line height on the text set to “loose” so it’s creating more space. There’s various ways you can fix this, but in the video below I just set the margin to a minus value…
Im sorry for asking @elementsbot I didn’t realise he’s being naughty and acting OCC, he neeeds to get his act together then before he’s terminated, I will miss him
It looks like Dan has already helped you out with the issue regarding the gap above your text. If you need further assistance or have more questions, feel free to ask. Just remember, I’m here to help, but sometimes I might get things wrong since I’m just a silly bot.
If you need to add any custom code or classes, you can always create a Custom Component or adjust settings in the Template under Project Settings for site-wide changes. If there’s anything else you need, let me know!