[jQuery] Re: @import vs link
Check this: @import '/public/js/jtip/css/jtip.css'; #JT{ background-color: lightcyan; } .jTip { cursor:default;} #JT_close_left { background-color: green; color: white; } #JT_close_right { background-color: green; color: yellow;} " Its from HLS, which I dont think stands for Hue, Luminence and Saturation, but is a gentleman's initials. On Aug 19, 6:45 pm, Rey Bango <[EMAIL PROTECTED]> wrote: > Hi guys, > > In looking at another thread about jTip, I noticed that the css file was > including like this: > > @import '/public/js/jtip/css/jtip.css'; > > What's the difference and/or benefit of using "@import" vs "link" to > include a stylesheet? > > Rey...
[jQuery] Re: @import vs link
The link tag is html, @import is CSS. You can use @import from within a stylesheet (has to be the first text) to include many stylesheets with a single tag Also import is not recognized by netscape 4 so it can be used to hid stylesheets from older browsers. Rey Bango-2 wrote: > > > Hi guys, > > In looking at another thread about jTip, I noticed that the css file was > including like this: > > @import '/public/js/jtip/css/jtip.css'; > > What's the difference and/or benefit of using "@import" vs "link" to > include a stylesheet? > > Rey... > > -- View this message in context: http://www.nabble.com/%40import-vs-link-tf4296227s15494.html#a12229107 Sent from the JQuery mailing list archive at Nabble.com.
[jQuery] Re: @import vs link
Link is the more flexible option. The media and rel attributes give you some control that @import lacks. Generally I use import now as an organisational tool - linking in separate CSS files from _within_ a central CSS file. I remember years ago using the import to hide CSS from the likes of IE3. On Aug 20, 10:45 am, Rey Bango <[EMAIL PROTECTED]> wrote: > What's the difference and/or benefit of using "@import" vs "link" to > include a stylesheet?