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
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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

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