border

generate thumbnail with white border VB.net/C#?

I need to generate thumbnails from a set of jpg's that need to have a small white border so that they appear to be "photos" when displayed on a map. Getting the thumbnails themselves is easy but I can't figure out how to get the border. ...

WinForm - draw resizing frame using a single-pixel border

In a Windows Form with a Resizing Frame, the frame border draws with a raised 3-D look. I'd like it to draw with a flat single pixel border in a color of my choosing. Is this possible without having to owner draw the whole form? ...

How to force a DIV block to extend to the bottom of a page, even if it has no content?

Hi, I'm trying to get the content div to stretch all the way to the bottom of the page but so far, its only stretching if theres actual content to display. The reason I want to do this is so if there isn't much content to display, the vertical border still goes all the way down. Here is my code <body> <form id="form1"> <div id...

Images & Hyperlink Borders - Ghost 1px x 1px Border

I've an image that is wrapped in an anchor tag that, through jQuery, triggers an action somewhere else on the page. When I click on the image, two tiny 1px by 1px boxes show up in the upper and lower left corners of the image. My CSS styles explicitly state no borders for images: a,img { border: 0; } It also seems to only happen in Fi...

Window border width and height

I'm writing a direct3d application and after noticing strange bugs such as anti-aliasing occurring even when it was turned off and the mouse pointer not lining up to things with the same coordinates as itself I discovered that when creating a window the width and height parameters include the border. The program was rendering a 800x600 ...

detecting true border, padding and margin from Javascript

Is there a way to detect the true border, padding and margin of elements from Javascript code? If you look at the following code: <html> <head> <style> <!-- .some_class { padding-left: 2px; border: 2px solid green; } --> </style> <script> <!-- function showDetails() { ...

What is wrong with this simple CSS in IE?

There is a div that has inner content, a div with a border that's inside a div. Somehow, this div is expanded to encompass the next div. It blows my mind. <div style="background: yellow;"> <div> <div style="border: 1px solid black; background: green">green background</div> </div> </div> <div style="margin-top: 100px;"> IE gi...

Get rid of the line under that tab of the tab control

Using xaml ( wpf ) I'm trying to get rid of the line under the tab control as show in the "Illustration A" below so that it ends up looking like "Illustration B": Illustration A Illustration B The line shows up when I define the Tab Item but appears to be attached to the Tab Control, as a result changing BorderThickness on either ...

Can I change the thickness of the border of a window with MFC?

Normally, the thickness of a window is 4 pixels, which can be retrieved by GetSystemMetrics method. Can I change its value, for example 2 pixels? Thank you very much! ...

How to remove the border of the client area of a window?

I don't want the border of a window's client area to be seen. Is there any way to remove them? The window is a SDI(Single Document) window. I also noticed that the border appeares only on the top and left side of the client area (no on the right and bottom). I was very confused. Thank you very much! ...

wpf border control to span the width of listboxItem

Im trying to define a dataTemplate for a business object in my wpf application a collection of which is being bound to a ListBox. <UserControl.Resources> <DataTemplate x:Key="ResizedItemsDataTemplate" DataType="{x:Type resizer:ResizeMonitorItem}"> <Border x:Name="bdr" BorderBrush="Blue" Border...

Linked Image Border Styles

I want to be able to link my image. Click on it. Go back to the page and see that it was visited. I want my visited images to have a different color border when I go back. My code: a:link img{border-color:#FFF; border-style:solid; border-width:1px;} a:hover img{border-color:#03F; border-style:solid; border-width:1px;} a:visited img, a:...

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...

Reset an input control's border color (HTML/Javascript)

Does anyone know how to reset the border color of an input control once you have modified it using javascript? Useful for validation by highlighting fields that have incorrect or invalid data in them etc. E.g. changing the border: document.getElementById('myinput').style.border = '1px solid red'; how to reset? the next line just re...

How can I give a WPF element a rectangular flat 3D border?

I would like to create a rectangular 'flat 3D' look for one of my control templates. In it's most simple version this means having a line at the bottom that is darker than that at the top, and maybe some variation between the left and right lines too. A more complex version would allow me to provide on or more brushes so that gradients...

WPF: Remove dotted border around focused item in styled listbox

I have a horizontal listbox with a custom controlIemplate. The selected item gets a dotted frame when focused. Anyone know how to get rid of it? ...

How do I stop richfaces adding borders to panels and calendars?

I'm hoping to use a custom richfaces skin to handle the bulk of my presentation work. Unfortunately richfaces renders borders around every cell in a calendar component and around each panel. I would like to turn them off so that day numbers site in an open grid with no borders. There is no obvious way to do that using skins or attributes...

Border around specific rows in a table?

I'm trying to design some HTML/CSS that can put a border around specific rows in a table. Yes, I know I'm not really supposed to use tables for layout but I don't know enough CSS to completely replace it yet. Anyways, I have a table with multiple rows and columns, some merged with rowspan and colspan, and I'd like to put a simple border...

HTML/CSS: Table cell and border displaying differently in IE/Chrome and Firefox/Opera

After several hours of frustration I finally turned to the internet for the answer. Imagine this extremely simple piece of code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt; <html> <head> <title>AARRRRRRGH</title> </head> <body> <table> <tr> ...

CSS3 outline using CSS2 border

Sadly, CSS outline isn't supported in IE7, so i'm stuck using border. But adding a border to any element on the page takes up room and possibly shifts the page. If i'm adding a 2px border, then I set a -2px margin, it sill isn't perfect, as list items move to the left, and "margin:auto" really screws with it. You can see examples here:...