HighDots Forums  

Line spacing with INPUT

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss Line spacing with INPUT in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Andrew Poulos
 
Posts: n/a

Default Line spacing with INPUT - 01-12-2005 , 07:02 PM






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

Reply With Quote
  #2  
Old   
Spartanicus
 
Posts: n/a

Default Re: Line spacing with INPUT - 01-12-2005 , 07:26 PM






Andrew Poulos <ap_prog (AT) hotmail (DOT) com> wrote:

Quote:
div style=
Don't post code to the group, upload a demo, post the url.

--
Spartanicus


Reply With Quote
  #3  
Old   
Andrew Poulos
 
Posts: n/a

Default Re: Line spacing with INPUT - 01-12-2005 , 08:25 PM



Spartanicus wrote:
Quote:
Andrew Poulos <ap_prog (AT) hotmail (DOT) 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


Reply With Quote
  #4  
Old   
Chris Leipold
 
Posts: n/a

Default Re: Line spacing with INPUT - 01-13-2005 , 03:31 AM



Hi,

Quote:
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


Reply With Quote
  #5  
Old   
Steve Pugh
 
Posts: n/a

Default Re: Line spacing with INPUT - 01-13-2005 , 03:48 AM



Andrew Poulos <ap_prog (AT) hotmail (DOT) com> wrote:

Quote:
Spartanicus wrote:
Andrew Poulos <ap_prog (AT) hotmail (DOT) 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



Reply With Quote
  #6  
Old   
Spartanicus
 
Posts: n/a

Default Re: Line spacing with INPUT - 01-13-2005 , 04:31 AM



Andrew Poulos <ap_prog (AT) hotmail (DOT) com> wrote:

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.

Quote:
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


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.