Use a different CSS in each view

Asked

Viewed 48 times

0

I am developing a site using the MVC standard, I would like to know if it is possible to use a different CSS in each view. If so, how?

  • Which framework is using?

  • I’m not using any framework, I just created the controllers, views and models with php and Html5, I make some calls using autoload and call the pages with php functions inside a page called template

  • This "template" page uses a css, but the pages I’m going to call would need another css, only they automatically load the css from the template page

  • Just add the css of each view inside it, just like you would with. js files ...

1 answer

0

<link rel="stylesheet" media="screen and (max-width: 700px)" href="arquivo.css">

I’m not sure if this is what you’re looking for, but that way the CSS only loads if the width meets the particular requirement.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.