Sauter la navigation

[Résolu] Problem with formatting a content template

This support ticket is created Il y a 5 années et 5 mois. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+01:00)

Ce sujet contient 2 réponses, a 2 voix.

Dernière mise à jour par frankW Il y a 5 années et 5 mois.

Assisté par: Nigel.

Auteur
Publications
#1401445

I spend a view on a content template on the following wesite: lien caché 3 /. I have 3 problems formatting the content template.

1. The text area (slide-inner-box) should be positioned horizontally in the center of the atelectic picture. Vertically, the slide-inner-box should survive the same for all items below. (about 50px?)

2. The distance between the slide-inner-box and the next item should always be approx. 10 px.

3. How can this content template be best formatted for responsive views?

Thanks a lot!

#1401677

Nigel
Supporter

Les langues: Anglais (English ) Espagnol (Español )

Fuseau horaire: Europe/London (GMT+01:00)

Because you currently use position: absolute to position the text box over the image it means that you take that text box out of the normal document flow, and setting margins on it to modify the spacing between slides will have no effect.

A better solution would be to keep the text box within the normal document flow using position: relative and then apply a negative margin to it so that it moves up over the previous image, but brings everything else along with it.

I created a demo for your on codepen: lien caché

With the method it is fairly trivial to modify the spacing.

As for responsiveness, as you are not displaying a grid and instead a single column it pretty much is already, certainly in the linked demo.

#1402287

My issue is resolved now. Thank you!