margin

How to get rid of unwanted space between tables?

天涯浪子 提交于 2019-12-13 05:24:55
问题 I have a page with two large tables, one positioned above the other: http://www.sportsmogul.com/Encyclopedia/2007/BOS/index.html In my editor (Dreamweaver), there is no space between the tables. But in Chrome, there is a gap of about 10 pixels (the blue space where the background shows through, between the top "navbar" and the rest of the page). Would like to get rid of this gap. 回答1: It appears that there is a <br> tag right inbetween the tables, I must say that while there is a tiny bit of

overlay a img tag with a div using negative margin-top on the sibling div

让人想犯罪 __ 提交于 2019-12-13 05:05:21
问题 I am trying to overlay a img with a div using negative margin on the div , the text inside the div is displayed over the image, while the background of the div is being displayed under the img . html: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>JS Bin</title> </head> <body> <div class="a"> <div class="b"><img src=""/></div> <div class="c">somebody</div> </div> </body> </html> css: .a{ height:60px; background:#ccc; } .b img{ height:60px; width:60px; background:red; } .c{

How can i remove inner padding on TextBox wpf?

给你一囗甜甜゛ 提交于 2019-12-13 00:24:19
问题 I created a textbox. And there is empty place under text. In picture, Red Line. How can I remove that inner padding? 回答1: You can set negative values for padding. e.g. <TextBox Padding="-2" Width="100" Height="18"></TextBox> It will look like 来源: https://stackoverflow.com/questions/43908447/how-can-i-remove-inner-padding-on-textbox-wpf

Negative margin with float for two-column layout

痞子三分冷 提交于 2019-12-13 00:23:23
问题 I saw two column layout made as following way, but I didn't understand why it works. So what actually does the .col-sub do? If I remove margin-left:-100% in .col-sub , the Sub Content will fall down. If I remove float: left in it, the Sub Content can't show. What does margin-left and float do here? Demo can also be found here: http://jsfiddle.net/yougen/ATNh9/ HTML: <div class="wrapper"> <div class="col-main">Main Content</div> <div class="col-sub">Sub Content</div> </div> CSS: * { padding:0;

Margins & Images Issue

独自空忆成欢 提交于 2019-12-12 19:13:35
问题 for the life of me, i can't figure out why the margins won't render properly on some of the images here. After the first and second landscape orientation images, the margins overlap with the image/container above it. Can anyone shed some light? http://jsfiddle.net/JeffPannone/rDw6R/17/ *sorry everyone. I provided the wrong jsfiddle link previously. i corrected it here 回答1: One option is to set overflow:auto to the div. jsFiddle example 回答2: The margin of you images can collapse out of the div

IE7 position:fixed and margin-top problem

大城市里の小女人 提交于 2019-12-12 19:09:43
问题 I currently have an html setup that looks like: <section class="topBar">The site's permanent top bar</section> <header class="body">Some header info here</header> And a CSS setup like: .body { clear: both; margin: 0 auto; width: 600px; } header { height: 46px; margin: 30px auto 20px auto; } .topBar { position: fixed; top: 0; left: 0; width: 100%; z-index: 999; } The goal is to have topBar stay at the top of the page, and the header and all after it scroll below it. That for the most part

How to change the margins of a correlation matrix plot?

你。 提交于 2019-12-12 18:26:00
问题 I couldn't find any option to expand the margins for plot generated by corrplot.mixed in the corrplot package. Any suggestion would be appreciated! library(corrplot) cor_matrix <- structure(c(1, 0.31596392056465, -0.120092224085334, -0.345097115278159, 0.31596392056465, 1, 0.158912865564527, -0.606426850726639, -0.120092224085334, 0.158912865564527, 1, -0.134795548155303, -0.345097115278159, -0.606426850726639, -0.134795548155303, 1), .Dim = c(4L, 4L), .Dimnames = list(NULL, c("var_1", "var_2

Margin-bottom just working with float-left

不羁的心 提交于 2019-12-12 17:33:18
问题 On my markup I expect the footer with 25 pixels of bottom margin. I did this: div.footer { margin-bottom: 25px; } Without success — there is no bottom margin. If I do this: div.footer { margin-bottom: 25px; float: left; } It works! I know! I can solve the problem with floating, but it is a good practice? There is no other way? Thanks in advance. == UPDATE! / A little piece of my code == CSS: div.rlside-margin { margin: 0 25px; } div.tpside-margin { margin: 25px 0; } div.allside-margin {

IE8 negative margin issue

你说的曾经没有我的故事 提交于 2019-12-12 17:08:42
问题 I have a layout issue in IE8 only where a negative margin does strange things. I have tried to use some of the fixes I have found in this forum, but to no avail. It is Friday night after all! The page is here: http://community.thelandtrust.org.uk/wordpress/ The culprit is the search field on the right hand side, which has a negative margin to allow the button to sit over it on the same line. It works fine in all but IE8. In IE8, with a right margin of -80px the button is over the field but

Android. Setting left/right margin doesn't work

本秂侑毒 提交于 2019-12-12 12:15:28
问题 This is strange, but setting left or right margin in Java code doesn't work on some devices/platforms. Here is the code. Simple xml: <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="fill_parent" android:layout_height="fill_parent" android:background="#ffffff" > <View android:id="@+id/myView" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_marginLeft="0dp" android