Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to convert a CSS div based layout to a table layout programmatically?

We've had a designer come in on a freelance basis to build us an awesome internal web app in HTML and CSS (div based). However, for part of our internal system we have a legacy system which has problems rendering this and it needs a table layout structure with appropriate styling for it to work.

We can't convert things manually because it will take too long as there are lots and lots of pages.

So I am going to attempt to do this programmatically. Before I start, is this possible? Are there any consideration I should think about? Maybe someone has done this already?

I'll be using PHP and its DOM Document class - good idea?

I really need help on this as we might have wasted a lot of money and time on this project.

like image 763
Mia Avatar asked Dec 08 '25 03:12

Mia


1 Answers

It might be possible to programatically adapt a specific case, pulling data out of a page and inserting it into a different template, for instance.

You won't be able to write something for the general case though. CSS works in a completely different way to the table layouts of the last millenium.

I'd look at getting the out of date renderer improved instead.

like image 190
Quentin Avatar answered Dec 10 '25 16:12

Quentin



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!