As a beginner in HTML/CSS, I am trying to ensure that my content stays in place when zooming in/out or resizing the window. Initially, everything was centered, but after adding position:absolute
to the outermost div, the alignment shifted slightly to the left and the images became disorganized and distorted when resizing the window or zooming in and out.
Here is the HTML code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" charset="utf-8;" content="text/html" />
<link rel="stylesheet" type="text/css" href="styles.css" />
</head>
</html>