# Making a field transparent via CSS

**URL:** <https://forum.servoy.com/t/making-a-field-transparent-via-css/8483>\
**Category:** Classic Servoy\
**Created:** [December 5, 2007, 8:52pm UTC](https://forum.servoy.com/t/making-a-field-transparent-via-css/8483 "2007-12-05T20:52:52Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![chico](https://avatars.discourse-cdn.com/v4/letter/c/b38774/32.png) [@chico](https://forum.servoy.com/u/chico)\
**Post date:** [December 5, 2007, 8:52pm UTC](https://forum.servoy.com/t/making-a-field-transparent-via-css/8483/1 "2007-12-05T20:52:52Z")

</div>

Here’s my CSS:

```auto
field.transparent
{
	// There seems to be no way to make a field transparent
	// using the "background-color" value.
	// background-color: none;
	margin: 1px 5px 1px 5px;
	font: 12pt "Arial";
	color: #333333;
	border-style: solid;
	border-width: 0px 0px 0px 0px;
}

```

The commented code is what I have in place of what I’m hoping is an easy fix. Is there a way to make a field transparent using CSS? I would think it would be tied to the background-color value.

Additionally, I can’t seem to get the regular Transparent checkbox in the Properties to work. Actually, it doesn’t work for me (Mac OS 10.5.1, Servoy v 3.5.2) but it DOES work for my co-worker (Mac OS 10.4.10, Servoy v 3.5.2). ![:roll:]( "Rolling Eyes")

---

<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:** [December 5, 2007, 9:15pm UTC](https://forum.servoy.com/t/making-a-field-transparent-via-css/8483/2 "2007-12-05T21:15:49Z")

</div>

No, as far as I know, you can’t set the transparancy by Servoy CSS.  
this is a fixed property of the element (field or label) itself.

I don’t know if it’s a limitation in Java, or just not implemented in Servoy CSS yet. Maybe one the Servoy guys can comment on that.

---

<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:** [December 5, 2007, 9:19pm UTC](https://forum.servoy.com/t/making-a-field-transparent-via-css/8483/3 "2007-12-05T21:19:16Z")

</div>

ah, found the topic:

[http://forum.servoy.com/viewtopic.php?t … ansparency](http://forum.servoy.com/viewtopic.php?t=5468&highlight=transparency)

---

<div class="post-metadata">

**Author:** ![chico](https://avatars.discourse-cdn.com/v4/letter/c/b38774/32.png) [@chico](https://forum.servoy.com/u/chico)\
**Post date:** [December 5, 2007, 9:26pm UTC](https://forum.servoy.com/t/making-a-field-transparent-via-css/8483/4 "2007-12-05T21:26:56Z")

</div>

Argh.

If I can’t do it in CSS, I’d like to figure out why my Transparent checkbox doesn’t work. It just seems to have no affect.

Is this possibly related to the version of Java I have installed? I don’t even know how to check that.

---

<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:** [December 5, 2007, 9:29pm UTC](https://forum.servoy.com/t/making-a-field-transparent-via-css/8483/5 "2007-12-05T21:29:22Z")

</div>

I think it has something to do with Leopard & java!  
there are still a lot of issues with those.

---

<div class="post-metadata">

**Author:** ![chico](https://avatars.discourse-cdn.com/v4/letter/c/b38774/32.png) [@chico](https://forum.servoy.com/u/chico)\
**Post date:** [December 5, 2007, 11:04pm UTC](https://forum.servoy.com/t/making-a-field-transparent-via-css/8483/6 "2007-12-05T23:04:06Z")

</div>

OK, sounds good. I will assume that these things will eventually get fixed. One of the pains of adopting new technology I suppose.
