467,080 Members | 937 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,080 developers. It's quick & easy.

[favor] why the linebreak?

My page http://www.math.wustl.edu/~msh210/whatsnew.xml (with XSLT and CSS
adding formatting) has a paragraph-type break after "Subscribe to this
feed" which, afaIct looking at the source code, shouldn't be there. You
can check the entire source, but here's what I think is the relevant part:

----------begin whatsnew.xml
[...]<?xml-stylesheet href="whatsnew.xsl" type="text/xsl"?> [...]
----------end whatsnew.xml

----------begin whatsnew.xsl
[...]<link rel="stylesheet" href="whatsnew.css" type="text/css" />
[...]<body>[...]<div>[...]
<address><a href="./">Home page.</a></address>
<address><a href="legal.html#c">Copyright info.</a></address>
<div><p>Subscribe to this feed</p>
<ul class="menu"><li>[...]</ul></div><hr/></div>[...]</body>[...]
----------end whatsnew.xsl

----------begin whatsnew.css
@import "basic.css";
li:before{content:" | "}
ul.menu{display:inline;clear:none}
hr,div{clear:left}
address{float:left;margin-right:1em}[...]
----------end whatsnew.css

----------begin basic.css
[...]p,address{text-align:left;font-weight:normal;
margin-left:0;margin-right:0}[...]
p,address,ol,ul,dl,hr{margin-top:1em;margin-bottom:0;
padding-top:0;padding-bottom:0}[...]
address{display:block}[...]
ul.menu{font-size:xx-small;margin-left:0;padding-left:0}
ul.menu li{list-style-type:none;display:inline}[...]
----------end basic.css

----------begin UA output
[...]

Home page. Copyright info.

Subscribe to this feed

| AmphetaDesk [...]
----------end UA output

I'd appreciate any help anyone can provide to figure out why that
linebreak is there (after "Subscribe to this feed").

Michael Hamm
AM, Math, Wash. U. St. Louis
ms****@math.wustl.edu Fine print:
http://www.math.wustl.edu/~msh210/ ... legal.html
May 10 '06 #1
  • viewed: 1342
Share:
3 Replies
Michael Hamm wrote:
My page http://www.math.wustl.edu/~msh210/whatsnew.xml (with XSLT and CSS
adding formatting) has a paragraph-type break after "Subscribe to this
feed" which, afaIct looking at the source code, shouldn't be there. You
can check the entire source, but here's what I think is the relevant part:

<div><p>Subscribe to this feed</p>

I'd appreciate any help anyone can provide to figure out why that
linebreak is there (after "Subscribe to this feed").

<p> is a block element. There is always a line break after a block
element. There is nothing in the CSS that would change the default
"display:block" property of the paragraph.

--
jmm (hyphen) list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)
May 10 '06 #2
On Wed, 10 May 2006, Jim Moe wrote, in part:
<p> is a block element. There is always a line break after a block
element. There is nothing in the CSS that would change the default
"display:block" property of the paragraph.


Thanks so much. I thought setting the next element (ul) as display:inline
would get rid of the linebreak. Guess not. Thanks again,

Michael Hamm
AM, Math, Wash. U. St. Louis
ms****@math.wustl.edu Fine print:
http://www.math.wustl.edu/~msh210/ ... legal.html
May 14 '06 #3
Michael Hamm wrote on 14 mei 2006 in
comp.infosystems.www.authoring.stylesheets:
On Wed, 10 May 2006, Jim Moe wrote, in part:
<p> is a block element. There is always a line break after a block
element. There is nothing in the CSS that would change the default
Nothing? Try:

<p style='display:inline;'>1
<p style='display:inline;'>2
<p style='display:inline;'>3
"display:block" property of the paragraph.
Thanks so much. I thought setting the next element (ul) as
display:inline would get rid of the linebreak. Guess not. Thanks
again,

Michael Hamm
Michael, please start your signature with -- on it's own line,
so that netiquette adhaering newsreaders wil skip that
automagically on reply.
AM, Math, Wash. U. St. Louis
ms****@math.wustl.edu Fine print:
http://www.math.wustl.edu/~msh210/ ... legal.html


--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
May 14 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Jonas Galvez | last post: by
66 posts views Thread by Robert Brewer | last post: by
38 posts views Thread by Jukka K. Korpela | last post: by
4 posts views Thread by Dirk Reske | last post: by
2 posts views Thread by Georg Weiler | last post: by
2 posts views Thread by Shirenseru | last post: by
3 posts views Thread by Per W. | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.