Fixed Width RockinBizRed 2.0
-
Hi,
Im bussy with a new site for my father. Its allmost done but there is only one thing left to do: the theme needs to be made fixed width with two gray bars at each side (#808080). Can somebody please tell me how to do this.
Greetz Hans
-
I’m not familiar with the theme, however..
For the #wrapper, or #container or whatever is the outermost div for your theme you should declare:
#wrapper { margin: 0 auto; width: --- px; (--- is the width you want it) border-left: your variables (ex. #808080 solid 2px;) border-right: your variables }
Also, could you please post your WordPress URL?
The url = https://www.martijnvanderwoude.eu/ , the stylesheet is:
/*
Theme Name: RockinBizRed
Author URI: https://www.nathanrice.net/
Version: 2.0
Author: Nathan Rice
Description: RockinBizRed is an updated clean and sleek theme designed specifically for business blogs and websites.
It has 3 columns, with sidebars on either side of the center content section.
The CSS, XHTML and design is released under GPL:
https://www.opensource.org/licenses/gpl-license.php
*/html, body { margin: 0; padding: 0; }
body {
background: #FFF url(images/red-stripe.gif) top center repeat-x;
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
text-align: center;
padding-bottom: 20px;
text-align: center;
color: #333;
}body * {margin: 0px; padding: 0px;}
/*********************************************
Link Styles
*********************************************/
a, a:visited, a:active {
color: #0066CC;
text-decoration: none;
}
a:hover { color: red; text-decoration: underline; }/*********************************************
Text Elements
*********************************************/
p, ul, ol, blockquote {color: #333;}
ol, ul {
margin: 5px 35px;
}
blockquote {
margin: 5px 0px 5px 10px;
padding: 0px 0px 0px 10px;
border-left: 1px solid #999;
}
img { border: 0px; background: none; }
p {
padding: 10px 0px;
margin: 0px;
}
/*********************************************
Header Styles
*********************************************/
h1, h1 a, h1 a:visited { /* This style used as title on single posts and pages */
font-family: Arial, Helvetica, sans-serif;
font-size: 20px;
font-weight: bold;
padding: 10px 0px 5px 0px;
margin: 0px;
color: #636363;
text-decoration: none;
}
h2, h2 a { /* This style used as header in the sidebars */
background: url(images/red-stripe.gif) repeat-x;
font-size: 15px;
color: #FFF;
font-family: Helvetica, Arial, Sans-Serif;
margin: 0px 0px 10px 0px;
padding: 2px;
font-weight: normal;
}
h3, h3 a, h3 a:visited { /* This style used as the post titles on homepage/archive */
font-family: Arial, Helvetica, sans-serif;
font-size: 20px;
font-weight: bold;
padding: 10px 0px 5px 0px;
margin: 0px;
color: #636363;
text-decoration: none;
}
h3 a:hover {
color: #333;
text-decoration: none;
}
h4, h4 a { /* This style used as title for comments and as the identifying header on archive page */
font-family: Arial, Helvetica, sans-serif;
font-size: 18px;
padding: 10px 0px 5px 0px;
margin: 0px;
color: #666;
text-decoration: none;
}/*********************************************
Container Div
*********************************************/
#container {
background: transparent;
border: 0px solid #000;
text-align: left;
margin: 0px auto;
width: 950px;
padding: 0px;
}/*********************************************
Header Styles
*********************************************/
#header {
border: 0px solid black;
background: transparent;
margin: 0px;
padding: 0px;
display: block;
position: relative;
}
/*********************************************
Horizontal Navigaion Styles
*********************************************/
#menu {
color: #FFF;
font-size: 11px;
font-family: Verdana, Helvetica, Arial, Sans-Serif;
text-align: center;
padding: 0px 0px;
margin: 0px;
display: block;
}
#menu ul {
background: transparent;
margin: 0px;
padding: 18px 0px 19px 0px;
}
#menu ul li {
display: inline;
list-style-type: none;
margin: 0px;
padding: 18px 0px 19px 0px;
}
#menu ul li a {
color: #FFF;
padding: 18px 10px 19px 10px;
margin: 0px;
text-decoration: none;
}
/* if you want to set a “current page item” style, do it here */
#menu ul li.current_page_item a, #menu ul li.current_page_item a:visited {
}
#menu ul li a:hover {
color: #FFF;
text-decoration: underline;
}/*********************************************
Content Div
*********************************************/
#content {
float: left;
margin: 0px;
padding: 0px 25px 20px 25px;
width: 500px;
display: block;
border: 0px solid black;
}
.post-more { /* Use this class to style the “more” tag div */
}
.post-more a, .post-more a:visited { /* Use this class to style the link within the post-more div */
}/*********************************************
Post Meta Styles
*********************************************/
.meta-top {
clear: both; /* we need this so floats in the post are cleared */
padding: 5px 0px;
margin: 0px 0px;
background: none;
border-top: 1px solid #999;
}
.meta-bottom {
clear: both; /* we need this so floats in the post are cleared */
padding: 5px 0px;
margin: 5px 0px;
background: none;
}
.meta-date {
}
.meta-author {
}
.meta-comments {
}
.meta-category {
}/*********************************************
Previous/Next Page Navigation
*********************************************/
.page-nav {
clear: both; /* To clear any floats */
margin: 10px 0px;
padding: 10px 0px;
}
.nav-previous {
width: 249px;
float: left;
text-align: left;
}
.nav-next {
width: 249px;
float: right;
text-align: right;
}/*********************************************
Left Sidebar
*********************************************/
#l_sidebar {
font-size: 11px;
font-family: Verdana, Arial, Helvetica, Sans-Serif;
display: inline;
float: left;
border: 0px solid black;
width: 200px;
margin: 10px 0px 15px 0px;
display: block; /* floats are handled as block elements, this is to fix
a margin collapsing bug in IE */
}
#l_sidebar p {
padding: 5px;
}
#l_sidebar img {
text-align: center;
}
#l_sidebar form {
padding: 0px;
margin: 5px;
}
#l_sidebar ul {
list-style-type: none;
padding: 0px;
margin: 0px;
}
#l_sidebar ul li {
padding: 0px 0px 10px 0px;
}
#l_sidebar ul li ul {
padding: 0px 0px 0px 0px;
}
#l_sidebar ul li ul li {
padding: 0px;
margin: 5px;
}
#l_sidebar ul li ul li a {
color: #666;
text-decoration: none;
}
#l_sidebar ul li ul li a:hover {
color: #000;
text-decoration: underline;
}
#l_sidebar ul li ul li ul {
padding: 0px;
margin: 0px;
}
#l_sidebar ul li ul li ul li {
padding: 0px;
margin: 5px 10px 5px 5px;
}/*********************************************
Right Sidebar
*********************************************/
#r_sidebar {
font-size: 11px;
font-family: Verdana, Arial, Helvetica, Sans-Serif;
display: inline;
float: right;
border: 0px solid black;
width: 200px;
margin: 10px 0px 15px 0px;
display: block; /* floats are handled as block elements, this is to fix
a margin collapsing bug in IE */
}
#r_sidebar p {
padding: 5px;
}
#r_sidebar img {
text-align: center;
}
#r_sidebar form {
padding: 0px;
margin: 5px;
}
#r_sidebar ul {
list-style-type: none;
padding: 0px;
margin: 0px;
}
#r_sidebar ul li {
padding: 0px 0px 10px 0px;
}
#r_sidebar ul li ul {
padding: 0px 0px 0px 0px;
}
#r_sidebar ul li ul li {
padding: 0px;
margin: 5px;
}
#r_sidebar ul li ul li a {
color: #666;
text-decoration: none;
}
#r_sidebar ul li ul li a:hover {
color: #000;
text-decoration: underline;
}
#r_sidebar ul li ul li ul {
padding: 0px;
margin: 0px;
}
#r_sidebar ul li ul li ul li {
padding: 0px;
margin: 5px 10px 5px 5px;
}/*********************************************
Comment Styles
*********************************************/
.comments {
padding: 8px;
}
.comments .even {
margin: 5px 0px 5px 0px;
padding: 10px;
background: #FFFFFF;
overflow: hidden;
border-bottom: 1px dotted #B7B7B7;
}
.comments .odd {
margin: 5px 0px 5px 0px;
padding: 10px;
background: #FFFFFF;
overflow: hidden;
border-bottom: 1px dotted #B7B7B7;
}/*********************************************
Footer Styles
*********************************************/
#footer {
margin: 15px 0px 0px 0px;
padding: 20px;
clear: both;
background: #FFF;
border-top: 1px solid #697279;
text-align: center;
font-family: Verdana, Arial, Sans-Serif;
font-size: 11px;
}
#footer a {
color: #CC3333;
text-decoration: underline;
}
#footer a:hover {
color: #000;
text-decoration: underline;
}Could you please show how to put it into the code. Tnx alot.
Greetz Hans
bump,
Pls help.. anybody..?? ??
bump2,
Come on, help
bump 3
I feel lonely out here, CMon pls help
- The topic ‘Fixed Width RockinBizRed 2.0’ is closed to new replies.