tags:

views:

399

answers:

1

I have the following XUL fragment, which works fine, but puts a 1 pixel border around the entire listbox. I've tried a number of CSS styles, but cannot eliminate the border.

Any ideas?

<listbox>
 <listhead>
  <listheader id="adj_lh_1" label = "one"/>
  <listheader id="adj_lh_2" label = "two"/>
 </listhead>
  <listcols>
   <listcol flex="1" />
   <listcol flex="1" />
  </listcols>
 <listitem>
  <listcell id="adj_li_1"  label="data one" />
  <listcell id="adj_li_1"  label="data two" />
 </listitem>
</listbox>
+2  A: 

You can apply the "-moz-appearance: none;" style rule in your css.

Eg.:

listbox {

-moz-appearance: none;

-moz-border-bottom-colors: none;

-moz-border-top-colors: none;

-moz-border-left-colors: none;

-moz-border-right-colors: none;

border: none;

}

lithorus
That changes it, but does not eliminate it
Noah
No, but after you have added that style you can then apply whatever border settings you want.
lithorus
Forgot to add that you might need to use :-moz-border-bottom-colors: none; -moz-border-top-colors: none; -moz-border-left-colors: none; -moz-border-right-colors: none;aswell.
lithorus
border color none didn't work, but changing the border colors to white, the same as by background made them "disappear". Can you edit your answer, adding the additional css lines, then I'll accept it.
Noah
border color none is not enough, you have to use the specific "-moz" ones 1 for each side 4 in total. Will edit the answer :)
lithorus