|
Posted by Jukka K. Korpela on 11/25/91 11:48
Fred <testing@testing1212mouse.com> scripsit:
> I'm looking for a straight forward way to set the right margin --
> similar to using <DIR> for the left margin.
Someone still uses <DIR>? Vow! Someone still has faith in this invention
that has long been frowned upon browser vendors and web page authors alike,
abjured and depreciated by the World Wide Web Consortium and other powers,
etc. etc. Most of us mortals have long ago decided - if we ever considered
using <DIR> in the rare cases where we would like to use a directory-like
list of items - to use <UL> together with some rocket-science level CSS such
as ul { list-style-type: none; }.
In that case, try <DIR DIR="RTL">. It may have some side effects, though.
Follow-ups randomized as usual. "The average usefulness of a thread is
inversely
proportional to the cube of the number of groups it is posted to."
Note to newbies: The above message may contain some irony. Here's the boring
part: Don't use <DIR>. Use e.g. <div class="note">...</div> instead (or
attach class="note" to some existing or some more semantic element that you
wish to indent) and use a CSS rule like .note { margin-left: 1em; }. To set
right margin, use margin-right instead of margin-left.
Navigation:
[Reply to this message]
|