Left-justified text automatic in the middle

Hi folks
I have a textbloc. It shoud be in the middle of all devices. - xs to lg.
But the text is left-justified.

Today i made it with a class editor left padding. for the 4 diferent sizes phone to mac.

I look for automatical middle set, because the different text on the sites. is there a possibility – % doesn’t work.
Piet

I’m not sure if this is your problem or not, but for things like this I always start with mobile view and center it there. Then all the larger breakpoints adopt this setting.

If I need to change the alignment at some point I start with mobile and work my way up to desktop making my alterations.

Hope this is what you’re looking for.

1 Like

Thank you for the tip small too big. In the worst case, I could solve it with a brick of three. But that’s not going well. Isn’t it possible to control that more easily? (3 DIN A4 pages of text always with the lists in between is impractical to format in individual boxes)

Hi @Piet,

If I understand what you are trying to do (could be wrong), I would use margin-left and margin-right auto, which will place it in the centre.

I had created a new class (middletext) for it. But it doesn’t accept the term “auto” …

Set a width smaller than 100% first or use the freehand tools to shrink the width.

1 Like

Thank, another additional tip

First I made the frame smaller. This resulted in a new class (p-13-style) I was able to edit it (with multiple marking of the sides). It works now. Thank you! - I notice that my thoughts always come from print design …:wink:

2 Likes