In a very simple webpage, I would like to create a div
containing a sequence of tweets, with the code from Twitter.
This div
should be horizontally centered in the page; I tried with
<div style="text-align:center">
and with
<div style="width: 900px; display: block; margin-left: auto; margin-right: auto;">
as in this post. The first solution does not center the div; the second moves the div progressively to the left of the page, when the width is increased (and the div is centered with low widths, say 200, 300).
Are there any other solutions? If possible without specifying a fixed width or percentage.