Re: [Cppcms-users] CSS example
Brought to you by:
artyom-beilis
From: jupiter <jup...@gm...> - 2017-08-03 11:52:51
|
Thanks for the response. I tried to debug myself, but no avail. Anyway in my firefox browser it had following messages. If I understood it correctly that the style.css was loaded but it had no effects, and I don't know what other messages mean. If I put the style.css into an html file, it works. What could be the problems that the style.css did not work in the template file? The stylesheet http://localhost:8080/style.css was loaded as CSS even though its MIME type, "text/html", is not "text/css". localhost:8080 Selector expected. Ruleset ignored due to bad selector. style.css:2:0 Unexpected end of file while searching for closing } of invalid rule set. On Sun, Jul 23, 2017 at 11:54 PM, CN <cn...@fa...> wrote: > On Sun, Jul 23, 2017, at 07:11 PM, jupiter wrote: > > Thanks for the response. I know I need to add the external css in the > template file, I built it, the ran the css -c config.js and > http://localust:8080/css, but that did not show the background color > defined in style.css. I copied the first.tmpl to index.html and I could see > the background color from file:///tmp/index.html. That is why I was asking > what was the difference between an html file and cppcms template file?? > > > Then I would check whether or not the HTTP server can find and read file > "style.css". > > Regards, > CN > > -- http://www.fastmail.com - Send your email first class > > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > > |