Report this

What is the reason for this report?

Generate dynamic html css layout

Posted on February 24, 2021

I am working on a template generation service. I want the user to change the webpage layout, alignment, insert images, remove tags, and change styling. After all the changes the user can save that template which be rendered with dynamic data into it whenever and wherever used again. Please let me know the way to achieve this. P.S:- I will use a standard template at the beginning which can be manipulated and saved.



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hi there,

What I could suggest here is first starting with the following tutorial series in order to understand the DOM:

https://www.digitalocean.com/community/tutorial_series/understanding-the-dom-document-object-model

After that, you could use that knowledge to manipulate the HTML document and change some CSS properties and classes.

I recently was working on a similar project called Tails that lets you generate pages using TailwindCSS and AlpineJS.

Regards, Bobby

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.