HTML & Style & <span class>

Find out how to get things done with Servoy. Post how YOU get things done with Servoy

HTML & Style & <span class>

Postby tweetie » Sun Mar 21, 2004 8:43 pm

Any chance or way to use styles in the HTML-area??

Sumthing like

Code: Select all
<html>

   <head>
      <title></title>
<style type="text/css">
.content
{
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 8pt;
color: 000000;
}
</style>
   </head>

   <body>
      <span class="content">blablabla</span>
   </body>

</html>
User avatar
tweetie
 
Posts: 345
Joined: Thu Jan 08, 2004 11:32 am
Location: Rotterdam, Netherlands

Postby Jan Blok » Tue Mar 23, 2004 9:54 pm

Yes is possible to use, but the renderer implemention form SUN is not as good as MS IE... we are looking for other renderer components as replacement.
Jan Blok
Servoy
Jan Blok
 
Posts: 2684
Joined: Mon Jun 23, 2003 11:15 am
Location: Amsterdam

Postby tweetie » Tue Mar 23, 2004 11:26 pm

are you telling me that css works??
Becoz the example mentioned didn't work at all....
Or do I have to write it diffrently??
User avatar
tweetie
 
Posts: 345
Joined: Thu Jan 08, 2004 11:32 am
Location: Rotterdam, Netherlands

Postby bcusick » Wed Mar 24, 2004 3:14 am

tweetie wrote:are you telling me that css works??
Becoz the example mentioned didn't work at all....
Or do I have to write it diffrently??


YES - CSS DOES WORK! Cool, huh! I use it all the time. Here's a snippet of code that does work:

<html>
<head>
<style type="text/css">
.body { font-family: Tahoma; font-size: 9pt; color: #000000}
</style>
</head>
<body>
<table border=0 class="body">
<tr>
<td>Text</td>
</tr>
</table>
</body>
</html>

It's really, really cool!

Enjoy!

Bob Cusick
bcusick
 
Posts: 1255
Joined: Wed Apr 23, 2003 11:27 pm
Location: Thousand Oaks, CA USA

Postby pbakker » Wed Mar 24, 2004 10:23 am

I notices some functions work, some do not... Since Servoy uses the standard Sun HTML/Web component currently, there are these limitations.

From what Jan says, I asume the dev-team is looking into using another component, which does not have these limitations...

Paul
pbakker
 
Posts: 2822
Joined: Wed Oct 01, 2003 8:12 pm
Location: Amsterdam, the Netherlands


Return to How To

Who is online

Users browsing this forum: No registered users and 5 guests