Div wrapper with background color
-
Hello,
I am trying to convert a pure HTML site into WordPress.
I am using the blank theme from html5blank.com.
Here is the original site: https://www.reinekeconstruction.com/index.html
Here is my conversion so far: https://test.reinekeconstruction.com/
The one thing i can’t figure out is how to get that gray background and that white container. I’m wondering if i’m not calling it in the correct place?
Here’s my CSS:
<style type="text/css"> body { background: #666666; margin: 0; /* it's good practice to zero the margin and padding of the body element to account for differing browser defaults */ padding: 20; text-align: left; /* this centers the container in IE 5* browsers. The text is then set to the left aligned default in the #container selector */ } .oneColElsCtr #container { width: 46em; background: #FFFFFF; margin: 0 auto; /* the auto margins (in conjunction with a width) center the page */ border: 1px solid #000000; text-align: left; /* this overrides the text-align: center on the body element. */ color: #333 } .oneColElsCtr #mainContent { padding: 20px; /* remember that padding is the space inside the div box and margin is the space outside the div box */ font-family: Georgia, "Times New Roman", Times, serif; color: #333; text-align: center; font-size: 80%; } .oneColElsCtr #container #mainContent p { font-size: 90%; font-style: italic; } #bullet_list { font-family: Georgia, "Times New Roman", Times, serif; font-size: small; color: #333; text-align: left; height: 225px; width: 275px; line-height: 110%; float: left margin-left: 400px; clear: none; float: right; padding-top: 40px; padding-right: 80px; } #navigation_bar { font-family: Georgia, "Times New Roman", Times, serif; text-transform: uppercase; color: #333; background-color: #CCC; position: relative; text-align: center; width: 600px; float: left; padding-top: 0px; padding-right: 30px; padding-bottom: 0px; padding-left: 30px; top: 5px; left: 18px; vertical-align: middle; height: 30px; line-height: 200%; } a:link { color: #333; text-decoration: none; } a:visited { text-decoration: none; color: #333; } a:hover { text-decoration: underline; color: #333; } a:active { text-decoration: none; color: #333; } #about_text { font-family: Georgia, "Times New Roman", Times, serif; color: 333; text-align: justify; } .Name1 { font-family: Arial, Helvetica, sans-serif; } .oneColElsCtr #container #mainContent table tr th { font-size: small; font-family: Verdana, Geneva, sans-serif; } .oneColElsCtr #container #bullet_point_container table tr th pre { font-weight: bold; font-family: "Times New Roman", Times, serif; font-size: small; } </style>
Thanks for your time!
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Div wrapper with background color’ is closed to new replies.