Question: Hey. I have a tabcontrol that is bound to an observable collection. 

I've tried doing

```
var tabitem = (TabItem)this.SingleOrDefault(ti => ti.Name == tabname);
    tabitem.Focus();
    ((UserControl)tabitem.Content).Focus();

```

And it does seem like it focuses on the tabitem, but only on a btn in the header of the tabitem, not on the content. the tabitem content is another usercontrol.

**How can I change the focus to the content, so that the tab actually is selected and not just the tabheader**

I know of tabcontrol.selecteditem, but Iøm not really sure how I would implement this as the observablecollection is actually a class that i've called ObservableTabCollection, that just implements observable collection.

Answer: 
Gonzohunter nailed this, alright, but you may find it easier to just set the style on the table, assuming you are in a recent HTML version. 

I used 

```
<table style='border-collapse: collapse;'>
    ... 
</table>

```

This worked perfectly.
You need to eliminate spacing from the table cells themselves.

In CSS:

```
<style type="text/css">
  td {
    border-collapse: collapse;
    border-spacing: 0;
    margin: 0;
    padding: 0;
  }
</style>

```

Or in [HTML 4.01/XHTML 1.0 DTD (Strict or Transitional)](http://www.w3schools.com/tags/tag_table.asp):

```
<table cellspacing="0" cellpadding="0">
  [...]
</table>

```