PDA

View Full Version : [CLOSED] reset.css missing?



jvahabzadeh
31 Oct 2011, 8:31 AM
I have downloaded gxt-3.0.0-dp5.zip and unzipped it.

My project name is SenchaExperiments.

I have followed the instructions in the setup.txt file, and in following step 2b, added the following as the first .css reference in SenchaExperiments.html:

<link rel="stylesheet" type="text/css" href="SenchaExperiments/css/reset.css" />

However, while my bits of code to learn GXT seem to work, I keep getting an error message in the console:

[WARN] No file found for: /SenchaExperiments/css/reset.css

Where is the css/reset.css file? I didn't see any file with the name "reset.css" and so assumed this was some sort of built in thing that GXT would interpret correctly.

Was this missing from the DP5 download?

sven
31 Oct 2011, 8:36 AM
Try to remove the css folder of the href. The folder is not correct.

jvahabzadeh
31 Oct 2011, 10:01 AM
Thanks! That fixed it.

The following line then in the setup.txt should probably be changed to indicate this. It curently reads:

<link rel="stylesheet" type="text/css" href="{module name}/css/reset.css" />

Colin Alworth
31 Oct 2011, 3:49 PM
Thanks, I just corrected setup.txt in SVN.

kospiotr
6 Feb 2012, 9:19 AM
Wouldn't it be easier to add:

<stylesheet src="reset.css"/>
in module descriptor?

Colin Alworth
7 Feb 2012, 6:55 PM
We experimented with this, but I believe the eventual conclusion was that it should load earlier, or it will reset other existing css loaded by the html page.

kospiotr
7 Feb 2012, 11:25 PM
I have experimented with it a lot and I never noticed weird behaviour. Anyway both solutions are correct :)