padding

WPF TextBlock Padding is cutting off text

I have a TextBlock in a Grid with its Padding attribute set to 5. Sometimes the last character is cut off, depending on what string the Text property is set to. <UserControl xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" x:Class="SomeClass"> <Scrol...

Some IE 7 Help / CSS Positioning

Hey everyone, need a little help getting my site to run in IE7. The site in question is http://www.myvintagesecret.com/ The top navigation has a few LI hover links. I need to space them out so the hover works properly. What is the best way to go about this? (ill need to do each one pixel by pixel). There is a gap in the posts in IE7. ...

Getting around using Absolute Positioning

Hey all, I have a image I am absolutely positioning and it works perfect on firefox, but in a totally different spot on safari, Is there any other way to position it where I want(on top of another image) without using absolute positioning. I have already tried margin and padding and that does not work ...

Extra padding or margin coming from where??

October Landing Page I'm having a couple issues on a page I'm developing. In the page above you'll see three boxes toward the bottom of the page - two are the same format and the third has it's own problems. Box 1 & 2 (the ones without borders) PROBLEM: somehow the list items have some extra left padding (apparently) that is not speci...

css layout: margins and padding versus absolute positioning?

I'd like to get some feedback on using padding and margins for page layout versus absolute positioning. I realize that there are and will be scenarious where either or both are preferred and that will depend on the scenario. But what I'm getting at is overall page layout for pixel perfect designs what is the general rule of thumb? I'm a...

C# RSA with no padding

I'm busy trying to port Java code that looks like this Cipher rsa = Cipher.getInstance("RSA/ECB/nopadding"); rsa.init(Cipher.DECRYPT_MODE, RSAPrivateKey); decryptedData = rsa.doFinal(data, 0, 128); to C#, but as it seems the RSACryptoServiceProvider, forces you to either use OEAP or PKCS1 padding. I know no padding isn't s...

IE8 - How can I remove extra padding from an image?

Hi, See the (image) for a clearer understanding of what's happening to the header graphic. I've added the interconnect solutions worldwide logo to the orange banner through a customized joomla module; I did this to make editing and updating easier. But this resulted in adding extra padding to the top in IE8 - it collapses and is fine ...

IE7 & IE8 Padding/margin problems

Hi, I've already posted this problem but i didn't manage to resolve the issue from the answers i received... Hopefully i will get lucky this time. I've also include all the code etc... so this should make it easy to pin point the issue. IE7 Screen shot IE8 Screen shot please see the HTML & CSS for the entire website Any help wou...

Swing GUI components too tighly packed

Hi, In the Java Swing app I made it seems to me that all the component are too tightly packed. In QT one can specify padding and margins for the layout. Is there something similar for swing? Here is a screen shot of my application that I thing is too tight (is it? what do you think?. Thanks. ...

padding breaks jQuery selector?

I spent 2 hours this morning trying to figure out why my jQuery function worked in one part of the page but not another. I finally narrowed it down to vertical padding on a container. If I had this in my CSS: div.collapsiblePanel { padding: 0px 1%; } then, via jQuery, I can find the parent (.collapsiblePanel) element and could trave...

IE6 border-bottom: 0 & padding CSS issue.

Hi, I just encountered a IE6 bug that I don't seem to identify over the net. Basically this is when the behavior is triggered: a block element has border, on all sides except bottom, and top/bottom padding. and inside it there's another block element. My entire code is to big to fit in here, but I narrowed it down to this simple examp...

padding in md5 hashing algorithm

Hi all, i would like to know padding process in md5 algorithm detail. ...

Python tabstop-aware len() and padding functions

Python's len() and padding functions like string.ljust() are not tabstop-aware, i.e. they treat '\t' like any other single-width character, and don't round len up to the nearest multiple of tabstop. Example: len('Bear\tnecessities\t') is 17 instead of 24 ( i.e. 4+(8-4)+11+(8-3) ) and say I also want a function pad_with_tabs(s) such ...

How do you specify table padding in CSS? ( table, not cell padding )

Hi, I have a table with a colored background and I need to specify the padding between the table and it's content, I.E. cells. The table tag doesn't seem to accept a padding value. Firebug shows the table and tbody's layout with padding 0 but doesn't accept any value entered for them, so I guess they just don't have the padding property....

.Net AES Encryption - Universally Accepted Pad Setting

I have a .Net web service that processes AES encrypted data. The consumers of my service agree on a key/IV pair with me and that way we can pass data securely. I have a consumer using PHP that is using mcrypt to encrypt. mcrypt is padding with NULLs. I was not setting a pad (NONE) and therefore not able to decrypt the strings. I cha...

Setting Padding - why it says padding.all is not variable?

Hi, I do not understand why there is Control.padding.all which is int and according to hint there is set as well as get but I cannot set it (Control.Padding.All=5)? I would be grateful for explanation. Thanks! ...

Unwanted padding on link images in IE only

Hi, I hope someone can help. Within my container DIV I have 3 images which I require to sit side by side in one row. This is indeed the case in every other browser except, annoyingly, as usual, in IE6, IE7 and IE8 (groan). Each of the images is wrapped in an tag as follows:- <div id="images"> <a href="images/image01.jpg" rel="milkb...

Mysterious problem with CSS and Internet Explorer 7

I think the myth that IE is a nightmare for web designers its true. IE7 is adding me some mysterious padding or margin on the left and right side of my div#image (the gray div) and the paragraph in the div#content is suffering from the CSS propieties of the h2 tag. Thanks in advance! edit: I even tried Eric Meyer's CSS Reset but it didn...

char column converted to varchar still inserting padding

I don't really know how to explain this one. I've taken a table, created a copy of it with a specific column as varchar instead of char. Then I've copied the data from one table into the new one. However, when I then programmatically add a new value to the table, the column that was previously char(200) is still being padded with space u...

Extra padding in <input type="text">

It seems that every browser adds some magic hardcoded padding inside <input type="text">. Some browsers (IE, Safari, Chrome) make the input box a bit taller, but they properly top align as if it was a regular HTML element. I can live with the extra height. But some browsers misbehave (Firefox and Opera) and also try to either vertically ...