Daniel Berg wrote:
> Hi, I wonder if there's a problem with the values right and left in the 
> CSS text-align property in XML-mind, since it doesn't seem to work. More
> general, could I find a full list over admitted CSS2 elements in XML-mind,
> more than just 'a subset of W3C CSS2'? Anyone?

--> "text align: left", "center", "right" work just fine in XXE. 
Example: create a new XHTML page conforming to the *Transitional DTD* 
using menu File|New and play with the align attribute of a <p>.

An XHTML <p> is styled as follows:

---
p {
     display: block;
     margin: 1.33ex 0;
}

/*
  * Transitional
  */
p[align] {
     text-align: concatenate(attr(align));
}
---
(proprietary extension concatenate() concatenates all its arguments and 
then evaluates the resulting string as a CSS property value.)



--> Supported CSS2 properties are described here: 
http://www.xmlmind.com/xmleditor/_distrib/docs/csssupport/ch02.html



--> Note that if you really want to align *blocks* (and not just text in 
paragraphs), you must use the "margin-left", "margin-right" properties 
rather than "text-align":

Left:
---
margin-left: 0;
margin-right: auto;
---

Right:
---
margin-left: auto;
margin-right: 0;
---

Center:
---
margin-left: auto;
margin-right: auto;
---

Of course using the above properties on blocks which naturally expand to 
fill the whole available width (paragraphs, tables, etc) will have no 
effect at all.




Reply via email to