NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: tglomb on March 04, 2014, 03:44:08 AM

Title: anything wrong to use "! importand;"
Post by: tglomb on March 04, 2014, 03:44:08 AM
I need to set an overall background color. I don't want do it for every single page (CSS color setting or inherit)...
Or is there a better method ?
TIA, Thomas
Title: Re: anything wrong to use "! importand;"
Post by: peterH on March 04, 2014, 04:47:18 AM
It's kinda the basic idea of using themes, styles etc that you do not go into each and every page to make a global change (Bruce can talk about this for hours  ;) )

If you're using a custom.css (which is recommended) you can simply make your change there and it'll take effect all over the place.

Something like this:

/* This overrides the settings from the theme css file: */
.nt-body {
 background-color: <YourFavoriteColorHere>;
}

No need for using !important as far as I'm aware (since custom.css is read after the other style files and background-color is not marked as important elsewhere). And - depending on your settings - don't forget to run gzipall.bat

HTH
Peter
Title: Re: anything wrong to use "! importand;"
Post by: tglomb on March 05, 2014, 01:51:20 AM
Thanks Peter,
meanwhile I could make out (and hopefully better explain) what my real problem is.
(Thread: how 2 overwrite nettalk-ui.css ?  )