I'm working on a website for a friend. This is a Wordpress powered website. So far everthing was going well until I changed the site.
First it was a boxed template (menu, body and footer), because the website was to black I wanted to change the template to a fullwidth (menu, body and footer).
At that point it seems that the white background just disappears. I looked trough the whole style.css file but I only could change the background-color of the content. Weird thing is that de navigationwrap (menu) perfect works.
So I hope that one of you guys (or girls) knows the answer. The .css file:
/* General Styles
-------------------------------------------------------------- */
html {
font-size: 100.01%;
}
body {
background-image: url("Bovenkant.png");
background-repeat: no-repeat;
background-size: contain;
/background-size: 100%;
font-family: 'Droid Sans', Tahoma, Verdana, Arial;
font-size: 1.0em;
border: 0;
color: #111;
background-color: #000000;
}
/* Links */
a, a:link, a:visited{
color: #666;
text-decoration: none;
}
a:hover, a:active {
text-decoration: underline;
}
/* Form Elements */
input, textarea {
padding: 0.7em;
background: #fff;
border: 1px solid #ddd;
font-size: 1.0em;
color: #222;
font-family: 'Droid Sans', Tahoma, Verdana, Arial;
}
input[type="submit"] {
border: none;
color: #fff;
background: #333;
}
input[type="submit"]:hover {
background-color: #666;
cursor: pointer;
}
/* Clearing Floats */
.clearfix:before, .clearfix:after {
content: " ";
display: table;
}
.clearfix:after {
clear: both;
}
.clearfix {
*zoom: 1; /* For IE 6/7 only */
}
/* Make Form Elements responsive */
input, textarea, select {
max-width: 100%;
}
/* Basic Structure
-------------------------------------------------------------- */
#wrapper {
max-width: 1340px;
width: 92%;
margin: 0 auto;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
background: #fff;
}
#header-wrap {
margin-top: 90px;
background: #000000;
background-image: url("E4A.png");
background-repeat: no-repeat;
background-position: center;
}
#header {
padding: 4em;
}
#wrap {
clear: both;
padding: 1.0em 1.0em 0;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
#content {
float: left;
width: 72%;
padding-right: 1.0em;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
#sidebar {
float: right;
width: 28%;
}
/* Header
-------------------------------------------------------------- */
#logo {
float: left;
max-width: 100%;
}
#logo .logo-image {
border: 0;
max-width: 890px;
height: auto;
}
#logo .site-title {
font-size: 2.5em;
font-weight: bold;
color: #222;
font-family: 'Francois One', Tahoma, Verdana, Arial;
}
#logo a:hover {
text-decoration: none;
}
#logo a:hover .site-title {
color: #333;
text-decoration: none;
}
#logo .site-description {
margin-top: 0.4em;
color: #333;
}
/* Header Content */
#header-content {
display: inline;
padding: 0;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
#header-content div {
float: right;
margin-left: 1.5em;
}
#header-content #header-text {
margin-top: 0.3em;
line-height: 1.4em;
font-size: 1.3em;
color: #777;
}
#header-content #header-search #s {
float: right;
}
/* Custom Header Image */
#custom-header {
margin-top: 1px;
}
#custom-header img {
max-width: 890px;
vertical-align: top;
width: 100%;
height: 200px;
}
/* Navigation Menu
-------------------------------------------------------------- */
#mainnav-icon {
display: none;
}
#navi-wrap {
background: #333;
<!-- background-width: 564px;
background-height: 64px;
background-position: right;
background-repeat: no-repeat; -->
}
#mainnav-menu {
list-style-type: none;
list-style-position: outside;
position: relative;
}
#mainnav-menu li{
float:left;
position:relative;
margin-right: 1px;
}
#mainnav-menu a {
display: block;
padding: 1.5em;
text-transform: uppercase;
text-decoration: none;
font-size: 1.0em;
font-weight: bold;
font-family: Arial, 'Arial Unicode MS', Helvetica, Sans-Serif;
-webkit-transition: all 0.1s ease-out;
-moz-transition: all 0.1s ease-out;
-ms-transition: all 0.1s ease-out;
-o-transition: all 0.1s ease-out;
transition: all 0.1s ease-out;
}
#mainnav-menu a:link, #mainnav-menu a:visited{
color: #fff;
text-decoration: none;
}
#mainnav-menu a:hover {
background: #666;
}
#mainnav-menu ul {
position: absolute;
display: none;
z-index: 99;
background: #fff;
box-shadow: 0 0 2px #444;
}
#mainnav-menu ul li{
margin: 0;
}
#mainnav-menu ul a {
width: 250px;
width: 16rem;
padding: 1em;
float: left;
font-weight: normal;
color: #333;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
#mainnav-menu ul a:link, #mainnav-menu ul a:visited{
color: #333;
font-size: 0.9em;
text-decoration: none;
}
#mainnav-menu ul a:hover {
color: #fff;
background: #666;
}
#mainnav-menu li ul ul {
margin-left: 250px;
margin-left: 16rem;
}
#mainnav-menu li:hover ul ul, #mainnav-menu li:hover ul ul ul, #mainnav-menu li:hover ul ul ul ul{
display:none;
}
#mainnav-menu li:hover ul, #mainnav-menu li li:hover ul, #mainnav-menu li li li:hover ul, #mainnav-menu li li li li:hover ul{
display:block;
}
#mainnav-menu li.current_page_item a, #mainnav-menu li.current-menu-item a {
text-decoration: underline;
}
#mainnav-menu li.current_page_item ul li a, #mainnav-menu li.current-menu-item ul li a{
text-decoration: none;
}
#mainnav-menu ul li.current_page_item a, #mainnav-menu ul li.current-menu-item a {
text-decoration: underline;
}
#mainnav-menu ul li.current_page_item ul li a, #mainnav-menu ul li.current-menu-item ul li a{
text-decoration: none;
}
/* Widget Styling
-------------------------------------------------------------- */
.widget {
margin-bottom: 1.5em;
box-shadow: 0 0 4px #ddd;
border: 1px solid #ddd;
padding: 1.5em;
background: #fff;
-ms-word-wrap: break-word;
word-wrap: break-word;
}
.widgettitle {
font-size: 0.9em;
font-family: 'Droid Sans', Tahoma, Verdana, Arial;
padding: 0.8em;
margin: -0.5em -0.5em 1.4em -0.5em;
background: #333;
color: #fff;
font-weight: bold;
text-transform: uppercase;
}
.widget .textwidget {
line-height: 1.5em;
}
.widget .textwidget p {
margin-bottom: 1em;
}
.widget ul, .widget ol {
line-height: 1.5em;
}
.widget ul {
list-style: circle inside;
color: #555;
}
.widget ul .children, .widget ol .children {
padding: 0;
margin: 0.5em 0 0.5em 1em;
}
.widget a:link, .widget a:visited {
text-decoration: none;
color: #666;
}
.widget a:hover, .widget a:active {
text-decoration: underline;
}
.widget img {
max-width: 100%;
height: auto;
}
.widgettitle a:link, .widgettitle a:visited {
color: #fff;
}
/* Custom Widgets
-------------------------------------------------------------- */
/* Theme Search Widget */
.search-form {
display: block;
position: relative;
width: 100%;
margin: 0;
padding: 0;
overflow: hidden;
}
.search-form .screen-reader-text {
display: none;
}
.search-form .search-field {
display: inline-block;
margin: 0;
width: 100%;
padding: 0.7em 45px 0.7em 0.7em;
background: #fff;
border: 1px solid #ddd;
font-size: 1.0em;
color: #333;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
-webkit-appearance: none;
}
.search-form .search-submit {
position: absolute;
top: 0;
right: 0;
border: none;
background: transparent;
padding: 0.8em 0.7em 0 0;
cursor: pointer;
}
.search-form .search-submit .genericon-search {
display: inline-block;
width: 24px;
height: 24px;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
font-size: 24px;
line-height: 1;
font-family: 'Genericons';
text-decoration: inherit;
font-weight: normal;
font-style: normal;
vertical-align: text-bottom;
color: #777;
content: 'f400';
}
.search-form .search-submit:hover .genericon-search {
color: #333;
}
/* Theme Calendar Widget */
#wp-calendar {
margin: 0;
width: 100%;
color: #444;
line-height: 1.6em;
}
#wp-calendar th,
#wp-calendar td,
#wp-calendar caption {
text-align: center;
}
#wp-calendar caption {
padding: 0.4em 0;
margin: 0 -0.4em 0.8em;
text-align: center;
text-transform: uppercase;
font-size: 0.9em;
border-top: 1px solid #eee;
border-bottom: 1px solid #eee;
}
#wp-calendar th {
font-weight: bold;
font-size: 0.85em;
padding-bottom: 0.6em;
}
#wp-calendar tbody td {
color: #888;
}
#wp-calendar tbody td a {
font-weight: bold;
}
#wp-calendar tbody #today {
font-weight: bold;
color: #333;
}
#wp-calendar tfoot tr td {
padding-top: 0.8em;
}
#wp-calendar #prev {
text-align: left;
}
#wp-calendar #next {
padding-right: 0.4em;
text-align: right;
}
/* Posts and Pages
-------------------------------------------------------------- */
.type-post, .type-page, .type-attachment {
margin: 0 0 1.5em 0;
padding: 0.5em 1.2em 0.1em;
box-shadow: 0 0 4px #ddd;
border: 1px solid #ddd;
background: #fff;
}
.page-title, .post-title {
font-weight: bold;
font-style: normal;
font-size: 14px;
font-family: Arial, 'Arial Unicode MS', Helvetica, Sans-Serif
color: #000;
line-height: 1.4em;
-ms-word-wrap: break-word;
word-wrap: break-word;
text-transform: uppercase;
padding: 0.1em 0;
border-bottom: 2.5px solid #222;
}
.page-title {
font-size: 19px;
}
.post-title {
font-size: 19px;
}
.post-title a:link, .post-title a:visited {
color: #333;
text-decoration: none;
}
.post-title a:hover, .post-title a:active{
color: #666;
}
.sticky {
border-left: 10px solid #ccc;
}
/* Page Links | wp_link_pages() */
.page-links {
margin: 0;
word-spacing: 1em;
}
/* Postmeta */
.postmeta {
display: block;
color: #333;
margin: 0;
padding: 0.7em 1em;
background: #eee;
}
.postmeta .category {
display: block;
color: #333;
margin: 0;
padding: 0.7em 1em;
background: #eee;
}
.postmeta span, .postmeta .post-edit-link {
font-size: 0.9em;
line-height: 1.5em;
}
.postmeta a:link, .postmeta a:visited {
color: #555;
text-decoration: underline;
}
.postmeta a:hover, .postmeta a:active{
text-decoration: none;
}
.postmeta .sep, .postmeta .post-edit-link {
padding-left: 0.8em;
margin-left: 0.7em;
border-left: 1px solid #aaa;
}
.postinfo {
clear: both;
line-height: 1.5em;
}
.postinfo .meta-category {
display: block;
color: #333;
margin: 0;
font-size: 0.9em;
}
.postinfo .meta-category a {
display: inline-block;
float: left;
color: #fff;
background: #333;
padding: 0.4em 1em;
margin: 0 1px 1px 0;
}
.postinfo .meta-category a:hover, .postinfo .meta-category a:active {
background: #666;
text-decoration: none;
}
.postinfo .meta-tags {
display: block;
margin: 0.5em 0;
}
/* Read more Link */
.more-link {
display: inline-block;
width: 78px;
height: 20px;
margin: 0.5em 0;
padding: 0.5em 1em;
text-decoration: none;
color: #fff;
text-transform: uppercase;
background-color: #333;
}
.more-link:link, .more-link:visited {
color: #fff;
}
.more-link:hover, .more-link:active {
background-color: #666;
text-decoration: none;
}
.content-excerpt .more-link {
margin: 0.5em 0 1em;
}
/* Archives and Search Heading */
.archive-title {
font-weight: bold;
color: #333;
background: #fff;
padding: 1.5em;
margin-bottom: 1.5em;
box-shadow: 0 0 4px #ddd;
border: 1px solid #ddd;
text-transform: uppercase;
}
.archive-title span{
color: #666;
}
/* Content Pagination */
.post-pagination {
margin-bottom: 1.5em;
font-weight: bold;
padding: 0.8em 1em;
color: #333;
box-shadow: 0 0 4px #ddd;
border: 1px solid #ddd;
background: #fff;
text-transform: uppercase;
}
.post-pagination a {
padding: 0.6em 0.8em;
margin-right: 0.2em;
display: inline-block;
text-align: center;
text-decoration: none;
color: #333;
}
.post-pagination a:link, .post-pagination a:visited {
color: #333;
}
.post-pagination a:hover {
color: #666;
}
.post-pagination .current {
padding: 0.5em 0.9em;
margin-right: 0.2em;
color: #666;
text-decoration: underline;
}
/* Text Elements
-------------------------------------------------------------- */
.entry {
line-height: 1.6em;
margin: 0.5em 0;
-ms-word-wrap: break-word;
word-wrap: break-word;
}
.entry p, .comment p {
margin: 0.75em 0;
}
.entry h1, .comment h1,
.entry h2, .comment h2,
.entry h3, .comment h3,
.entry h4, .comment h4,
.entry h5, .comment h5,
.entry h6, .comment h6 {
color: #111;
font-weight: bold;
line-height: 1.0em;
margin: 1.2em 0 0.3em;
}
.entry h1, .comment h1 {
font-size: 3.0em;
}
.entry h2, .comment h2 {
font-size: 2.25em;
}
.entry h3, .comment h3 {
font-size: 1.5em;
}
.entry h4, .comment h4 {
font-size: 1.25em;
}
.entry h5, .comment h5 {
font-size: 1.125em;
margin: 1.3em 0 0;
}
.entry h6, .comment h6 {
font-size: 1.0em;
margin: 1.3em 0 0;
}
.entry ul, .comment ul{
list-style: square inside;
margin: 0 0 1.5em 2em;
}
.entry ol, .comment ol{
list-style: decimal inside;
margin: 0 0 1.5em 2em;
}
.entry ol ol, .comment ol ol{
list-style: upper-alpha inside;
}
.entry ol ol ol, .comment ol ol ol{
list-style: lower-roman inside;
}
.entry ol ol ol ol, .comment ol ol ol ol{
list-style: lower-alpha inside;
}
.entry ul ul, .comment ul ul,
.entry ol ol, .comment ol ol,
.entry ul ol, .comment ul ol
.entry ol ul, .comment ol ul {
margin-bottom: 0.2em;
}
dl {
margin: 1em 0;
}
dt {
font-weight: bold;
}
dd {
margin-bottom: 1.5em;
}
strong {
font-weight: bold;
}
cite,
em,
i {
font-style: italic;
}
big, .big_tag {
font-size: 1.3em;
}
ins {
padding: 1px 2px;
background: #ffa;
text-decoration: none;
}
code, pre {
padding: 3px 8px;
margin: 0 1px;
background: #eeeeee;
color: #111;
font-size: 0.9em;
font-family: Monospace, "Courier New", Courier;
overflow: auto;
line-height: 1.4em;
text-align: right;
}
del, strike, s{
text-decoration: line-through;
}
pre {
font-family: "Courier 10 Pitch", Courier, monospace;
}
small {
font-size: 0.7em;
}
abbr,
acronym {
border-bottom: 1px dotted #666;
cursor: help;
}
sup,
sub {
height: 0;
line-height: 1;
position: relative;
vertical-align: baseline;
font-size: 0.8em;
}
sup {
bottom: 1ex;
}
sub {
top: .5ex;
}
.entry var, .entry kbd, .entry tt, .entry .tt_tag {
font-size: 1.1em;
font-family: "Courier 10 Pitch", Courier, monospace;
}
blockquote {
background:#f5f5f5;
border-left: 10px solid #ccc;
margin: 1.2em 0;
padding: 0.5em 1.5em;
}
blockquote cite {
display: block;
margin: 0.5em 0 0 0.5em;
color: #777;
}
.entry table {
border-collapse: collapse;
border-spacing: 0;
border: 1px solid #ddd;
margin: 1em 0;
text-align: left;
width: 100%;
}
.entry tr th,
.entry thead th {
background: #e5e5e5;
font-weight: bold;
padding: 0.2em 1em;
}
.entry tr td {
border-top: 1px solid #ddd;
padding: 0.2em 1em;
}
.entry tr.alternate td {
background: #f5f5f5;
}
/* Images | Gallery | Videos
-------------------------------------------------------------- */
/*article .wp-post-image {
width: 856px;
height: auto;
margin-left: 0px;
margin-top: 3px;
float: left;
} */
article .wp-post-image {
float: left;
height: auto;
margin-left: 0;
margin-top: 3px;
margin-bottom: 4px;
max-width: 100%;
width: 856px;
}
.entry img {
max-width: 250px;
height: auto;
padding: 1px;
}
.wp-caption {
max-width: 100%;
height: auto;
text-align: center;
}
.wp-caption .wp-caption-text {
margin: 0;
padding: 0;
font-size: 0.9em;
text-align: center;
}
.alignleft {
float: left;
display: inline;
margin: 1em 2em 1em 0;
}
.alignright {
float: right;
display: inline;
margin: 1em 0 1em 2em;
}
.aligncenter {
margin: 1em auto;
display: block;
}
/* Gallery Styling */
.gallery {
padding-top: 1em;
}
.gallery-item {
padding: 0.3em 1em 0 0;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
.gallery img {
margin: 0;
padding: 0;
border: none !important;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
.gallery-caption {
max-width: 100%;
height: auto;
text-align: center;
margin: 0.5em 0;
}
/* Make Vidoes responsive */
embed, iframe, object, video {
max-width: 100%;
}
/* Image.php Navigation */
#image-nav {
margin: 1.5em 0;
padding: 0.6em 1em;
font-weight: bold;
color: #333;
box-shadow: 0 0 4px #ddd;
border: 1px solid #ddd;
background: #fff;
text-transform: uppercase;
}
#image-nav .nav-previous {
float: left;
}
#image-nav .nav-next {
float: right;
}
#image-nav .nav-previous a, #image-nav .nav-next a {
font-size: 0.9em;
text-decoration: none;
color: #666;
}
#image-nav .nav-previous a:hover, #image-nav .nav-next a:hover {
text-decoration: underline;
}
/* Comments
-------------------------------------------------------------- */
#comments {
margin: 0 0 1.5em 0;
padding: 1em 1.5em;
background: #fff;
box-shadow: 0 0 4px #ddd;
border: 1px solid #ddd;
}
#comments .comments-title, #respond #reply-title {
font-weight: bold;
font-family: Arial, 'Arial Unicode MS', Helvetica, Sans-Serif;
color: #111;
line-height: 1.4em;
-ms-word-wrap: break-word;
word-wrap: break-word;
padding: 0.3em 0;
border-bottom: 4px solid #555;
font-size: 20px;
}
.commentlist {
display: block;
margin: 1.5em 0;
}
.commentlist .comment{
display: block;
margin: 1.5em 0 0;
list-style: none;
line-height: 1.5em;
-ms-word-wrap: break-word;
word-wrap: break-word;
}
.commentlist .comment .avatar {
float: left;
margin: 1em 1.5em 0.5em 0;
}
.commentlist .comment .avatar:after {
clear: both;
}
.comment-author {
line-height: 1.5em;
background: #eee;
}
.comment-author .comment-meta {
display: inline-block;
font-size: 0.8em;
margin: 0.5em 1.2em 0;
-ms-word-wrap: break-word;
word-wrap: break-word;
color: #222;
}
.comment-author .fn {
display: inline-block;
float: left;
font-family: 'Francois One', Tahoma, Verdana, Arial;
font-size: 1.0em;
color: #fff;
background: #333;
padding: 0.4em 1em;
}
.comment-meta a:link, .comment-meta a:visited,
.comment-meta a:active, .comment-meta a:hover {
color: #222;
}
.comment-author .fn a:link, .comment-author .fn a:visited {
color: #fff;
text-decoration: underline;
}
.comment-author .fn a:hover, .comment-author .fn a:active {
text-decoration: none;
}
.bypostauthor .fn, .comment-author-admin .fn {
background: #333;
}
#comments .children {
margin-left: 1.5em;
}
.nocomments {
color: #444;
padding: 1em;
}
.commentlist .pingback {
display: block;
margin: 0.6em 0 0;
padding: 0.8em 0 0;
border-top: 1px solid #ddd;
list-style: none;
line-height: 1.3em;
}
/* Comment Pagination */
.comment-pagination {
font-size: 0.9em;
padding: 0 1em;
background: #eee;
margin-bottom: 1.5em;
}
.comment-pagination .alignleft {
float: left;
}
.comment-pagination .alignright {
float: right;
}
/* Comment Form */
#respond {
margin: 0;
}
#commentform {
padding: 1em 0 0;
}
#commentform p {
margin: 1em 0;
}
#commentform input[type="text"], #commentform textarea {
display: inline-block;
width: 100%;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
#commentform label {
display: block;
margin: 0.6em 0 0.2em;
}
#commentform #submit {
display: block;
border: none;
margin-top: 1em;
padding: 1em 4em;
text-decoration: none;
color: #fff;
background: #333;
}
#commentform #submit:hover {
background-color: #666;
cursor: pointer;
text-decoration: none;
}
/* Page Templates
-------------------------------------------------------------- */
/* Fullwidth Template */
.template-fullwidth #content {
float: none;
width: 100%;
padding: 0;
}
Aucun commentaire:
Enregistrer un commentaire