DEV Community


Discussion on: A Router Without a Web Server in Vanilla JavaScript

tangopj profile image
Thread Thread
aminnairi profile image
Amin Author

That's really clever, well done!

Except styles don't apply to the <object> tag sadly and I think it would be very inconvenient to style elements using this technique and an external CSS file.

But if you are designing a markup-only web page this is the way to go (or use inline styles if you are brave enough).

But this is a great tag to render some multimedia content like videos or PDF files!

Thread Thread
tangopj profile image

Yep, I have a problem with styling my content, I think how can I do that now. Thank you for your return

Forem Open with the Forem app