HighDots Forums  

Re: The annoying <form> automatic breaks

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


Discuss Re: The annoying <form> automatic breaks in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Steve Pugh
 
Posts: n/a

Default Re: The annoying <form> automatic breaks - 08-13-2003 , 08:38 PM






"Keiron Waites" <webmaster@-NOSPAM-sharemonkey.com> wrote:

Quote:
Is there a way to stop the annoying newlines that are created after </form>?
If you literally mean the newlines then
form {display: inline}
is what you want.

However, normally people just want to get rid of the margins, so
form {margin: 0}
does the trick.

Steve

--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor

Steve Pugh <steve (AT) pugh (DOT) net> <http://steve.pugh.net/>


Reply With Quote
  #2  
Old   
George Ziniewicz
 
Posts: n/a

Default Re: The annoying <form> automatic breaks - 08-13-2003 , 09:55 PM








--
--
Photography and Mysticism
http://www.zintel.com
"Steve Pugh" <steve (AT) pugh (DOT) net> wrote

Quote:
"Keiron Waites" <webmaster@-NOSPAM-sharemonkey.com> wrote:

Is there a way to stop the annoying newlines that are created after
/form>?

If you literally mean the newlines then
form {display: inline}
is what you want.

However, normally people just want to get rid of the margins, so
form {margin: 0}
does the trick.
Haven't tried it, but I'm guessing that a form{display:inline} would
supress the <br>'s? (if legal!)

zin






Reply With Quote
  #3  
Old   
George Ziniewicz
 
Posts: n/a

Default Re: The annoying <form> automatic breaks - 08-14-2003 , 12:00 PM



"Steve Pugh" <steve (AT) pugh (DOT) net> wrote

Quote:
"George Ziniewicz" <zin1 (AT) cox (DOT) net> wrote:

--
--
Photography and Mysticism
http://www.zintel.com

Why is you sig at the top of your message?
A recent windows crash/registry backstep/scramble has done its ill will,
and I didn't notice.


Quote:
Haven't tried it, but I'm guessing that a form{display:inline}
would supress the <br>'s? (if legal!)

No. If you want to suppress the <br>s
then simply delete the <br>s from the source code.
display:inline supresses both pre and post <br>'s of form and many other
block type elements. OTOH the original poster called for how to suppress
the ones after the form, I don't know how that would be done besides a
display:inline and an explicit <br>

zin

Quote:
--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor
Those are my principles. If you don't like them I have others. - Groucho
Marx





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

Default Re: The annoying <form> automatic breaks - 08-14-2003 , 12:19 PM



"George Ziniewicz" <zin1 (AT) cox (DOT) net> wrote:

Quote:
"Steve Pugh" <steve (AT) pugh (DOT) net> wrote in message
news:vfkmjvkf5t7ot4bl43h2j2q9im1afi0ja3 (AT) 4ax (DOT) com...
"George Ziniewicz" <zin1 (AT) cox (DOT) net> wrote:

Haven't tried it, but I'm guessing that a form{display:inline}
would supress the <br>'s? (if legal!)

No. If you want to suppress the <br>s
then simply delete the <br>s from the source code.

display:inline supresses both pre and post <br>'s of form and many other
block type elements.
No it doesn't.
If there's a <br> in the code then it cause a line break regardless of
whether display: inline is set on the parent element. After all
<i>some text<br>some text</i> will have a line break in it and <i> is
an inline element. Why would a form with display: inline behave any
differently?

As I said before if you don't want <br> to cause a line break don't
put <br> into the code.

I get the feeling that you're not actually talking about <br> at all.

Yes there are line breaks before and after the form element by
default, but these have nothing to do with any <br> elements.

Quote:
OTOH the original poster called for how to suppress
the ones after the form, I don't know how that would be done besides a
display:inline and an explicit <br
The OP was probably really asking about how to remove the default
bottom margin that the form has. (In your terms would thet be yet
another <br> at the end of the form? Making three in total? One at the
start and two at the end?) The solution here is to use margin: 0 as
stated in my original reply.

Steve

--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor

Steve Pugh <steve (AT) pugh (DOT) net> <http://steve.pugh.net/>


Reply With Quote
  #5  
Old   
Stan Brown
 
Posts: n/a

Default Re: The annoying <form> automatic breaks - 08-14-2003 , 01:07 PM



In article <vfkmjvkf5t7ot4bl43h2j2q9im1afi0ja3 (AT) 4ax (DOT) com> in
comp.infosystems.www.authoring.stylesheets, Steve Pugh
<steve (AT) pugh (DOT) net> wrote:
Quote:
"George Ziniewicz" <zin1 (AT) cox (DOT) net> wrote:

--
--
Photography and Mysticism
http://www.zintel.com

Why is you sig at the top of your message?
I guess it's the next logical progression in the plague of upside-
down posting. :-)

--
Stan Brown, Oak Road Systems, Cortland County, New York, USA
http://OakRoadSystems.com/
HTML 4.01 spec: http://www.w3.org/TR/html401/
validator: http://validator.w3.org/
CSS 2 spec: http://www.w3.org/TR/REC-CSS2/
validator: http://jigsaw.w3.org/css-validator/


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

Default Re: The annoying <form> automatic breaks - 08-14-2003 , 05:42 PM



"George Ziniewicz" <zin1 (AT) cox (DOT) net> wrote:

Quote:
I think I get you now, though it looks like an invisible <br> is done
before and after a form,
Just a line break. Line breaks exist all the time, there's no need to
invoke magic <br> elements to explain them, that's just misleading.

Quote:
t is actually a margin that is about the size of a
br>. I can accept that it isn't a <br> per se.
No. A <br> just breaks a line. It has no size. It does not introduce
any white space at all, so it is not the same as a margin. There are
line breaks before and after <form>s. So the form appears on a new
line to any preceeding content and any following content also appears
on a new line. There is _also_ a bottom margin that introduces white
space between the end of the form and the following content.

Understanding how CSS works and what effect it has is much easier once
you have a clear grasp of the terminology involved.

Steve

--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor

Steve Pugh <steve (AT) pugh (DOT) net> <http://steve.pugh.net/>


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 - 2009, Jelsoft Enterprises Ltd.