You need to Register for free and Login to post a message in the forum.

Forum

Subject: @import in skin.css
Prev Next
You are not authorized to post a reply.

Author Messages
carizzio
Nuker
Nuker
Posts:12

09 Apr 2008 11:14 AM  
Any particular reason why the @import does not work if you try to use it in the skin.css?

I use Eric Myer's reset stylesheet.  Here's the link for anyone interested.

Well i have @import url(reset.css) at the toppity toppest of my skin.css file and it isnt recognized.  I ended up just slapping it in to the skin.css and everything worked fine.

Recently, for straight html/css brochure sites I use multiple stylesheets and link them with the @import.

For example:  a site may have 2 or 3 "layouts" which I will identify with a specific stylesheet (i.e. 2col.css, 3col.css, etc.)

then in the 2col.css i will import reset.css, type.css, color.css, etc....

I have found this is RIDICULOUSLY convenient for when you want to go in and edit existing sites and would LOVEEEEEEEEEEE if someone could let me know if achieving this same process is possible.

I do know of the skinname.css technique, but would like to take it a bit further.

Thanks in advance.
leesykes
DNN Creative Staff
Nuke Master III
Nuke Master III
Posts:3352

10 Apr 2008 3:14 AM  
hello,

I have used the  @import function on DNN creative, have a look at the CSS code. I have applied the @import on the default.CSS file, an example you can see here:


@import "http://www.dnncreative.com/Portals/_default/defaultdnn.css";
@import "http://www.dnncreative.com/Portals/_default/Skins/07/skinall.css";
@import "http://www.dnncreative.com/Portals/_default/Skins/07/print.css";
/* to have valid CSS, @imports need to be in first CSS file read, so these are placed in the default.css file
and then we call up the various files we require. - Note in each of these files is then a media type */

/* Use this to call in IE5.x/Win iehacks.css file */
@media tty {
 i{content:"\";/*" "*/}} @import 'iehacks.css'; /*";}
}/* */


You will notice that I have specified the full URL for each of the CSS files.

The one problem with using @import  is that the W3C validators are not keen on it.

Hope this helps, thanks,

Lee Sykes
Site Administrator
Subscribe to the website : DotNetNuke Video Tutorials : The Skinning Toolkit : DotNetNuke Podcasts

Twitter: www.twitter.com/leesykes

Lee Sykes's Facebook Profile
You are not authorized to post a reply.
Forums > DotNetNuke® > DotNetNuke® Questions > @import in skin.css



ActiveForums 3.7

Latest Forum Posts

Need UK Hosting by Liz
Hi,Not sure if this is the right place, but I am currently with Power DNN, and whilst I am a big fan...
RE: search not working by sanju_k1421
host==>admin search page that is set both limits min //max page reindex content button is ...
RE: No Access for me too by leesykes
hello,I have fixed the problem and I have given you a years access beginning from today December 2nd...
old skins for DNN 4.9.0 ? by clippy
Hello from France My question is about the videos for beginners, and specially n° 3; I'm working...
Web.config Error by derpir
HelloI got this error, does this seem familiar to you? Can anyone say how to fix this error?Error 98...
No Access for me too by ristori
I suscribe for the magazine novembre 2008 13. I receive this ticket from Paypal : Prix de l...
How can I list our offices by country by bluehoops
Hi everyone!Apologies if this is a simple question, but it is driving me nuts.I run a small ISV and ...
RE: DNN Creative vs FireFoX V3 by DavidWSnow
It now looks like the error'ing extension is StumbleUpon and it effects FireFox on some, but not all...
Issue 39 Authentication by DavidWSnow
I was glad to see you address this topic. When LiveId was first added to DNN, I tried to implement i...
RE: (catalook) Itempane changes on product pages ?? by Vilaplana
Hi, I think the problem is been caused by your skin and not by Catalook itself.  In the main page, C...
Yahoo Answers by cdtguru
Hey, i was wondering if anyone knew of a module that would create a similar system to Yahoo Answers...
(catalook) Itempane changes on product pages ?? by Gaz35
Hi , hi , I don’t know if you can help me , here is the site in question http...
RE: Virtual Pc 2007 help by jeff@zina.com
You need to get the Virtual PC's network set up.  Might check the Virtual PC news group: http://www...
DNNCreative Just Keeps Getting Better by jeff@zina.com
Kudos on issue 39, the article on importing large quantities of data was both timely for me and spot...
RE: Videos by clippy
Hello from France My question is about the videos for beginners, and specially n° 3; I'm working...
skinning trouble by derpir
HelloI have uploaded a skin to my DNN-website, but I want to make som changes. I have made some chan...
RE: Column width in UDT by VickySwift
In case anyone else is looking for the answer to this, I have been able to add the headers back in b...
RE: search not working by jncraig
Did you either reindex the site to turn on the scheduled task to do it?
RE: Template Issue by jncraig
No, you need to install your custom modules before you use the template.
RE: error message in registration page by jncraig
I'm not sure that you can avoid them, short of rewriting the module.You might want to investigate Dy...
AppTheory
RSS Feeds