On 03/23/2013 08:19 PM, Daniel Dekany wrote:
Hello,

In HTML, if you want to list some simpler items, you just use
li/#text:

   <li>Red</li>
   <li>Green</li>
   <li>Blue</li>

In all the browsers I have seen, in this case, there's no extra
spacing between the li-s.

If you have longer items, you do something like this:

   <li><p>Lot of text 1 ...</p></li>
   <li><p>Lot of text 2 ...</p></li>
   <li><p>Lot of text 3 ...</p></li>

In this case the p-s push away the li-s from each other. (This becomes
especially important when you put multiple p-s into the same li.)

In XXE I can't see this difference. I can't tell if I have a li/#text
or li/p/#text, because it puts extra vertical margins around li
itself, regardless of what's inside it. This can be a problem when
editing XHTML, because most certainly I use XHTML (as opposed to
DocBook or DITA) because I want it to be viewed in a browser directly,
and there this difference matters. So something that looks OK (even if
too spacy) in XXE, looks ugly in the browser because of the random
vertical spacings. Could this be fixed in the out-of-the-box CSS?

As of XXE v5.2, we have two out-of-the-box CSS:

[1] "Semantic" (the default CSS).
[2] "Emulate Web Browser".

As expected, [2] does what you want.

More information in http://www.xmlmind.com/xmleditor/_distrib/doc/xhtml/view.html

You can make "Emulate Web Browser" your default CSS for XHTML by proceeding as follows:

[a] Open an XHTML document.
[b] Select menu item "View|Emulate Web Browser".
[c] Select menu item "Options|Custom Configuration|Save Views As Default".

More information in http://www.xmlmind.com/xmleditor/_distrib/doc/help/customizeConfigurationMenu.html

Note that if you are authoring pages belong to different XHTML document types (XHTML 1.0 Strict, XHTML 1.0 Transitional, etc), you'll have to repeat the above configuration steps for each XHTML document type.




Yes, I know, I can customize the CSS, but it would be better if it's
just better for everyone.

BTW, I also recommend makin the head/title much smaller. This is
meta-info that's not very visible in browsers as it's show outside the
view port. Also it routinely repeats what the h1 says.


You are right. Did that.


--
XMLmind XML Editor Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/xmleditor-support

Reply via email to