Hello people, recently started to study web dev, i tried to do something but im confused, basically what i want is when im on login/register page to use style.css
but after all when im in index.php to use a different style. How to do that ? i tried to create another css but with different name and when im passing through login to use diffstyle.css (example name) but nothing works. I'm really new into this so it might sounds stupid :D
Жизнь это не те дни, что прошли, а те, что запомнились
what?
Index.html
Code <head>
<link rel='stylesheet' type='text/css' href='diffstyle.css'>
</head>
Login.html
Code <head>
<link rel='stylesheet' type='text/css' href='login.css'>
</head>
It's as simple as that.
Je t'aime
(Apr 22, 2022 04:39 PM)-Scrub Wrote: Jokes on you, I'm not smart enough to know what he's talking about.
Jun 17, 2017 07:03 AM
(This post was last modified: Jun 17, 2017 07:04 AM by Dotexe.)
Already tried that and it didnt work at all, even mentioned it :D im looking for other solutions( if there's any )
Жизнь это не те дни, что прошли, а те, что запомнились
Jun 17, 2017 07:20 AM
(This post was last modified: Jun 17, 2017 07:23 AM by Nachfolger.)
(Jun 17, 2017 07:03 AM)Dotexe Wrote: Already tried that and it didnt work at all, even mentioned it :D im looking for other solutions( if there's any ) No bud, this is exactly how you do it. How did it not work? Post your code. If you're not seeing changes, it's likely cached. Add a query to the link.
Code <head>
<link rel='stylesheet' type='text/css' href='diffstyle.css?v=0.01'>
</head>
Je t'aime
(Apr 22, 2022 04:39 PM)-Scrub Wrote: Jokes on you, I'm not smart enough to know what he's talking about.
(Jun 17, 2017 07:20 AM)Nachfolger Wrote: No bud, this is exactly how you do it. How did it not work? Post your code. If you're not seeing changes, it's likely cached. Add a query to the link.
Code <head>
<link rel='stylesheet' type='text/css' href='diffstyle.css?v=0.01'>
</head>
Oh wow, now it works man idk, i tried to clear the cache even ctrl + F5 but its probably from xampp, thank you once again buddy !
Жизнь это не те дни, что прошли, а те, что запомнились
|