NetTalk Central

Author Topic: anything wrong to use "! importand;"  (Read 3068 times)

tglomb

  • Jr. Member
  • **
  • Posts: 78
    • View Profile
    • AObit Software
    • Email
anything wrong to use "! importand;"
« 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

peterH

  • Sr. Member
  • ****
  • Posts: 413
    • View Profile
Re: anything wrong to use "! importand;"
« Reply #1 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

tglomb

  • Jr. Member
  • **
  • Posts: 78
    • View Profile
    • AObit Software
    • Email
Re: anything wrong to use "! importand;"
« Reply #2 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 ?  )