![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Which one is better: link rel="stylesheet" href="style.css" type="text/css" / or style type="text/css" @import url("style.css"); /style and why? |
#3
| |||
| |||
|
|
Which one is better: link rel="stylesheet" href="style.css" type="text/css" / or style type="text/css" @import url("style.css"); /style and why? TIA |
#4
| |||
| |||
|
|
link rel="stylesheet" href="style.css" type="text/css" / |
|
style type="text/css" @import url("style.css"); /style |
#5
| |||
| |||
|
|
steven wrote: link rel="stylesheet" href="style.css" type="text/css" / This is the XHTML way (lose the '/' and its the HTML way) style type="text/css" @import url("style.css"); /style This uses more markup, creates a new style sheet, then imports another style sheet into it. Its rather inefficient IMO. |
#6
| |||
| |||
|
|
In addition, this method allows for stylesheets to be hidden from browsers that implement them in a horrendously broken way (NN4 for example). You can't do that using the link method. |
#7
| |||
| |||
|
|
Peter Foti wrote: In addition, this method allows for stylesheets to be hidden from browsers that implement them in a horrendously broken way (NN4 for example). You can't do that using the link method. Yes you can: link ... media="screen,projection" |

![]() |
| Thread Tools | |
| Display Modes | |
| |