0

External style sheet not working.

asked 2009-08-07 11:47:58 +0800

baskaraninfo gravatar image baskaraninfo
526 2 2 9

If I use <style> tag, then its working file. If I link external style sheet as .css file, then its not working.

Using <style> tag:
------------------
<window title="CSS Class">
<style>
.blue {
color: white; background-color: blue;
}
</style>
<button label="OK" sclass="blue"/>
</window>

Using external style sheet - way 1:
-----------------------------------
<style src="/style/common.css" />

It is throwing the following error:
___________________________________
Caused by: org.xml.sax.SAXParseException: The markup in the document following the root element must be well-formed.

Using external style sheet - way 2:
-----------------------------------
<?link rel="stylesheet" type="text/css" href="/style/common.css"?>

Now it is not throwing any error, and also its not considered.

My Software Version details:
----------------------------
Eclipse 3.4.2
ZK 3.6.2

I need to separate the style details into a common file, to easily referred from more screens.

delete flag offensive retag edit

2 Replies

Sort by ยป oldest newest

answered 2009-08-07 12:02:13 +0800

terrytornado gravatar image terrytornado flag of Germany
9393 3 7 16
http://www.oxitec.de/

Only a little bit of searching in the forum.

Look at this thread

link publish delete flag offensive edit

answered 2009-08-07 12:19:05 +0800

baskaraninfo gravatar image baskaraninfo
526 2 2 9

updated 2009-08-07 12:20:01 +0800

Before posting, I had searched almost every thread listed in the search result. And also I tried all the ways of doing it. But, am missing something somehow.

I will check what am I missing and let you know.

Thanks terrytornado.

link publish delete flag offensive edit
Your reply
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

RSS

Stats

Asked: 2009-08-07 11:47:58 +0800

Seen: 278 times

Last updated: Aug 07 '09

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