Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

Need help with style.css

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
[Image: fpZ5a5g.png]
(Apr 22, 2022 04:39 PM)-Scrub Wrote:  Jokes on you, I'm not smart enough to know what he's talking about.
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: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
[Image: fpZ5a5g.png]
(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 !
Жизнь это не те дни, что прошли, а те, что запомнились


Possibly Related Threads...
Thread / Author Replies Views Last Post
by severosMay 3, 2018 10:18 PM 8 187 May 3, 2018 10:18 PM
Last Post: Invincible
by HelltoyMar 9, 2018 12:30 PM 5 181 Mar 9, 2018 12:30 PM
Last Post: Rushax
by Versatile.Jun 17, 2017 07:58 PM 2 145 Jun 17, 2017 07:58 PM
Last Post: Two-Ton 21