MyBB Community Forums

Full Version: Help with CSS Coding
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
iv got this template from the http://www.zymic.com/ it's template 117. the problem is that everytime i enlarge the area is black it keeps expanding over the middle bit all i want to do is expand it outwards not inwards.

heres the CSS and a pic of what happens when i enlarge the margins
[Image: untitled1tp.jpg]

/* Main */

body {
font: small/1.6em verdana, sans-serif; 
margin: 0px; 
font: normal 10px verdana, arial, sans-serif; 
color: #000; 
background-color: #ddd;
}
a {	
color: #888;	
text-decoration: none; 
}
a:hover {
color: #000;
text-decoration: none;
}
a:active {
color: #000;
}
input, textarea, select {
border-top: 1px solid #858585;
border-right: 1px solid #BEBEBE;
border-bottom: 1px solid #DCDCDC;
border-left: 1px solid #BEBEBE;
background: #fff url(input_image.gif) repeat-x;
font: normal 10px verdana, arial, sans-serif;
color: #000;
margin: 1px;
}
input.button {
border-top: 1px solid #DCDCDC;
border-right: 1px solid #BEBEBE;
border-bottom: 1px solid #858585;
border-left: 1px solid #BEBEBE;
background: #eee;
}
h1, h2, h3 {
margin: 0px;
padding: 0px;
font-weight: normal;
}
ul li {
padding: 2px 0 2px 20px; 
line-height: 1.3em; 
color: #333333; 
font-family: Verdana, Arial, Helvetica, sans-serif; 
font-size: 120%; 
color: #7C7C7C;
}
ul {
list-style: none; 
margin: 0px; 
padding-left: 0px; 
list-style-type: none; 
}
h1 {
height: 160px; 
margin: 0; 
padding: 0;
}
#content  {
position : absolute;
left : 50%;
width : 800px;
margin-left : -400px;
background: #393939;
border: 1px solid #000;
}

/* Banner */

#banner {
position: absolute;
top : 22px;
left: 0px;
margin: 0; 
padding: 0;
}

/* Top Navigation */
	
#top {
background: #393939;
position: absolute;
top: 0px;
left: 0px;
padding: 0;
text-align: right;
width: 800px;
}
#top li {
margin: 0; 
padding: 0; 
display: inline;
list-style-type: none;
}
#top a:link, #top a:visited {
float: left;
font-size: 11px;
line-height: 12px;
font-weight: bold;
margin: 4px 8px 0 8px;
padding: 2px;
text-decoration: none;
border: none;
color: #fff;
}
#top a:hover {
padding: 2px;
color: #ccc;
border-bottom: 1px solid #fff; 
}
#top a#active_top {
padding: 2px 2px 1px 2px;
color: #D1D1D1;
border-bottom: 2px solid #fff;
}

/* Left Naviagtion */

#left {
display: inline;
float: left;
margin: 0; 
padding: 3px 3px 3px 0px;
width: 170px;
}
#left p  {
background: #e7e7e7;
color: #eee;
font: normal 11px "Trebuchet MS", Verdana, sans-serif;
line-height: 15px;
text-align: left;
margin: 0;
}
#left h2 {
background: #4D4D4D url(h2_image.gif) no-repeat;
color: #fff;
font: bold 13px "Trebuchet MS", Verdana, sans-serif;
text-align: left;
line-height: 17px;
margin: 0;
padding: 2px 0 0 20px;
}
#left ul {
padding: 0;
margin: 0px;
}
#left li  {
background: #E7E7E7 url(li_image.gif) no-repeat;
border-bottom: 1px solid white;
color: #eee;
font-size: 11px;
font-family: "Trebuchet MS", Verdana, sans-serif;
line-height: 100%;
text-align: left;
}

#right {
display: inline;
float: right;
margin: 0; 
padding: 3px 0px 3px 3px;
width: 170px;
}
#right p  {
background: #e7e7e7;
color: #eee;
font: normal 11px "Trebuchet MS", Verdana, sans-serif;
line-height: 15px;
text-align: right;
margin: 0;
}
#right h2 {
background: #4D4D4D url(h2_image.gif) right no-repeat;
color: #fff;
font: bold 13px "Trebuchet MS", Verdana, sans-serif;
text-align: right;
line-height: 17px;
margin: 0;
padding: 2px 20px 0 0;
}
#right ul {
padding: 0;
margin: 0px;
}
#right li  {
background: #E7E7E7 url(li_image.gif) right no-repeat;
border-bottom: 1px solid white;
color: #eee;
font-size: 11px;
font-family: "Trebuchet MS", Verdana, sans-serif;
line-height: 100%;
text-align: right;
padding-right: 20px;
}
#right img, #left img {
border: 0;
margin: 1px;
}

/* Main Content */

#main {
background: #fff;
border: 1px solid #393939;
margin: 2px 170px 0 170px; 
padding: 0;
width: auto;
}
#main h2 {
background: #393939;
color: #fff;
font: bold 13px "Trebuchet MS", Verdana, sans-serif;
text-align: left;
line-height: 17px;
margin: 0;
padding: 2px 0 0 20px;
}
#main p { 
font-size: 110%; 
margin: 1px 0 15px 0; 
padding: 2px; 
line-height: 16px;
}
#main blockquote {
color: #999;
font: normal 10px Verdana, Arial, Helvetica, sans-serif;
line-height: 150%;
text-align: left;
margin: 5px 30px 5px 0px;
padding-left: 5px;
border-left: 5px solid #393939;
}
#main p.date { 
color: #555;
font-weight: bold;
font-size: 11px;
margin: 0 0 5px 0;
text-align: left;
}
#main p.posted  { 
color: #bbb;
font-size: 11px;
font-family: "Trebuchet MS", Verdana, sans-serif;
font-weight: bold; 
line-height: normal;
text-align: left; 
margin-bottom: 10px;
padding: 3px;
border-top: 1px dashed #ccc;
}
#copyright {
background: #393939;
border-top: 1px solid #000;
padding: 2px;
text-align: center;
}


Any help would be great
Thanks
Jag100
Try adding some overflow:hidden into the divs.

^i don't understand. i don't know much about CSS Sad
Not mybb!
^i know. someone moved it here