473,782 Members | 2,531 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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;>bl ah
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 2984
Andrew Poulos <ap*****@hotmai l.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*****@hotmai l.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.n et.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*****@hotmai l.com> wrote:
Spartanicus wrote:
Andrew Poulos <ap*****@hotmai l.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.n et.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*****@hotmai l.com> wrote:
<url:http://members.iinet.n et.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
3461
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 line spacing is very close (for example, when I use HTML in JLabels, or even in JTextAreas), but on the other Linux box, the line spacing is much wider. I'm using default Swing fonts -- I'm not setting anything. I can't find a field or function...
4
2959
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 finishing a long line. 2) The pages just look too wordy and it is tiring to read. I would think that there are already "formulas" for word count, lineheight
2
3700
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 from the bottom, to allow the line spacing of the following smaller font text to remain unaffected. I've always had to resort to a graphic for the leading capital - is there a way I can do this with css? Thanks John
7
7116
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 property. This works for IE6 but Opera7.54 and Netscape7.1 add large line spacing between the text blocks and any lines of wrapped text. The line spacing is independant of the font size and is consistent between all lines. ie: it's not larger...
4
3564
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 tested it on, except in IE6 for the PC. The spacing is completely inconsistent with all the other browsers. (See http://www.sunriveronline.org/misc/clrn ) Is there a way to include a few lines of code in my CSS file that will adjust IE6's...
3
1358
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
3298
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) Problem Recreation : Download attached RAR file (http://download.yousendit.com/627919383AFAA7E3 ) Steps 1) Install RTF2 program created by Lebans 2) Install ZAN Image Printer (Virtual Printer) 3) Create Custom Paper Size ----...
12
1604
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
3714
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? Thanks,
0
9639
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9479
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10311
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10080
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9942
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8967
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7492
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5509
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3639
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.