Is it possible to create a table layout with variable content?
I want to use the same table layout different times on my website, each with another image and also with different content.
The easiest way is to copy/paste the layout and change the content, but isn't there another solution? (with less coding and more flexibility)
You have not really supplied enough information. How many pages do you require? If it's many pages then that is when you should consider keeping all of your content in a database and pullng it from that to feed into the table. Sounds a bit like you have some repetitive 'product' pages going on, which would be suitable for this kind of workflow. It's a steep learning curve though.
If its just a handful of pages then its probably just as easy to duplicate the page and change the content.
Thanks for the quick response!
I expect around 20 tables, spread over 3 or 4 html pages.
The idea of putting the content is a database sounds good. Can you give me some more information? Or useful links?
First you need to set up a local server, something like XAMPP:
Then you need to pull information from the database using sqli:
Not exactly something you can learn in a few minutes.
Tables are for tabular data, not layouts. Nowadays, we use CSS to style content and make it look presentable on all devices (aka responsive web design).
To build sites dynamically with content pulled from a database, first find out which programming languages and databases your hosting plan supports. Depending on what you need, commercial DW extensions are available for purchase from WebAssist or DMX Zone. See links below.