margin

html, css - weird invisible margin below pictures

hello, i’m going bananas here, somehow below all of my images in my page there is a gap, a margin wich isn’t there in the code. Even Firebug can’t see it but Firefox and Safari are rendering it - EVEN WITHOUT CSS AT ALL! Never happend to me before...! <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml...

HTML list margin

Hello guys, I'm trying to make a numbered list but I'm getting a margin on the top and the bottom between the list and some text (I'm using Firefox). When I try get rid of it with CSS, I loose the numbers and the indentation. Is it possible to get rid of the margin without loosing the numbers and list indentation? If you use the follow...

jQuery problem: onClick animate marginTop -= 50px, height +=50px

Hello people, I have hard time understanding and creating a proper function using jQuery. I have 2 main areas in my site. The first is the content area that appears over the other area I named panel. All I want is this panel when I click on a specific link to move a bit upper and to resize to the size of the movement. It should repres...

CSS: Margin-top when parent's got no border

Hi, As you can see in this picture, I've got an orange div inside a green div with no top border. The orange div has a 30px top margin, but it's also pushing the green div down. Of course, adding a top border will fix the issue, but I need the green div to be top borderless. What could I do? html: <div class="header">Top</div> <div cl...

CSS, nested divs & margins vs. padding

i totally understand the box model. this question is more about trying to pin down a semantic methodology regarding when to use margins and when to use padding. here is a typical example, first, in plain English: situation: we have a container div, inside of which there is a paragraph element. goal: to have a 12px space between the...

How to disable indentation of LaTeX list items?

By default the "enumerate" environment is indented with respect to the current environment. How can I disable this indentation so that an enumerate environment of three items would produce the same output as the following piece of code? \documentclass{article} \begin{document} \paragraph{1.} \paragraph{2.} \paragraph{3.} \end{doc...

Opera 10 extra space

I have a page layout which is set to the height of the viewport using dijit.getViewport, works fine in IE, FF and Safari, but in Opera 10 I get around 20px of space at the top of the page which creates a vertical scrollbar. Has anyone experienced this or have a workaround? I can show the code if needed. I have set margin and padding to 0...

For what reason margin collapse rules were introduced in CSS?

Just can't figure out the situation when this clever set of rules can be helpful. They break the simplicity of the box model and provide infinite source of troubles when you combine different pieces of layout together. So what is the reason? Rules for the reference. Update: Rules are quite logical for sibling elements, but why margins ...

How to set left margin in PowerPoint textbox using VSTO

I'm taking some user data and adding it to a PowerPoint presentation using VSTO. To get the formatting to look right, though I need to be able to set the left margin of some of the text in the textbox. There will be an initial block of text followed by another, indented block. For example (underlines added to emphasize spacing): Lo...

IE8 vertical margin bug

I'm having a small issue with just IE8 in standards mode. The issue is with the vertical margin between the first 2 in a vertical list of blocks elements being 1 pixel too little . This is a subtle bug and most noticable with a 1 pixel margin when it collapses completely but I can't think of an easy fix. It doesn't seem to be a margin c...

Margin not acting properly in Firefox

I'm having a very weird problem that for the life of me I can solve. Basically, in Safari my top navigation has no top margin and is flush with the very top of the page. In firefox, it is applying the bottom margin to the top as well, for a reason I cannot figure out. When I remove margin in firebug, the fake top margin is also removed. ...

Page margins change in pdflatex

I use a style file that specifies page margins. I cannot understand the style file, but I guess it specifies bottom margins by using commands such as \vspace, \vskip, \vfil. When I compile the tex document with pdflatex the margins, especially the bottom ones, change. When I compile the document first to ps then to pdf, the margins are ...

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

verb/lstinline text flows out of the line margins without line break in Latex

The listings package supports line breaks inside lstlisting environment. But it doesn't produce automatic line breaks for lstinline environment. For example, in the following paragraph the first line flows out of the margins: The parameters \lstinline|base_rmr_brain|, \lstinline|base_rmr_fat|, and \lstinline|baseline_basal_rmr_of_lean_t...

vim left and right column highlight

I need to highlight anything beyond column 72 with a different background color. What's the best method? Something similar to a visible line margin that some editors do is also good. Is it possible? Some background: The syntax is a Pascal like, and works correctly. Only the Background needs to change. The foreground is already hig...

Strange margin-behaviour with Sifr spans in link (screens)

I'm making a menu and it's supposed to look like picture nr 1 on this link. However, at this moment, it looks like picture nr 2. There's no logic in this behaviour, since all three elements have the same css-attributes. Moreover, let's change the word "Reiki" to "Psychotherapie" and see what happens... (picture nr 3) For some reason t...

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

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

How to insert a margin at the right and left of the page?

Hello people, I want to insert this margin, but I don't know why... I want it to be like Twitter or TwitPic My CSS: body { margin: 40px; margin-bottom: 50px; padding: 0; background-color: #edece9; font-family: "Lucida Grande", "Bitstream Vera Sans", "Verdana"; font-size: 13px; c...