Skip Navigation

[Resolved] Problem with formatting a content template

This support ticket is created 4 years, 4 months ago. 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)

This topic contains 2 replies, has 2 voices.

Last updated by frankW 4 years, 4 months ago.

Assisted by: Nigel.

Author
Posts
#1401445

I spend a view on a content template on the following wesite: hidden link 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

Languages: English (English ) Spanish (Español )

Timezone: 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: hidden link

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!

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.