WPF: Remove dotted border around focused item in styled listbox

You need to set FocusVisualStyle of each ListBoxItem to null. Steps are bellow 1) Create ItemContainerStyle for the ListBox <Style x:Key=”ListBoxItemStyle1″ TargetType=”{x:Type ListBoxItem}”> <Setter Property=”FocusVisualStyle” Value=”{x:Null}”/> …. 2) Set that style to Listbox <ListBox ItemContainerStyle=”{DynamicResource ListBoxItemStyle1}”

How to create multiple borders around existing border of circle [duplicate]

You can use a simple border and clip the background to the content-box to create the transparent part in the padding area: div.circle { background: rgba(255, 255, 255, .5) content-box; padding: 10px; height: 180px; width: 180px; box-sizing: border-box; border-radius: 50%; margin:10px auto; border: 10px solid rgba(255, 255, 255, .5); } body { background: pink; } … Read more

Two color borders

Yep: Use the outline property; it acts as a second border outside of your border. Beware, tho’, it can interact in a wonky fashion with margins, paddings and drop-shadows. In some browsers you might have to use a browser-specific prefix as well; in order to make sure it picks up on it: -webkit-outline and the … Read more

CSS border less than 1px [duplicate]

A pixel is the smallest unit value to render something with, but you can trick thickness with optical illusions by modifying colors (the eye can only see up to a certain resolution too). Here is a test to prove this point: div { border-color: blue; border-style: solid; margin: 2px; } div.b1 { border-width: 1px; } … Read more