# Problem with CSS in HTML\_AREA for thinborder table

**URL:** <https://forum.servoy.com/t/problem-with-css-in-html-area-for-thinborder-table/4499>\
**Category:** Classic Servoy\
**Created:** [July 12, 2005, 12:41pm UTC](https://forum.servoy.com/t/problem-with-css-in-html-area-for-thinborder-table/4499 "2005-07-12T12:41:18Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![mjekl](https://avatars.discourse-cdn.com/v4/letter/m/5fc32e/32.png) [@mjekl](https://forum.servoy.com/u/mjekl)\
**Post date:** [July 12, 2005, 12:41pm UTC](https://forum.servoy.com/t/problem-with-css-in-html-area-for-thinborder-table/4499/1 "2005-07-12T12:41:18Z")

</div>

Hi,

I can’t seem to be able to set a css definition inside an HTML\_AREA.

My goal is to make a table with thin borders using only css. Using css it is possible to do a table with thin borders without using the double table approach described by Robert Ivens in:

[http://www.servoymagazine.com/home/2005/05/as\_you\_probably.html](http://www.servoymagazine.com/home/2005/05/as_you_probably.html)

My code is as follows:

```auto
globals.gHTML = '<html>';
globals.gHTML += '<head><style type="text/css">';
globals.gHTML += ' table.myclass { border-top: 1px solid #000000;';
globals.gHTML += ' border-left: 1px solid #000000}';
globals.gHTML += ' table.myclass td { border-right: 1px solid #000000;';
globals.gHTML += ' border-bottom: 1px solid #000000}';
globals.gHTML += '</style></head><body>';

globals.gHTML += '<table class="myclass" border="0" cellpadding="4" cellspacing="0">';

regionARY = new Array('Western', 'Southern', 'Northern', 'Eastern');

for (i=0; i < 4; i++){
  globals.gHTML += '<tr><td>' + regionARY[i] + '</td></tr>';
}

globals.gHTML += '</table></body></html>';

```

I can make the same definition work on a regular html page. So what’s wrong here?

Best,  
mjekl

---

<div class="post-metadata">

**Author:** ![patrick](https://avatars.discourse-cdn.com/v4/letter/p/b2d939/32.png) [@patrick](https://forum.servoy.com/u/patrick)\
**Post date:** [July 12, 2005, 1:44pm UTC](https://forum.servoy.com/t/problem-with-css-in-html-area-for-thinborder-table/4499/2 "2005-07-12T13:44:19Z")

</div>

The HTML component used by Servoy (the default provided by Sun) does not support border settings, as far as I know. That’s why the technique described in the article is currently the only possible approach.

---

<div class="post-metadata">

**Author:** ![maarten](https://avatars.discourse-cdn.com/v4/letter/m/ecccb3/32.png) [@maarten](https://forum.servoy.com/u/maarten)\
**Post date:** [July 12, 2005, 1:45pm UTC](https://forum.servoy.com/t/problem-with-css-in-html-area-for-thinborder-table/4499/3 "2005-07-12T13:45:46Z")

</div>

Servoy uses the default html renderer that comes with java.  
It’s ok for basic rendering, but quite crappy(especially BORDERS ![:evil:]( "Evil or Very Mad") ) when it comes to more advanced html coding.  
We’re investigating possiblities to improve this.

---

<div class="post-metadata">

**Author:** ![mjekl](https://avatars.discourse-cdn.com/v4/letter/m/5fc32e/32.png) [@mjekl](https://forum.servoy.com/u/mjekl)\
**Post date:** [July 25, 2005, 6:18pm UTC](https://forum.servoy.com/t/problem-with-css-in-html-area-for-thinborder-table/4499/4 "2005-07-25T18:18:58Z")

</div>

Txs,

Good to know that the problem is with the component - leaves hope for improvement ![;-)]( "Wink")

Best,  
mjekl

---

<div class="post-metadata">

**Author:** ![pbakker](https://avatars.discourse-cdn.com/v4/letter/p/a4c791/32.png) [@pbakker](https://forum.servoy.com/u/pbakker)\
**Post date:** [July 26, 2005, 6:38am UTC](https://forum.servoy.com/t/problem-with-css-in-html-area-for-thinborder-table/4499/5 "2005-07-26T06:38:30Z")

</div>

Maarten,

What’s the status of the investigation? Any idea when we might see an improved HTML component in Servoy?

Will this improved component also allow for building dynamic GUI’s, for example for data entry, with the ability to retrieve the data entered on the HTML form into Servoy methods?

If the latter would be possible, I see many new oppertunities…

Paul

---

<div class="post-metadata">

**Author:** ![Jan\_Aleman](https://avatars.discourse-cdn.com/v4/letter/j/4af34b/32.png) [@Jan\_Aleman](https://forum.servoy.com/u/Jan_Aleman)\
**Post date:** [July 26, 2005, 7:58am UTC](https://forum.servoy.com/t/problem-with-css-in-html-area-for-thinborder-table/4499/6 "2005-07-26T07:58:18Z")

</div>

> pbakker:  
> What’s the status of the investigation? Any idea when we might see an improved HTML component in Servoy?

Your prayers have been answered. Icesoft ([http://www.icesoft.com/](http://www.icesoft.com/)) now offer a Servoy compatible JavaBean, fully programmable, etc.

More on this bean soon.

---

<div class="post-metadata">

**Author:** ![amason](https://avatars.discourse-cdn.com/v4/letter/a/5e9695/32.png) [@amason](https://forum.servoy.com/u/amason)\
**Post date:** [May 2, 2006, 4:28pm UTC](https://forum.servoy.com/t/problem-with-css-in-html-area-for-thinborder-table/4499/7 "2006-05-02T16:28:11Z")

</div>

Hi Jan,

Can you report any additional information on this bean? Which one is it?

---

<div class="post-metadata">

**Author:** ![rarbuthnot](https://avatars.discourse-cdn.com/v4/letter/r/e9a140/32.png) [@rarbuthnot](https://forum.servoy.com/u/rarbuthnot)\
**Post date:** [May 2, 2006, 6:22pm UTC](https://forum.servoy.com/t/problem-with-css-in-html-area-for-thinborder-table/4499/8 "2006-05-02T18:22:06Z")

</div>

> amason:  
> Hi Jan,
> 
> Can you report any additional information on this bean? Which one is it?

It looks like either the [ICEbrowser](http://www.icesoft.com/products/icebrowser.html) bean or the [ICEreader](http://www.icesoft.com/products/icereader.html) bean can interpret CSS, but the ICEreader has less functionality and is more lightweight.

---

<div class="post-metadata">

**Author:** ![Harjo](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/harjo/32/4873_2.png) [@Harjo](https://forum.servoy.com/u/Harjo)\
**Post date:** [May 2, 2006, 7:36pm UTC](https://forum.servoy.com/t/problem-with-css-in-html-area-for-thinborder-table/4499/9 "2006-05-02T19:36:54Z")

</div>

They don’t work in Servoy. There seems to be an internal conflict with some other lib’s inside Servoy, or oracle help? or something like that.

but just wait a little longer… ![:wink:]( "Wink")  
There is a solution on it’s way ![:D]( "Very Happy")

---

<div class="post-metadata">

**Author:** ![amason](https://avatars.discourse-cdn.com/v4/letter/a/5e9695/32.png) [@amason](https://forum.servoy.com/u/amason)\
**Post date:** [May 2, 2006, 8:05pm UTC](https://forum.servoy.com/t/problem-with-css-in-html-area-for-thinborder-table/4499/10 "2006-05-02T20:05:28Z")

</div>

HJK… I know you are enjoying this… but any chance you can be a little less cryptic? 🙂

---

<div class="post-metadata">

**Author:** ![Harjo](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/harjo/32/4873_2.png) [@Harjo](https://forum.servoy.com/u/Harjo)\
**Post date:** [May 2, 2006, 8:49pm UTC](https://forum.servoy.com/t/problem-with-css-in-html-area-for-thinborder-table/4499/11 "2006-05-02T20:49:16Z")

</div>

no, just wait. my lips are closed! ![:roll:]( "Rolling Eyes")

---

<div class="post-metadata">

**Author:** ![amason](https://avatars.discourse-cdn.com/v4/letter/a/5e9695/32.png) [@amason](https://forum.servoy.com/u/amason)\
**Post date:** [May 2, 2006, 8:59pm UTC](https://forum.servoy.com/t/problem-with-css-in-html-area-for-thinborder-table/4499/12 "2006-05-02T20:59:48Z")

</div>

ok, ok… how long am I going to be waiting? Days? Weeks? Months?

---

<div class="post-metadata">

**Author:** ![hpmxxx](https://avatars.discourse-cdn.com/v4/letter/h/ec9cab/32.png) [@hpmxxx](https://forum.servoy.com/u/hpmxxx)\
**Post date:** [June 5, 2006, 2:55pm UTC](https://forum.servoy.com/t/problem-with-css-in-html-area-for-thinborder-table/4499/13 "2006-06-05T14:55:27Z")

</div>

Any news about the ICEbrowser bean? Does it work with Servoy now?

Thanks  
Hans-Peter

---

<div class="post-metadata">

**Author:** ![cybersack](https://avatars.discourse-cdn.com/v4/letter/c/7cd45c/32.png) [@cybersack](https://forum.servoy.com/u/cybersack)\
**Post date:** [June 5, 2006, 8:16pm UTC](https://forum.servoy.com/t/problem-with-css-in-html-area-for-thinborder-table/4499/14 "2006-06-05T20:16:16Z")

</div>

Hi guys.

Our Browser Bean embeds a native browser.  
You can read about our just released software and download it from here:  
[http://forum.servoy.com/viewtopic.php?t=6516](http://forum.servoy.com/viewtopic.php?t=6516)
