473,396 Members | 2,026 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Line spacing with INPUT

If I have a text INPUT within a block of text how do I 'correct' for the
line spacing. The line spacing above and below the INPUT is larger than
the line spacing generally:

<div style="position:absolute; left:100px; top:100px; width:200px;>blah
blah blah blah blah blah blah blah blah blah blah blah blah blah blah
blah blah blah blah blah blah blah blah blah blah blah blah blah blah
blah blah blah blah blah blah blah <input type="text" name="option0"
id="option0" style="border: 1px solid black; text-align: center;" />
blah blah blah blah blah blah blah blah blah blah blah blah blah blah
blah blah blah blah blah blah blah blah blah blah blah blah blah blah
blah blah blah blah blah blah blah blah blah blah blah blah blah blah
blah blah blah blah blah blah blah blah blah blah blah blah blah blah
blah blah blah blah blah blah blah blah blah blah blah blah blah blah
blah blah blah blah blah blah blah blah blah blah blah blah blah blah
blah blah blah blah blah blah blah blah blah blah blah blah</div>

The line spacing should be all the same size.

Andrew Poulos
Jul 21 '05 #1
5 2960
Andrew Poulos <ap*****@hotmail.com> wrote:
<div style=


Don't post code to the group, upload a demo, post the url.

--
Spartanicus
Jul 21 '05 #2
Spartanicus wrote:
Andrew Poulos <ap*****@hotmail.com> wrote:

<div style=

Don't post code to the group, upload a demo, post the url.

Oh ok, here's a link
<url:http://members.iinet.net.au/~apoulos/fre/test.htm>

I'm currently testing on Windows IE 6 and the line spacing varies around
INPUT elements. I wondering what I can do to make the line spacing even
throughout.

Andrew Poulos
Jul 21 '05 #3
Hi,
I'm currently testing on Windows IE 6 and the line spacing varies around
INPUT elements. I wondering what I can do to make the line spacing even
throughout.

Have you tried to set the line-height explicitly to the hight of the
input (including paddings, border and potential margins).

Chris
Jul 21 '05 #4
Andrew Poulos <ap*****@hotmail.com> wrote:
Spartanicus wrote:
Andrew Poulos <ap*****@hotmail.com> wrote:

<div style=

Don't post code to the group, upload a demo, post the url.

Oh ok, here's a link
<url:http://members.iinet.net.au/~apoulos/fre/test.htm>

I'm currently testing on Windows IE 6 and the line spacing varies around
INPUT elements. I wondering what I can do to make the line spacing even
throughout.


1. Reduce the height of the input box - tricky as you'd also need to
reduce the font-size inside the input box in order to make the text
typed in there fully visible which ma make it illegible.

2. Set the line-height of the whole div to a larger value so all the
lines have the same spacing.

3. Don't put input boxes in the middle of flowing copy.

Steve

Jul 21 '05 #5
Andrew Poulos <ap*****@hotmail.com> wrote:
<url:http://members.iinet.net.au/~apoulos/fre/test.htm>
That's a mock up with an isolated bit of code on it, it prevent us from
seeing the context, as a result we can't give proper advice.
I'm currently testing on Windows IE 6 and the line spacing varies around
INPUT elements. I wondering what I can do to make the line spacing even
throughout.


Text in form fields should be @ 100%, just like body text. Drawing the
necessary inset form field box around the text should result in a larger
line height. The solution is not to attempt to reduce the height (not
possible cross browser IIRC), but not to use form elements inline.

--
Spartanicus
Jul 21 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Hal Vaughan | last post by:
I'm testing a GUI app on a couple Linux boxen and one Win2k box. I'm using Java 1.4.2 on each (or the closest on Win2k -- whatever version comes close). On one Linux box and the Win2k box the...
4
by: Jeff Thies | last post by:
It seems that there can be too many words on a line. This is a problem with pages that are not fixed width. There seems to be a few problems. 1) Finding where the next line starts after...
2
by: John | last post by:
Now and again I like to start a sentence with a large capital, maybe in a different font. This upsets the line spacing and I've failed to find any css that will effectively crop the capital letter...
7
by: Danny | last post by:
I have a small <div> element which contains two text blocks - one within <h5> tags and the other within <p> tags. I don't want any extra line spacing between elements so use the display:inline...
4
by: fleemo17 | last post by:
Is there a way to tweak the spacing of lines of text (or leading) *specifically* in IE6? I've created a "Quick Search" box in my layout which renders pretty consistently in all the browsers I've...
3
by: WuJianWei | last post by:
If you type a string: "It's good." there's one space between the two words. but how can i adjust the string to two spaces or more. "it's good."
1
by: replyrpatil | last post by:
What I am trying to do: I need to print a compact access report (font 6 size) created using RTF2 program developed by Stephen Lebans to generate a TIF image of custom size (5.5 in x 2.0 in) ...
12
by: Dom | last post by:
VB had a "line" control, just a simple line that let you separate controls without the wasted space of a Groupbox. Did CSharp drop this? Dom
6
by: shapper | last post by:
Hello, I created the following header: http://www.27lamps.com/Beta/Typography/Typography.html Where Font Size is the same as Line Height: 2.0em. Shouldn't the border be next to the text? ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.