margin

How to wrap uninterrupted text in Latex?

Hello, I need to insert text like this in my Latex document: ((((tetrameristaceae,pellicieraceae),marcgraviaceae),balsaminaceae),(fouquieriaceae,polemoniaceae,sladeniaceae,(ternstroemia,adinandra)pentaphylacaceae,(schima,gordonia)theaceae,(lissocarpa,diospyros)ebenaceae,symplocaceae,(maesaceae,(theophrastaceae,(primulaceae,(myrsine,ard...

Why can't I center with margin: 0 auto?

I have a #header div that is 100% width and within that div I have an unordered list. I have applied 'margin: 0 auto' to the unordered list but it won't center it within the header div. Can anybody please tell me why? I thought that if I define the width of the parent div, then the unordered list should be able to center itself with ma...

How can I center something if I don't know ahead of time what the width is?

I am trying to center a paragraph tag with some text in it within a div, but I can't seem to center it using margin: 0 auto without having to specify a fixed width for the paragraph. I don't want to specify a fixed width, because I will have dynamic text coming into the paragraph tag and it will always be a different width based on how m...

Php include annoying top margin

I don't know why every time I try to include my header using PHP’s include there's a top margin. I checked it using Firebug and it says there's a 22px offset margin on the top. Is anybody experiencing this problem? I think it's a CSS propiety: top: 22px. But nothing can change it even if I write h1 style="top: 0px; margin-top: 0px;". I t...

Margintop in actionscript3

Hello Is het possible to set a margintop for a form element in actionscript? var frm:Form = new Form(); frm.setStyle("marginTop", 20); Or something like this? Thank you ...

Simple But Annoying Problem: Can't add top margin to footer that uses clear:both

I can't add top margin to footer that uses clear:both. Using padding seem to solve the problem. But it ruins the top solid border of the footer. index.php: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; <html xmlns="http://www.w3.org/1999/xhtml"&gt; <head> ...

HTML blank I want to erase...

Hello everyone there! I have a new problem that bugs me ... I am making a web page that I want to be fixed with no scrolling and most important I want my main Div to fill aaaaaaaaall my available space... I made this code <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&g...

Div "default margins" out of nowhere.

Hi! even after many lines i've written in css and html, the css-behaviour still manages to surprise me - in a bad way. I was putting together a sample site for a friend to show him how he could build his layout, but Firefox 3.0.5 and IE8 create margins between my #header, #content, and #footer-divs out of nowhere. If i switch in IE7 Mo...

Margin left- px

Can I use any tag that will allow me to place a line <hr /> on a specific left margin size ...

How can I set a StackPanels margins individually?

I can set the margin of a stackpanel in code-behind like this: StackPanel sp2 = new StackPanel(); sp2.Margin = new System.Windows.Thickness(5); But how can I set each individually, both of these don't work: PSEUDO-CODE: sp2.Margin = new System.Windows.Thickness("5 0 0 0"); sp2.Margin.Left = new System.Windows.Thickness(5); ...

Very Unusual Margin Appears Always in Internet Explorer [CSS]

Only in Internet Explorer does this occur: I'm getting an additional margin (of 19 pixels) below a fieldset and I can't seem to see why, whatever I try! Try it for yourself, take a look at http://theshrop.com/d/call_us_or_call_in.php. To aid I've added a grid and some background colours. The fieldset should have a 1.125em bottom margin a...

Two columns in div - Which one to use 1) float along with margin or 2) Two floats

Hi, I have two divs in a container. One is left bar and another is right bar. I need some advice/suggestions to use which method. Method 1: #container{ width:800px; margin:0 auto;} #leftbar{ float:left; width:200px; } #rightbar{ float:right: width:550px;} Method 2: #container{width:800px; margin:0 auto;} #leftbar{ float:left; width...

IE8 - Container with margin-top: 10px has no margin

EDIT: This happens only in IE8, it works fine in IE7, Firefox, Opera etc First of all, here is a picture I have made in photoshop to demonstrate my problem: http://richardknop.com/pict.jpg Now you should have idea about my issue. Here is a simplified version of markup I'm using (I left out most irrelevant content): <div class="left">...

Why does MooTools remove the margin when creating an instance of Fx.Slide?

I have a <div> with the CSS rule margin: 0 auto; and I'm using MooTools to slide it when necessary. It seems that the mere instantiation of an Fx.Slide object removes the margin on my element. That is, whereas the element used to be centered inside its parent, it is now left-aligned. Just this line alone seems to do this: var slide = n...

CSS box/ul menu problem

Hello, I am having serious trouble getting my css to work properly. It looks different in all 3 browsers that i use (Chrome, IE and FF). Now to the question in hand, i have been trying to copy the example from the following url: h t t p : / / w w w .alistapart.com/articles/taminglists/ Just scroll down almost to the bottom and look for ...

Different css rendering for span inside td with FF3.5 versus FF3.0

I have a web page that has a table and inside one of the td is span that uses a smaller font, float right to place it to the far right, and a negative margin-top, so it is aligned with larger text in the td. With Firefox 3.0 it works fine, but I just updated to Firefox 3.5 and the margin is moving the text up too far. I have another pa...

CSS link Spacing and Paragraph Spacing

Here is the site: http://wesbos.com/tf/shutterflow/?cat=1 The banner image at the side that says S&S photography adds a margin of a few pixels to the bottom. This only happens when I link it to a URL. Rollover an image to see the text that is highlighted. This works great except I would like to add some padding to the end of the lines...

Where are the margins/padding set on a wpf ListView GridView?

I've got a WPF ListView/GridView spec'd in XAML. The first column uses a CellTemplate to specify icons and the others use DisplayMemberBinding to populate themselves. The icons column is 20 wide, the icons 16 but they're getting truncated by margins/padding/something. I can't work out where it's set. Here's the essentials (I've remov...

CSS properties being passed up to the parent element when the DIV is empty

This problem is happening for me on IE8 and Chrome which makes me think this is a standards thing. I am creating a site with header and menu using DIVs that do not have any content but do have background images and heights / widths set in CSS. I want the inner DIV to have margin against the parent div but it applies the margin to the pa...

Why aren't my simple CSS margins collapsing?

I've always heard that margins in CSS will collapse when next to each other, so that settings two elements to have 40px all around will only result in 40px between them. Is this an old way to render CSS, as in does it not work this way anymore? This is the HTML and CSS. I can't seem to get the margins to collapse: Relevant HTML <div ...