Monday, March 25, 2013, 10:30:05 AM, Hussein Shafie wrote: > 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.
Indeed, thanks! Now I feel a bit lame. :) OTOH, I believe this difference should be visible in semantic mode too. Why hide it? After all, I suppose, the goal would be making documents that will look OK with *any* reasonable CSS (CSS-es you might don't yet know). So you care about semantics here, and most certainly you don't care how exactly the document would look with the default CSS of a typical browser (a rare use case). You just want to see what elements are there that matters (semantics), and this difference does matter in reality, because most CSS-es will show it quite prominently. So personally, I would prefer the semantic mode with this change (because it shows semantics better otherwise), instead of using emulate-browser-mode. Well, it's not a that big deal but still... it's maybe easy to fix. And this is the default view, so people will run into this trap (making ugly documents accidentally) again and again, I guess. -- Thanks, Daniel Dekany > 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

