padding

jQuery validate focusInvalid add page margin/padding?

Googled and found nothing, might be asking the wrong question but here goes. How do I add padding/margin on a element that is invalid? I'm using jQuery validate plug-in to validate user input and required fields (As well as some PHP server side validation). The fields are in the middle of the web-page so when the validation happens it...

Space between div and img?

Hello, I have code like this: <div id="sc"> <h1>1. Orange</h1> <p>some text in here </p> </div> <img class="separator" src="images/separator.png" /> There's ALWAYS 13px gap between the "sc" div and "separator" img. Margins and paddings for bo...

Why does System.Windows.Controls.Button always have a padding of 10px?

See screenshot. The bounding cyan-bordered box is the button, while the blue fill is the rectangle. I cannot for the life of me figure out how to get rid of the padding in the button. Is there a way to position the rectangle to the top left so it touches the cyan border? Thanks. ...

Is there any way to compute the width of an integer type at compile-time?

The size of an integer type (or any type) in units of char/bytes is easily computed as sizeof(type). A common idiom is to multiply by CHAR_BIT to find the number of bits occupied by the type, but on implementations with padding bits, this will not be equal to the width in value bits. Worse yet, code like: x>>CHAR_BIT*sizeof(type)-1 ma...

Div with phantom left padding

I have a Div tag that for some reason is padding the left side with approx 50px. The following is the html and mind you nono of the "class" have padding-left" <body> <div class="popHeaderMain" align="center"> <div class="PopHeader"> Keller Williams Realty | (704) 602-0271 </div> <...

How to get a border around text element with auto-width/height in Silverlight + padding

What I have at the moment is only defined width: <Grid> <Rectangle Fill="#FFF5F7F9" HorizontalAlignment="Left" Height="80" Stroke="#FF565656" VerticalAlignment="Top" Width="128" RadiusY="15" StrokeThickness="3" RadiusX="15"/> <TextBlock HorizontalAlignment="Left" Height="47" TextWrapping="Wrap" Text="Draft" VerticalAlign...

Padding problem for text email using PadRight in C#

I have a question regarding encoding for text email messages using C# .net because I have mine as simple ASCII but when doing padding for formatting a recipt to the user the data is not lining up although when I check the lines in say NotePad++ they are exactly the same No. of character. Below is some code, can anyone tell me what I'm do...

padding when a floated object element is inside

i have the below html: <div class="wrapper"> <div id="header"> <img alt="Giannis Simeonidis" src="logo2.png" width="300" height="220"/> <object width="550" height="200" id="banner"> <param name="movie" value="banner.swf" /> <embed src="banner.swf" width...

Blueprint CSS boxes

I am currently testing out Blueprint to create the layout for a site. So far it has been going great, but now I've run into a problem I'm wondering if there is any elegant solution to. I am using the default 24 column layout and have a situation where I would like to do something similar to: <div class="span-8 box">..</div> <div class=...

Android - Spacing between CheckBox and text

Is there an easy way to add padding between the checkbox in a CheckBox control, and the associated text? I cannot just add leading spaces, because my label is multi-line. As-is, the text is way too close to the checkbox: ...