Revised Question: The entire content of the page has been enclosed in a div cont
ID: 3930867 • Letter: R
Question
Revised Question:
The entire content of the page has been enclosed in a div container element with the id container. Create a style rule for this container to: a) set the width to 1000 pixels; b) center the container in the browser window by settin the top/bottom margins to 0 pixels and the left/right margins to auto: c) display a 1-pixel solid black border on the left and right edges; and d) set the background color to white and display the redbar.png image file as the background image, placing the image file in the top-left corner of the container and tiling it in the vertical direction only.
Explanation / Answer
<html>
<head>
<title>Heading</title>
<style>
#container
{
width:1000px;
margin-top:0px;
margin-bottom:0px;
margin-right:auto;
margin-left:auto;
border:1px solid black;
background: url(redbar.png);
background-repeat: no-repeat;
background-attachment: fixed;
background-position: 0px 0px;
background-repeat: repeat-y;
}
</style>
</head>
<body>
<div id="container">
</div>
</body>
<html>
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.