0

Unable to override zk css

asked 2018-10-25 15:11:20 +0800

Srikanth20 gravatar image Srikanth20
1

Hi, I am trying to update my zk to zk8.5. I am unable to change zk css to my customized css. Can anyone Help me on this?

delete flag offensive retag edit

5 Answers

Sort by ยป oldest newest most voted
0

answered 2018-10-25 16:03:35 +0800

softteam gravatar image softteam
130 1 8

have you tried putting this?

 <?link href="/Recursos/css/spectrum.css" rel="stylesheet" type="text/css"?>
link publish delete flag offensive edit
0

answered 2018-10-26 14:26:04 +0800

ivanmario gravatar image ivanmario
0

updated 2018-10-26 14:29:51 +0800

It depends on where your put your css file

  1. if css file in same directory as your zul file you can add this code : < ?link href="mysample.css" rel="stylesheet" type="text/css"?>

  2. or if you put css file in another folder/directory, try this : < ?link href="/myfolder1/myfolder2/mysample.css" rel="stylesheet" type="text/css"?>

link publish delete flag offensive edit
0

answered 2018-10-30 03:33:24 +0800

mw88 gravatar image mw88
93 2
http://www.mw88.org

If you have prodived a CSS file but it doesn't work try the browser developer tools to inspect which path is resolved. You can also try different urls in the tools directly to see how it should resolve in order to work.

link publish delete flag offensive edit
0

answered 2019-01-22 14:58:13 +0800

Srikanth20 gravatar image Srikanth20
1

I have tried all the above. still it didn't work.

link publish delete flag offensive edit
0

answered 2019-01-29 19:21:45 +0800

cor3000 gravatar image cor3000
6280 2 7

updated 2019-01-29 19:22:12 +0800

here a runnable example

it shows how to customize a few simple button styles

I hope this helps.

link publish delete flag offensive edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow
3 followers

RSS

Stats

Asked: 2018-10-25 15:11:20 +0800

Seen: 20 times

Last updated: Jan 29 '19

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More