# border-style none does not work

**URL:** <https://forum.servoy.com/t/border-style-none-does-not-work/6092>\
**Category:** Classic Servoy\
**Created:** [June 19, 2006, 8:56pm UTC](https://forum.servoy.com/t/border-style-none-does-not-work/6092 "2006-06-19T20:56:27Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![tkilshaw](https://avatars.discourse-cdn.com/v4/letter/t/bc79bd/32.png) [@tkilshaw](https://forum.servoy.com/u/tkilshaw)\
**Post date:** [June 19, 2006, 8:56pm UTC](https://forum.servoy.com/t/border-style-none-does-not-work/6092/1 "2006-06-19T20:56:27Z")

</div>

I’m using Servoy beta 3.03 on Windows XP sp2.

border-style none does not work. Other border styles do work. But none looks like inset. This makes it impossible to make the kinds of forms that I need to make.

Here is a style that does not work:

field.jack  
{  
background-color: #ccccff;  
border-style: none;  
font: 11pt “Verdana”;  
text-align: left;  
margin: 0px 0px 0px 0px;  
}

Terry

---

<div class="post-metadata">

**Author:** ![tkilshaw](https://avatars.discourse-cdn.com/v4/letter/t/bc79bd/32.png) [@tkilshaw](https://forum.servoy.com/u/tkilshaw)\
**Post date:** [June 19, 2006, 9:15pm UTC](https://forum.servoy.com/t/border-style-none-does-not-work/6092/2 "2006-06-19T21:15:27Z")

</div>

I have discovered that I can change the field’s borders by changing its border-type property.

What then is the use of the Style? Which takes precedence? what are the rules for correctly using either a CSS style on a field or its properties in order to change how it appears?

Terry

---

<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:** [June 20, 2006, 7:36am UTC](https://forum.servoy.com/t/border-style-none-does-not-work/6092/3 "2006-06-20T07:36:03Z")

</div>

If you set the property to default, then the CSS is in control.

Paul

---

<div class="post-metadata">

**Author:** ![tkilshaw](https://avatars.discourse-cdn.com/v4/letter/t/bc79bd/32.png) [@tkilshaw](https://forum.servoy.com/u/tkilshaw)\
**Post date:** [June 20, 2006, 3:32pm UTC](https://forum.servoy.com/t/border-style-none-does-not-work/6092/4 "2006-06-20T15:32:08Z")

</div>

Afraid that just aint so.

I started with all properties set to DEFAULT. Used a CSS subclass of field. The only properties that worked were text alignment and font.

Borders and background did not work from the CSS class. Both were set to default on the field.

Terry

---

<div class="post-metadata">

**Author:** ![bcusick](https://avatars.discourse-cdn.com/v4/letter/b/ed8c4c/32.png) [@bcusick](https://forum.servoy.com/u/bcusick)\
**Post date:** [June 20, 2006, 11:23pm UTC](https://forum.servoy.com/t/border-style-none-does-not-work/6092/5 "2006-06-20T23:23:31Z")

</div>

border-width: 0px 0px 0px 0px;  
border-style: solid;

Those two properties in your style will set it to no border.
