aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhttps://www.google.com/accounts/o8/id?id=AItOawkg1ahb9sRpZyQp1wuvxpk__x_6llBY5pE <Fergus@web>2014-02-17 12:06:33 -0400
committeradmin <admin@branchable.com>2014-02-17 12:06:33 -0400
commit205ac1ec797431c512a3d4f882b95e8c8368de47 (patch)
tree94c789b3218ae4896a88cd81003d147f01504ea9
parentaa88ad3204b21d6e25e98b07841e42b9955305a8 (diff)
downloadikiwiki-205ac1ec797431c512a3d4f882b95e8c8368de47.tar
ikiwiki-205ac1ec797431c512a3d4f882b95e8c8368de47.tar.gz
-rw-r--r--doc/forum/formating:_how_to_align_text_to_the_right.mdwn14
1 files changed, 11 insertions, 3 deletions
diff --git a/doc/forum/formating:_how_to_align_text_to_the_right.mdwn b/doc/forum/formating:_how_to_align_text_to_the_right.mdwn
index e9d4008a2..2eaa29d02 100644
--- a/doc/forum/formating:_how_to_align_text_to_the_right.mdwn
+++ b/doc/forum/formating:_how_to_align_text_to_the_right.mdwn
@@ -15,6 +15,14 @@ As in title, how to align text to the right?
>> Thanks!
-----
-> Doing this myself and noted that [[markdown]] down does not allow the use of block level elements directly and thus, cannot switch the `span` suggested above for `div` in changing block level elements. Perhaps the *correct* thing to do here is create a template **but** a workaround I found useful was to over-ride the `inline` nature of the `span` element, as follows
- .align_right { display: block ; text-align: right ; }
-> you may also like to remove the padding and margins since they will be provided by the enclosing block.
+> Doing this myself and noted that [[ikiwiki/markdown]] down does not allow the enclosure of block level elements directly; and thus we cannot switch the `span` suggested above for `div` in changing block level elements (not if you wish to include markdown, anyway). For example, I want to create a paragraph (with markdown text) which is right aligned, and so add the following
+
+>> <span class="right_align">
+>> This is my text with [a markdown link](/)
+>> </span>
+
+> The *correct* thing to do here is create a template (as indicated above) **but** a workaround I found useful was to over-ride the `inline` nature of the `span` element, as follows
+
+>> .align_right { display: block ; text-align: right ; }
+
+> you may also like to remove the padding and margins since they will be provided by the enclosing block. -- fergus