Import CSS Files Inside CSS

3 posts Page 1 of 1
Contributors
User avatar
mikethedj4
VIP - Site Partner
VIP - Site Partner
Posts: 2592
Joined: Thu Mar 25, 2010 4:36 am

Import CSS Files Inside CSS
mikethedj4
I've noticed a lot of people seem to add in their css files like below.
Code: Select all
<link rel="stylesheet" type="text/css" href="style.css">
<link rel="stylesheet" type="text/css" href="css/lightbox.css">
I'm not gonna lie I used to do that until I foundout about this little trick. (You'd add the following into style.css)
Code: Select all
@import url("css/lightbox.css");
So hopefully this becomes helpful for you guys, and saves you a whole lot of time :)
User avatar
Codex
Coding God
Coding God
Posts: 2028
Joined: Wed Mar 31, 2010 5:50 pm

Re: Import CSS Files Inside CSS
Codex
Helpful but i knew that before xD since i make phpBB styles (phpBB already uses that 'trick')
We shall let the revolution begin.. the revolution for freedom, freedom against censorship. We shall fight in the fields and in the streets, we shall fight in the hills; we shall never surrender
User avatar
mikethedj4
VIP - Site Partner
VIP - Site Partner
Posts: 2592
Joined: Thu Mar 25, 2010 4:36 am

Re: Import CSS Files Inside CSS
mikethedj4
Not everybody knows it though, which is why I made the tutorial. I'm still pretty surprised I didn't post about this before.
3 posts Page 1 of 1
Return to “Tutorials”