margin

How to get/set paragraph before/after spacing of list items in PowerPoint with VSTO

I'm working on a PowerPoint VSTO addin and am needing to get at the margins between List Items. In the PowerPoint interface, you can adjust this value by right clicking the individual paragraph and selecting paragraph and then adjusting the Before or After value in the Spacing section (for PowerPoint 2007). This is the same place that ...

CSS gaps between image links for no reason

Hi, I've been trying to get this horizontal navigation sorted for the past few hours now and nothing is working. I've tried reset.css stylesheets, *{padding: 0; margin: 0) etc. and I still have gaps inbetween my image links. You see, the navigation is made up of an unordered list of image links displayed inline, but there are gaps in b...

CSS margin collapsing?

I'm working with Google Chrome on OS X, and I seem to be running into a margin collapse issue. I have two divs stacked on top of each other, both with a margin-top of 2px and a margin-bottom of 5px, and both with a 1px border. According to my arithmetic, there should be 1+1+2+5=7px of space between the "content" areas of the divs, since ...

How do I place a DIV tag image on the very top of the page in HTML5?

Hello there. I'm trying to put an x-repeat "grid" of images by using background-image in CSS, then using the id in a DIV tag. My intention is to put a sort of "panel", then always extends to the very top of the page, and loops with repeat-x. It works just fine without a DOCTYPE, but when I put the clean in the code, it pushes the image...

Margin on the top in LaTex

I am now writing a thesis which is required to have 1 and half inches on the left or binding side, and 1 inch on the other three sides. I just have my print-out checked in the binding office and I was told the margins are not okay, especially the one on the top is not enough, a little less than 1 inch. See the figure below: I wonder ...

CSS column height different on Opera/IE to FF

Hi all, Thanks to everyone who helped with my last question but I've got a new browser-independent problem: For some reason, the image navigator (not yet functioning) on a website I'm working on is currently not displaying in the correct place on Firefox. It appears in the right place in IE8 and Opera but Firefox seems to have a proble...

CSS * {margin: 0;padding: 0;} override

Hey all, i am in need of some help with figuring out how to override the "* {margin: 0;padding: 0;}" in my css. The reason why is that i have this css: .postcomments { width: 547px; padding: 5px 5px 5px 5px; margin: 0 0 5px 0;} .postcomments a { text-decoration: underline;} .postcomments ul { margin: 0; padding: 0; list-style-type:...

How to place caption (figure / table) into margin?

I write thesis and need to put a lot of small pictures into it. I also need to use captions (with labels) for better navigation and referring to these pictures. In the same time I want to spare space and put captions beside (next to) pictures, in margin, like marginpar does. I tried sidecap package but it didn't work, neither mcaption pa...

margin-bottom property of a div's last element doesn't "extend" the div

I have an element in a div, which has a background image. Below the div I have another div with another background image. Now the problem is that if the last element contained in the first div has margin-bottom applied there will be a gap between the 2 divs like this: Notice the gray gap caused by the margin-bottom property of the h2 ...

what's the difference between padding and margin?

In W3 CSS and also in XUL/CSS? (not between CSS and XUL/CSS). ...

How to use CSS to ensure items remain offscreen even if window is resized?

I am trying to implement a type of slider using jquery. However this question is about the CSS involved in trying to achieve the functionality. My site design occupies a central column of width 960px. Within this layout there is a central element, that I wish to slide right, on click of a "next" button, and at the same time, another ele...

How do I add a margin outside the border of a component in Swing?

I use multiple components that has a border painted. Is there any easy way to add a margin to the component so that the borders aren't painted so close to eachother? ...

margin-top in a nested div

Hi, I have a problem with the margin-top in a nested div, when I try apply margin-top in a nested div the margin is applicated to parent div, any idea ? ...

Why won't the vertical margins between <p> and <hr> collapse in IE7

Hello all, Perhaps I am missing something, but I can't explain this from any IE bug I know of. Why in this example do the margins of the <p> and <hr> elements collapse as expected in standards compliant browsers (i.e. FF3, IE8, etc) but not in IE7 (including IE8 compatibility mode)? <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transit...

extra padding/Margin in Firefox+CHrome None in IE

There is 20px margin/padding below the catmenuconatiner (second navigation bar). This is only showing in firefox and chrome not in IE 6+ Here is the page: www.fish-and-web.blogspot.com Another problem related to the same issue is between the comments. The comment boxes have 15px margin between them. Again, this is only showing in Firef...

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

how to align floats in IE6

Good day! I am having problems displaying floated paragraphs and images in IE6. There was no problem displaying those in Opera and Firefox,though. I have three divs inside a container. Each div has its own paragraph and image either floated to the left or right. In order for me to achieve a desired layout, I set negative margins on mos...

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

Different margin for webkit browsers

Hello There is difference between webkit and the other browsers in one absolute positioned element margin. So how to set another margin for the webkit browsers in the css? Thanks! ...

WebKit's percent-sized floats bug: are there any workarounds?

I'm experiencing what appears to be a bug in WebKit's rendering of floating elements' width when they have margins. The following renders as one would expect in Firefox (3.6) and WebKit (Chromium 5.0): <div style="width: 100%; background-color: green;"> <div style="background-color: red; float: left; width: 50%;">n</div> <div s...