473,225 Members | 1,250 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,225 software developers and data experts.

[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
3 1527
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Jonas Galvez | last post by:
A few days ago I posted about a problem I was having on Win2k, regarding a SyntaxError error on the interactive interpreter to anything I typed. The thread is located here: tinyurl.com/2kk7b ...
66
by: Robert Brewer | last post by:
The J2 proposal is as complete as it will ever be. http://www.aminus.org/rbre/python/pydec.html The patch is nearly complete; only the __future__ declaration and some document tweaks remain....
15
by: nAmYzArC | last post by:
Hi everyone, I'm setting the body of an email using values from a form firstname = bob lastname = dole ebody = 'First Name: ' + firstname + '\r\n' + 'Last Name: ' + lastname ...
38
by: Jukka K. Korpela | last post by:
As well all know, valid markup is important... but when trying to find a convincing modern argument in favor of this, I found pages like http://www.htmlhelp.com/tools/validator/reasons.html which...
4
by: Dirk Reske | last post by:
Hey, I have following struct: struct Packet { string Command; byte data; }
2
by: Georg Weiler | last post by:
Hi, I have a form, where the user enters text. After submit, the text is then inserted into a PostgreSQL database. So far, so good. The problem is, that most of my users copy&paste their text...
2
by: Shirenseru | last post by:
Hello guys, i hope you can help me with this cause it's driving me crazy! I got the following statement in JavaScript: if(currTotal < 27{document.getElementById('isResult').innerHTML =...
3
by: Per W. | last post by:
Hi, is it possible to have Literal using linebreaks? If i have a textfile with more than 1 line then Literal take all on one line. /Per W.
0
by: veera ravala | last post by:
ServiceNow is a powerful cloud-based platform that offers a wide range of services to help organizations manage their workflows, operations, and IT services more efficiently. At its core, ServiceNow...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
2
by: jimatqsi | last post by:
The boss wants the word "CONFIDENTIAL" overlaying certain reports. He wants it large, slanted across the page, on every page, very light gray, outlined letters, not block letters. I thought Word Art...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....

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.