padding

Legendary Annoyance of IE6's margin and padding "behaviour" (Help!)

Everything is OK in Chrome, FF and IE8. But in IE6 there's a strange margin right below the div "middle-column" (inside it there are 3 divs called featured1, 2 and 3.) which is above the divs "left-column" and "right-column"). I already tried everything to get rid of that problem. I tried the "display: inline technique" and CSS resets. P...

Can't achieve padding in menu items using sIFR 3

Hi folks, n00b question alert, but I've been struggling for a few days with this one and have searched in vain for the solution in other posts! I have a horizontal menu that has padding either side of the text such that the items appear separated. However upon replacing the text with sIFR, the padding doesn't appear, and thus the items...

String padding in tsql

I print out a bunch of DDL statements that are dynamically created and want to align the output in a specific way. PRINT 'ALTER TABLE ' + @TableName + ' WITH NOCHECK ADD CONSTRAINT CK_' + @TableName + '_' + @ColumnName + '_MinimumLength CHECK (LEN(' + @ColumnName + ') > 0)' Output: ALTER TABLE SignType ADD CONSTRAINT CK_SignType_Desc...

Window.Margin & Window.Padding don't work

hello. I am setting peroperty Margin and Padding of a window and it doesn't take effect: Here is an example: <Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" SizeToContent="WidthAndHeight" ResizeMode="NoResize" Padding="22" Margin="...

Can the struct padding be safely used by the user code?

Assuming I have a struct like the following: struct Struct { char Char; int Int; }; and sizeof( int ) is greater than one and the compiler adds padding for the Char member variable - is the compiler-generated code allowed to change the values of the padding bytes? I mean if I use pointer arithmetic and write some data into th...

Safari Display Problem

the page http://wespeakforfreedom.com doesn't seem to display correctly on safari (so I have been told, I do not have Safari to test), the thing I find odd is that it displays fine on other webkit based browsers. From what has been described to me it sounds like a padding issue - any one have any ideas? ...

html padding does not work in Internet Explore when resizing the font

This is an internet explorer only bug. I'm currently using IE7. I'm having the same problem that appears on YouTube page. There is "Home" "Video" "Channels" under the search text field at the top of youtube.com page. The padding that exists between Home and Videos gets ignored when we increase or decrease the font. The page I'm deve...

When to use margin vs padding in CSS

When writing CSS, is there a particular rule or guideline that should be used in deciding when to use margin and when to use padding? ...

Why is there extra "white space" between these floated Div's in FF and not IE?

Why is there so much extra space in FireFox between the two floated blocks? <html> <head> <style type="text/css"> #Container-900px { width:900px; padding: 10px; border: 1px solid #CCCCCC; } #Container-900px .left { float:left; width:435px; height:300px; } #Container-900px .right { float:right; width:435px; height...

Padding text in listbox

Hi everyone, var a1 = "HEL"; var a2 = "HELLO"; var a3 = "LLO"; var length = a2.Length+5; listbox.Items.Add(a1.PadRight(length) +"End"); listbox.Items.Add(a2.PadRight(length) + "End"); listbox.Items.Add(a3.PadRight(length) + "End"); I have code like this to obviously pad all text...

Firefox/Safari setting height as [specified height - padding - border] for input[type=button]

When I use the following CSS: input[type=button] { background-color: white; border: 1px solid black; font-size: 15px; height: 20px; padding: 7px; } with this HTML: <input type="button" value="Foo" /> I expect to see this, so the total height becomes 36px: 1px border 7px padding 20px content (with 15px text) 7px paddin...

Getting rid of extra padding for RadTab

I don't know how strong the support of RadControls over here is, but it can't be worse than Telerik(there I'm lucky to get a response in 2-3 days), so I'm going to try here first. Basically, I'm trying to do custom theming(using just CSS classes) throughout my application, so I tried setting the CSS classes needed on the telerik RadTab ...

Why Doesn't IE7 recognize my css padding styles on anchor tags?

My site is working fine in Firefox, Safari, Chrome, and Opera, but for some reason IE7 is not recognizing css padding on any anchor tags. I can't figure this out. In IE7, if you look at the tabs that say "exclusives|popular|recent comments" on the homepage http://revolvermag.com, you'll see that there is no padding getting applied. I'v...

Using NSNumberFormatter to pad spaces between a currency symbol and the value

Hi Apologies if this is a dumb question but I'm trying to format a currency value for my iphone app and am struggling to left-justify the currency symbol, but right-justify the value. So, "$123.45" is formatted as (say) $ 123.45 depending on format-width. This is a kind of accounting format (I think). I've tried various methods with...

Dynamic Padding (jQuery)

$('#menu .sub-right').css( 'paddingLeft', $('#menu .sub-left').width() ); nor $('#menu .sub-right').css({'padding-left': $('#menu .sub-left').width()}); ...these work. What am I doing wrong? Thanks! ...

ff safari space below input value

How do I get rid of the seemingly default padding below text in an input on Firefox relative to Safari (where there is no space -what I want) http://branklin.com/queue/soq.php ...

paragraph "<p>" padding not applied

The following three pieces of code behave exactly the same: <p {padding: 0 15 0 15}> A paragraph of text here... </p> <p> A paragraph of text here... </p> <p style="padding: 0 15 0 15"> A paragraph of text here... </p> How do I get the paragraph indented on both sides? (I tried 15px instead of 15 (EDIT - but only on the first tw...

Padding-background of floated div does not show up.

I'm having problems with a div that I need to have padding. Adding padding to it "works" however the padding-part doesn't get the background that the rest of the div has, it's just "invisible". I've stripped out the relevant part of the code. Fire it up and you'll see. If i remove the floating of the inner box then the padding-backgroun...

Padding has blue border in IE and Firefox but not in Chrome.

Okay, just to make it quick. 1) Go to www.simplefire.com.au - with Firefox / IE - with Chrome. 2) The image on the right seems to have blue border on Firefox / IE, but Chrome displays the page perfectly. Anyone knows what the problem might be? I'm using wordpress and if it helps my style.css could be found here: http://sho...

How to get two TD cells side by side WITHOUT using css

Hi, in the following HTML snippet, I would like the two cells be placed side by side with NO spaces between them; without using css if possible. If the leftmost position of the 2nd one is the rightmost position of the 1st, why WOULD they have any space between? thx. <TR> <TD style="position:absolute; top:98px; left:0px; right:56px;...