gaps-in-visuals

How to remove vertical gap between two cells in MigLayout?

眉间皱痕 提交于 2019-12-23 15:53:05
问题 Very simple question: How can I remove the vertical gap between the two cells containing the two JCheckBox ? I have marked the gap in the picture with a red border. And here is the code: import javax.swing.JButton; import javax.swing.JCheckBox; import javax.swing.JFrame; import javax.swing.JPanel; import net.miginfocom.swing.MigLayout; public class Main { public static void main(String[] args) { JPanel somePanel = new JPanel(); somePanel.setLayout(new MigLayout("insets 0, debug", "", ""));

How to remove NSMenuItem gap above custom view

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-20 07:14:23
问题 I was looking for something discussed in following posts. Gap above NSMenuItem custom view. Reverse engineering an NSMenu for a Status Bar Item I tried the carbon code provided by Pierre Bernard initially, i was getting same error "EXC_BAD_ACCESS on the line InstallControlEventHandler" like other had. I play with the code lots and accidently found the solution. I have just replaced the InstallControlEventHandler function call to HIViewInstallEventHandler and everything is working fine. Hope

CSS gap between list items in IE7

孤人 提交于 2019-12-12 19:19:17
问题 I'm unable to remove the gap between the list items in IE7. HTML: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html> <head> <link type="text/css" rel="stylesheet" href="base.css" /> </head> <body> <ul> <li> <div>row 1.1</div> <div>row 1.2</div> </li> <li> <div>row 2.1</div> <div>row 2.2</div> </li> <li> <div>row 3.1</div> <div>row 3.2</div> </li> </ul> </body> </html> CSS: ul { padding: 0px; margin: 0px; } li { list-style-type:

Gap at top of page despite margin:0 and padding: 0

*爱你&永不变心* 提交于 2019-12-12 09:31:30
问题 There's a 32px gap at the top of my site, despite setting margins and paddings to 0. I know it's 32px because I can fix it with padding: -32px. But then I have a gap at the bottom! In Firebug, it seems the body only start 32px down from the beginning of the HTML element, even though I've set margins and paddings to 0. Here's my CSS: html { height: 100%; padding: 0; margin: 0; } body { background-color: #a7a9ac; color #666666; background-image: url('body-bg.gif'); background-repeat: repeat-x;

Gap between <li>s

混江龙づ霸主 提交于 2019-12-10 03:32:14
问题 To avoid long lists I've got my li set to float: left so that they alternate rows. However, on occasion this causes an unintentional gap between elements when the content in a li takes up two lines. My HTML is: <ul class="gmc-ingredient-list"> <li>500g Tagliatelle</li> <li>50g wortel</li> <li>50g ui</li> <li>50g bleekselderij</li> <li>100g pancetta</li> <li>200g half-om-half-gehakt</li> <li>200g rundergehakt</li> <li>200 ml Primitivo (rode wijn)</li> <li>200ml runderbouillon</li> <li>5

Gap between <li>s

做~自己de王妃 提交于 2019-12-05 05:24:08
To avoid long lists I've got my li set to float: left so that they alternate rows. However, on occasion this causes an unintentional gap between elements when the content in a li takes up two lines. My HTML is: <ul class="gmc-ingredient-list"> <li>500g Tagliatelle</li> <li>50g wortel</li> <li>50g ui</li> <li>50g bleekselderij</li> <li>100g pancetta</li> <li>200g half-om-half-gehakt</li> <li>200g rundergehakt</li> <li>200 ml Primitivo (rode wijn)</li> <li>200ml runderbouillon</li> <li>5 eetlepels tomatenpuree</li> <li>Olijfolie</li> <li>Zeezout</li> <li>Verse peper</li> </ul> My CSS is: ul.gmc

Gap at top of page despite margin:0 and padding: 0

馋奶兔 提交于 2019-12-05 00:44:08
There's a 32px gap at the top of my site, despite setting margins and paddings to 0. I know it's 32px because I can fix it with padding: -32px. But then I have a gap at the bottom! In Firebug, it seems the body only start 32px down from the beginning of the HTML element, even though I've set margins and paddings to 0. Here's my CSS: html { height: 100%; padding: 0; margin: 0; } body { background-color: #a7a9ac; color #666666; background-image: url('body-bg.gif'); background-repeat: repeat-x; height: 100%; padding: 0; margin: 0; } body, p, ol, ul, td { font-family: verdana, arial, helvetica,

How do I dynamically create a collage (grid with no gaps) of images, where images have different heights?

浪尽此生 提交于 2019-12-04 21:56:51
问题 I want to display a page of thumbnails. The thumbnails are user uploaded artwork images. Each image has a constrained width, but not a constrained height, this is to show the full image without any cropping. I want the images to butt up against each other with no gaps in between. The number of columns is not fixed: If I expand or resize the page the images should flow into correct number of columns. float:left is ALMOST, what I want. Except when there are tall images in the page I get this

How do I dynamically create a collage (grid with no gaps) of images, where images have different heights?

旧巷老猫 提交于 2019-12-03 14:21:19
I want to display a page of thumbnails. The thumbnails are user uploaded artwork images. Each image has a constrained width, but not a constrained height, this is to show the full image without any cropping. I want the images to butt up against each other with no gaps in between. The number of columns is not fixed: If I expand or resize the page the images should flow into correct number of columns. float:left is ALMOST, what I want. Except when there are tall images in the page I get this gapped look: How do I eliminate the gaps? If you want to do this in css only you have to create divs for

How to remove the gap between div in html?

岁酱吖の 提交于 2019-12-01 20:13:08
问题 I am stuck with this problem and not able to come out of this. Please help me. In my webpage, I have used 3 divs inside a container div.I am trying to remove the unwanted gap between the div. (1)Top bg image (2)Middle bg image (3)Bottom bg image I am trying to adjust these 3 divs so that it can look like one bg image. My middle part and bottom part are adjusted completely but top part and middle part have some gap in between that i am trying to remove but not able to. Please refer to the