Jump to content

Spacing


shane18

Recommended Posts

Im not sure, but you might try a couple of different things.

 

1. Change the blue divs width. Set it to a percentage instead of a fixed width. So if you make it 100% it should fill in the white div tag.

 

2. Try to change the display setting. For example you have:

 

<label style="display: block; margin-top: 11px;" for="title">Title:</label>

 

This sets the display to display:block. Therefore, there will be a space before and after the element.

 

These are some of my guesses of the top of my head, but I am brand new to this stuff. If anyone else knows a better answer please share.

Link to comment
https://forums.phpfreaks.com/topic/202561-spacing/#findComment-1061892
Share on other sites

		    <div style="overflow: hidden; border: 1px dotted #FFFFFF;">
	    <div style="display: inline-block; text-align: right; overflow: hidden; height: 102px; border: 1px dotted #00FFFF;">
	    <label style="display: block; margin-top: 11px;" for="title">Title:</label>
	    <label style="display: block; margin-top: 11px;" for="case">Case:</label>
	    <label style="display: block; margin-top: 13px;" for="number">Number:</label>
		</div>
		<div style="display: inline-block; overflow: hidden; height: 102px; border: 1px dotted #00FFFF;">
	    <input type="text" name="title" id="title" style="color: #FFFFFF; margin-top: 12px; background-color: #000000; border: 1px dotted #00FF00;"><br>
	    <input type="text" name="case" id="case" style="color: #FFFFFF; margin-top: 12px; background-color: #000000; border: 1px dotted #00FF00;"><br>
	    <input type="text" name="number" id="number" style="color: #FFFFFF; margin-top: 12px; background-color: #000000; border: 1px dotted #00FF00;">
		</div>
		</div>

 

Here is the code... there is a 4 pixel long space between the bottom of the 2 inline-blocks and the bottom of the block there inside... why?

Link to comment
https://forums.phpfreaks.com/topic/202561-spacing/#findComment-1062091
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.