![]() |
|
|
|
#1 |
|
I don't really see the difference between these two elements...... why would
you use one and not the other? don |
|
|
|
|
#2 |
|
Posts: n/a
|
don wrote:
> I don't really see the difference between these two elements...... why would > you use one and not the other? You can control (to some degree) which browsers load your .css file using variations of the @import statement. |
|
|
|
#3 |
|
Posts: n/a
|
don wrote:
> I don't really see the difference between these two elements...... why > would you use one and not the other? <link> is an HTML element. It can be used to link your HTML document to other URLs. These URLs can be related pages, style sheets and so forth. @import is a CSS "at-rule". It can be used to import external style rules. So <link> can be used for a whole bunch of different purposes, whereas @import has only one purpose. From a practical standpoint, @import is supported by less browsers than <link rel=stylesheet>, so you can use it to hide stylesheets from older browsers. -- Toby A Inkster BSc (Hons) ARCS Contact Me ~ http://tobyinkster.co.uk/contact |
|
|
|
#4 |
|
Posts: n/a
|
in alt.html, don wrote:
> I don't really see the difference between these two elements...... There is lots. For example, link is html and @import is CSS. > why would you use one and not the other? If you want to import CSS from CSS, you use @import, if you want to link stylesheet to html page, you use link. You should also not that they are supported differently in browsers, but that is usually not problem, unless your stylesheet breaks when external style is not applied. -- Lauri Raittila <http://www.iki.fi/lr> <http://www.iki.fi/zwak/fonts> Utrecht, NL. |
|
|
|
#5 |
|
Posts: n/a
|
On Sat, 5 Mar 2005 22:38:46 +0100 Lauri Raittila wrote:
> in alt.html, don wrote: >> I don't really see the difference between these two elements...... > > There is lots. For example, link is html and @import is CSS. > >> why would you use one and not the other? > > If you want to import CSS from CSS, you use @import, if you want to link > stylesheet to html page, you use link. > > You should also not that they are supported differently in browsers, but > that is usually not problem, unless your stylesheet breaks when external > style is not applied. > Absolutely brilliant dr. watson. It amazes me how your feeble brain works sometimes. |
|
|
|
#6 |
|
Posts: n/a
|
Richard wrote:
> Absolutely brilliant dr. watson. > It amazes me how your feeble brain works sometimes. Words fail me! |
|
|
|
#7 |
|
Posts: n/a
|
It was somewhere outside Barstow when "Richard" <Anonymous@127.001>
wrote: >Absolutely brilliant dr. watson. >It amazes me how your feeble brain works sometimes. From most people that would be obvious sarcasm, but for you -- well, you really are just amazed, aren't you. |
|