+ 1

how can I use two css files in one html/php page to style two div sections eg:

<div id="one" >use a different css file </div> <div id="two" >use a different css file </div>

30th Jun 2020, 11:41 AM
John Gitau Njenga
John Gitau Njenga - avatar
3 Antworten
+ 2
Just import both via style-tag in header. As long as you didn't specify any conflicts, the browser will find the correct definitions in both files.
30th Jun 2020, 11:58 AM
Sandra Meyer
Sandra Meyer - avatar
+ 1
Nothing to add to Sandra's answer, no problem since you refer them without same informations
30th Jun 2020, 12:39 PM
{P~A} Programmation Addict
{P~A} Programmation Addict - avatar
0
Import both the files using link tag in header for example Style.css has the styles of Id #one and two.css has styles of Id #two Then import them as <link rel="stylesheet" type="text/css" href="style.css"> <link rel="stylesheet" type="text/css" href="two.css">
8th Jul 2020, 3:51 AM
Umar Bashir
Umar Bashir - avatar