I recently started diving into the world of coding with HTML and CSS, utilizing resources like HTML for dummies to learn.
One question that came up is how to center an embedded Google Doc horizontally on a webpage.
div#iframe-wrapper iframe {
position: absolute;
top: 0;
bottom: 0;
left: 0;
margin: auto;
right: 100px;
height: 100%;
width: 100%;
}
<body bgcolor="#414141">
<title>Rules Page</title>
<div class="center">
<iframe width='85%' height='100%' src="https://docs.google.com/document/d/1G1xhqhSK2Ge8diyXELZ3cNvFJj-5wK-0_1VMjCfQR_I/pub?embedded=true"> </iframe>
</div>
</body>