Reply to Re: Setting Right Margin

Your name:

Reply:


Posted by Jukka K. Korpela on 12/11/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.

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация