padding

latex padding / margin hell

hi everyone I have been wrestling with a latex table for far too long. I need a table that has has centered headers, and body cells that contain text that may wrap around. Because of the wrap-around requirement, i'm using p{xxx} instead of l for specifying cell widths. The problem this causes is that cell contents are not left justif...

Are there issues with image padding in Yahoo Mail's rendering of HTML for email...?

Hi, I've put together a HTML email template, which includes a table with images. This works well in most email clients, but Yahoo appears to insert 5px padding between each image. See the fifth cell, the one with 158px width... Anyone aware of this issue, or aware of how to work around it. Advice would be most appreciated! NB: I ...

How do I remove separation between rows in a HTML table?

I have a html table with 3 rows and 1 column. In the top and button row I have images and in the middle row I have div. Between my rows I see a separation (I see background of my page). I tried to set all padding and margins to zero (for tables, div and images) and I still have this separation. Can anybody, please, help me to solve this...

Why does the HTML5 DOCTYPE mess with my padding?

I have an html5 page with a navbar. Completely scratch coded. I just recently added a doctype to the item, and now I’m getting extra space under my navbar. If I remove the doctype declaration, it goes back to normal. I have completely reset padding, margins, etc. on everything, and cut it down to the a small amount of code that illustrat...

GWT HorizontalPanel setSpacing?

Is there a way to setPadding on GWT HorizontalPanel. I wanted to just have 20px left padding and then add few buttons. Currently I can only add setSpacing() and that puts padding on top,left,right,bottom. -Thanks in advance!! ...

How to achieve UIButton / UILabel 'padding' in iPhone app

Hi, I've got various views in my iPhone application that require padding e.g a custom UIButton with text aligned left, and a UILabel with a background colour. This may be a really stupid question, but how can I apply 'padding' to move the text off the left hand edge? I've tired using bounds etc without any success. I know I could cre...

IE7 Image Padding

Hi Guys, I have a simple function which attempts to calculate height and width of an image using jQuery for a slideshow box. The problem I am seeing in IE7 is the really strange effects padding seem to have on width/height. I have an image in Firefox and value returned is 450 x 324 [width / height] with CSS values of border:0 none; f...

Are there any CSS padding heuristics that I can follow?

I have a simple problem: I have an image inside of a div. In order to make the page more aesthetically pleasing, I'm going to add some additional padding to the image. Rather than eyeball it, I'd like to know: Are there any CSS padding heuristics that I can follow? I was thinking that somebody of Jakob Nielsen's caliber might h...

Sticky Footer, but only sometimes...continued

OK, so now there's a new wrinkle. The original problem I was having: http://stackoverflow.com/questions/3118932/sticky-footer-but-only-sometimes. I have a scroll bar in my browser, and I can't seem to make the extra 70px margin go away... <div id="wrapper"> <div id="headwrapper"> <div id="header"></div> <div id="menu"> <ul>...

Is it possible to pad integers with zeros using regular expressions?

I have a series of numbers of different lengths (varying from 1 to 6 digits) within some text. I want to equalize the lenghts of all these numbers by padding shorter numbers by zeros. E.g. The following 4 lines - A1:11 A2:112 A3:223333 A4:1333 A5:19333 A6:4 Should become padded integers A1:000011 A2:000112 A3:223333 A4:001333 A5:019...

Is the padding between class members of the same type always the same?

The following class contains some members of the same type: template <typename T> class MyClass { T m0; T m1; T m2; T m3; T m4; //... }; The members are all declared without an intervening access-specifier and thus are allocated that later members have higher addresses (ISO/IEC 14882: 9.2.12). The same paragrap...

Jquery Accordion widget - remove the icon and padding

Hi, I'm new to jquery and i'm trying to find out if it's possible to create simple accordion without the arrow icon and without padding at all inside the accordion content. I want to use the whole content space, and it seems like jquery accordion widget auto create some padding as the width of the arrow icon. Thanks! Lior ...

Extra padding inside a div

Hello! I m having problem to determine from where extra padding is added to a div. The div containing the text "Video Title" has too much padding added to it. Which is very much unwanted. And i have no idea from where this extra padding is coming. I have added the styles, the html codes and the link to a page using this sample page. ...

css - Padding under background image link next to text link - why?

This CSS problem is killing me :-( I cannot remove padding under a link in this page http://www.yart.com.au/stackoverflow/test2.htm I have reduced the problem to the bare minimum so its really clear. You can see my issue here http://www.yart.com.au/stackoverflow/blue.png <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"...

IE 7 - getting extra padding on bottom of footer, any fixes?

Here is my css for my footer. It is supposed to be at the very bottom of the page, but for some reason in IE 7 .. i am getting about 10px of extra margin. Any fixes? /* FOOTER ********************************************************************************************************************/ #footer-bg { ma...

How do I convert a padded string to an integer while preserving padding?

I followed the great example at Python: Nicest way to pad zeroes to string (4) but now I need to turn that padded string to a padded integer. I tried: list_padded=['0001101', '1100101', '0011011', '0011011', '1101111', '0000001', '1110111', 1101111', '0111001', '0011011', '0011001'] # My padded sting list. int_l...

css - How to remove padding next to adjacent links?

I cannot remove padding adjacent to a link in this page I have reduced the problem to the bare minimum so its really clear. I could try forcing the width of the div but I want to know why having two elements side by side makes the total wider than the sum of the parts. You can see my issue here http://www.yart.com.au/stackoverflow/adj...

Cell Padding Using CSS on an HTML Table

I need to pad just one cell in my table. I gave the td element a class and defined the class in my css file like this .itemQuantity { padding-right:30px; text-align:right; background-color: #EEE; } Padding-right does not seem to be doing anything. ...

jQuery calculate padding-top as integer in px

The only solution i have found is ($(this).innerHeight() - $(this).height()) / 2 But / 2 is not right option, because user can have padding-top:0px and padding-bottom:20px. Is there a way to make more accurate padding values? I was thinking about css('padding-top') and then parse it, by taking only int part, but value can be in "em" f...

Table Row, when add padding to one cell the whole row gets pushed down

I have a table, with some rows and columns, here is the example of the second row <tr> <td valign="top" style="width: 150px;"> <h5>MyCity</h5> </td> <td valign="top" style="width: 360px;"> <h5 class="store_title">Store Title</h5> <p>address</p> </td> <td class="storeDescriptionCell"><div>Descr...