I am looking to include a series of tweets from Twitter in a div
on a basic webpage.
The challenge is centering this div
horizontally on the page. I have tried using:
<div style="text-align:center">
and also:
<div style="width: 900px; display: block; margin-left: auto; margin-right: auto;">
Reference: this post. The first method did not effectively center the div, while the second caused it to shift left as the width increased beyond certain values (although it worked for smaller widths like 200 or 300).
Are there any other techniques available for achieving this without specifying fixed dimensions or percentages?