HighDots Forums  

[favor] why the linebreak?

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


Discuss [favor] why the linebreak? in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Michael Hamm
 
Posts: n/a

Default [favor] why the linebreak? - 05-10-2006 , 04:19 PM






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

Quote:
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
msh210 (AT) math (DOT) wustl.edu Fine print:
http://www.math.wustl.edu/~msh210/ ... legal.html


Reply With Quote
  #2  
Old   
Jim Moe
 
Posts: n/a

Default Re: [favor] why the linebreak? - 05-10-2006 , 07:18 PM






Michael Hamm wrote:
Quote:
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)


Reply With Quote
  #3  
Old   
Michael Hamm
 
Posts: n/a

Default Re: [favor] why the linebreak? - 05-13-2006 , 10:57 PM



On Wed, 10 May 2006, Jim Moe wrote, in part:
Quote:
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
msh210 (AT) math (DOT) wustl.edu Fine print:
http://www.math.wustl.edu/~msh210/ ... legal.html


Reply With Quote
  #4  
Old   
Evertjan.
 
Posts: n/a

Default Re: [favor] why the linebreak? - 05-14-2006 , 04:13 AM



Michael Hamm wrote on 14 mei 2006 in
comp.infosystems.www.authoring.stylesheets:

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

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

Quote:
AM, Math, Wash. U. St. Louis
msh210 (AT) math (DOT) 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)


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.