Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

adjust border on one specific side

I'm using a controlTemplate of the ListBox to show a collection. I want to display all the items with a border like in a grid (all lines same size). When I give every listBoxItem a border, the line between 2 items has a double size. (made from the bottom border of the first item, and the top border of the second item)

So the question is: Can I set/hide the border on a single side of an item? (like 'border-top' in css)

like image 896
Jowen Avatar asked Jan 31 '09 21:01

Jowen


People also ask

How do you put a border on only one side?

If you want to set a border to just one side of the element, use four values (write none to the side you want no border to appear). If you want to set a border to the top and bottom sides, use two values (write none to the second value).

Is it possible to create a border on only one side of cell?

Yes you can. On the design tab, select Borders on the right side of the menu. Select the last option.

How do I make a left border in word?

Select a word, line, or paragraph. On the Home tab, click the arrow next to the Borders button. In the Borders gallery, click the border style that you want to apply.


1 Answers

The border property is a thickness, just like margin and padding, so you can do Border="2,0,2,2" to get a border of 2 everywhere except the top.

like image 71
Bryan Anderson Avatar answered Oct 01 '22 13:10

Bryan Anderson