CSS @import Rule Import Style Sheet Tutorial

preview_player
Показать описание
Learn to use the CSS @import rule. The import rule is used to import style sheets into other style sheets and any documents where @import can be applied.
Рекомендации по теме
Комментарии
Автор

Watched the whole tut and saw no nudity, heard no cursing and no blood was shed.  Nice tut as always.  Also, your new layout for developphp.com is awesome!

markwaters
Автор

Thank you soo much..
I was stuck in this simple mistake in my project ❤

pragyapanwar
Автор

Thanks for the video. Quick an clear.
I once learned, that reading of a single large file (css, javascript) is actually faster than multiple small sized files, which would be more specific and clearly arranged. I never did benchmarks of that. Do you know about performance of single vs multiple css or javascript files?

seemsas
Автор

thank you this is the only tut that worked for me

julioalv
Автор

I didn't quite get what you said about the "@" rule.  But I was curious if you could import more than one file into a style sheet (several css files into a css file) using the @import keyword?

JeffreyCobb
Автор

I never heard about media dependency before... wow

johnylab
Автор

im only guessing but is <link> better on browsers then @import?

SuperDeluxe
Автор

The way I do it is this...
I put a php include in the head of every page calling a header_inc.php page. Inside that are just links to all css docs I have. Now I know this means it is connecting to ALL my css docs, even those that aren't needed for every page, but it's just easier. Do you see any problems with doing this? I don't see a difference in speed to the naked eye anyway. Thanks

Redwards
Автор

Instead of using the index.html file, can you use multiple files and define them within the index.html file?

NA
Автор

How about calling an css file with several code calling css using @import?

dekdek
Автор

What is the point of this when you can just link another css document? Or you can just add more code to your main css

synrecords
Автор

Does that technique save one http-request from the client or is it two anyway?

sdhpCH