Margins problem turning me mad- help please

Discussion in 'CSS' started by asmina22, Aug 1, 2008.

  1. #1
    Hi
    i have margins problem on a wordpress video template that i re-built partially.
    it is on this site :
    http://madonnabritneyspearsstickyandsweetvideos.com/
    as u can see, too large white margin at the left of the sidebars that i couldnt reduce,
    also, the height on the two sidebars isnt the same as the main content height.
    anybody can help please ?
    here is the stylesheet

    
    
    /******* Basics and Typography *******/
    body { background: #fff; font-size: 95%; font-family: Verdana, Arial, Helvetica, sans-serif; color: #333; text-align: center; }
    * { padding: 0; margin: 0; }
    
    p { font-size: 0.875em; line-height: 1.5em; margin: 0 0 1.5em 0; }
    ol, ul { font-size: 0.875em; line-height: 1.5em; margin: 0 0 1em 3em; padding: 0; }
    ol li, ul li { padding: 0 0 0.5em 0; }
    * html #content, * html #sidebar { overflow: hidden; /* For IE */ }
    
    
    
    /*---------- Headlines ----------*/
    
    h1, h2 { margin: 0 0 1.1em 0; font-family: Arial, Verdana, Helvetica, sans-serif; }
    h3, h4, h5, h6 { margin: 0 0 1.1em 0; font-family: Arial, Verdana, Helvetica, sans-serif; }
    h1 { font-size: 1.5em; color: #546371; }
    h2 { font-size: 1.2em; color: #546371; line-height: 1.2em; font-weight: lighter; }
    h3 { font-size: 1.2em; color: #7B8691; }
    h4 { font-size: 1.2em; color: #7B8691; }
    
    .indextitle { margin: 0; width: 100%; color: #105CB6; font-size: 1em; font-weight: bold; overflow: auto; }
    .indextitle a { float: left; padding: 0; }
    .indextitle a:link, .indextitle a:visited { color: #105CB6;	}
    .indextitle a:hover, .indextitle a:active { color: #000033; }
    
    .posttitle { margin: 0 0 0.6em 0; width: 100%; color: #546371; font-size: 1.5em; font-weight: bold; overflow: auto; }
    .posttitle a { float: left; padding: 0; }
    .posttitle a:link, .posttitle a:visited { color: #546371;	}
    .posttitle a:hover, .posttitle a:active { color: #000033; }
    
    
    
    /*---------- Elements ----------*/
    
    a:link { color: #0078DC; }
    a:visited { color: #0078DC; }
    a:hover, a:active { color: #000033; text-decoration: underline; }
    
    input, textarea, select { border: 1px solid #C1C7CD; padding: 3px; background-color: #FFF; color: #333; font-size: 1em; 
    font-family: Arial, Verdana, Helvetica, sans-serif; }
    blockquote { margin: 0em 0em 1em 1.5em; padding: 1em;  font-size: 1em; line-height: 1.5em; background: #eee; border: 1px solid #eee; }
    code { font-family: monospace; color: #555; }
    alt { padding: 6px; }
    img#wpstats { width: 0px; height: 0px; margin: 0px; padding: 0px; border: none; overflow: hidden; display: none; }
    form, img {margin: 0px; padding: 0px; border: 0px; }
    img.center { position: relative; padding: 6px; margin: auto; border: 1px solid #999; display: block; }
    img.left { position: relative; padding: 6px; margin: 0 20px 20px 0; border: 1px solid #999; display: inline; }
    img.right { position: relative; padding: 6px; margin: 0px 0px 20px 20px; border: 1px solid #999; display: inline; }
    .center { float: center; }
    .left { float: left; }
    .right { float: right; }
    .off { padding: 0 !important; border: none !important; }
    .clearboth { clear: both; }
    .small { font-size: 1em; color: #999; }
    .vid { padding-bottom: 20px; }
    
    
    
    /*---------- Layout ----------*/
    
    #headerwrap { height: 105px; width: 1040px; padding: 0; margin: 0px auto; }
    #header { height: 100px; width: 350px; padding: 0; margin: 1px 0px 0px 5px; float: left; text-align: left; }
    .header { margin-top: 5px; font-size: 22px; }
    .description { margin-top: 5px; font-size: 12px; }
    #wrapper { margin: 0px auto 0px auto; padding: 0px; width: 1040px; text-align: left; }
    
    #navwrap { background: #000 url(images/film.jpg) center left repeat-x; }
    .navborder { height: 1px; margin: 1px 0px 1px 0px; padding: 0px; background: #000; overflow: hidden; }
    #navigation { font-weight: normal; margin: 0px auto; padding: 0px; overflow: hidden; width: 1040px; position: relative; text-align: left; }
    #navigation ul { margin: 0px 0px 0px 10px; }
    #navigation ul li { float: left; margin: 0px 20px 0px 0px; padding: 0px; list-style-type: none; }
    #navigation ul li a { padding: 5px 0 5px 0; display: block; color: #A9AEB3; text-decoration: none; }
    #navigation ul li a:hover { color: #4096EE; }
    #navigation ul li a:active { }
    #ledge { height: 35px; background: url(images/le-dge.jpg) repeat-x top left; }
    
    
    
    /*---------- Content -----------*/
    
    #mainbody { width: 1040px; background: #fff; overflow: auto; }
    #content { float: left; margin: 0px 0px 0px 0px; width: 665px; display: inline; /* IE double margin bug fix */ }
    #contentsingle { float: left; margin: 0px 0px 0px 10px; width: 620px; display: inline; /* IE double margin bug fix */ }
    .postmeta { margin: 0 0 1.25em 0; font-size: 0.8em; color: #999; }
    .postfeedback { margin-top: -1.5em; font-size: 0.875em; }
    .postfeedbacksingle { height: 40px; font-size: 0.875em; }
    .commentslink { font-size: 0.9em; padding: 0 0 0 17px; background: url(images/commentslink.gif) no-repeat center left; }
    .pagenavigation { display:block; font-size: 0.875em; margin-bottom: 5px; }
    .alignleft { float:left; text-align:left; width: 40%; min-height: 50px;; }
    .alignright { float:right; text-align:right; width: 40%; min-height: 50px; margin-right: 5px; }
    
    .window { width: 663px; height: 107px; margin-bottom: 30px; }
    .paneleft { padding: 0px; width: 170px; height: 120px; float: left; border: 1px solid #ddd; background: #f3f3f3; }
    .paneright { padding: 0px; width: 405px; float: right; }
    
    
    
    /*---------- Sidebar ----------*/
    
    #sidebar { float: left; margin: 0px 0px 0px 0px; padding: 0px; width: 340px; display: inline; }
    #sidebar h2 { font-weight:lighter; margin: 0 0 5px 0; padding: 0 5px 0px 0px; color: #333; }
    #sidebar ul { list-style: none; font-size: 0.8em; margin: 0 0 1em 0; padding: 0 0px 0 0; }
    #sidebar ul li { padding: 0 0 1em 0; }
    #sidebarleft { width: 160px; float: left; }
    #sidebarright { width: 140px; float: left; margin-left: 20px; margin-right: 18px; border: 1px solid #999; }
    table#wp-calendar{ width: 80%; }
    
    
    
    /*---------- Comments ----------*/
    
    .comments { padding: 0; margin: 0; }
    .comments .list ol { padding: 0; margin: 0; }
    .comments .list li { position: relative; padding: 15px 0px; margin: 0px; list-style-type: none; }
    .alt { background-color: #fff !important; }
    .commentnumber { color:#C1C7CD; position: absolute; top: 15px; font-size: 18px; line-height: 14px; font-weight: normal; 
    width: 40px; height: 15px; margin-left: 480px; padding: 0; text-align: right; }
    .commenttitle { margin: 0px; padding: 0 45px 0 0; font-size: 1em; }
    .commentmeta { margin: 0px; padding: 0; font-size: 0.8em; }
    .commentmeta a { color:#999; text-decoration: none; }
    .commentbody { border-top: solid 1px #CCC; font-size: 1.1em; padding-top: 10px; }
    #formblock { margin: 0px 0px 20px 0px; padding: 10px 20px 10px 20px; background: #F0F0F0; border: 1px solid #CCC; }
    #formblock p { margin: 0 0 0.5em 0; }
    .button { background: #546371; }
    .button:hover { background: #7B8691; cursor:pointer; }
    label {font-size: 12px; color: #7B8691; }
    #comment { width: 98%; }
    #author { width: 98%; }
    #email { width: 98%; }
    #url { width: 98%; }
    #submit, #contactsubmit { color: #fff; padding: 5px; }
    
    
    
    /*---------- Footer ----------*/
    
    #footer { overflow: hidden; margin: 0px; padding: 0px; }
    #footerwrap { color: #aaa; font-size: 14px; margin: 0; width: 900px; padding: 0; margin: 0px auto; border-top: 1px dotted #aaa; }
    #footcontent { text-align: center; height: 80px; margin: 0px auto; padding-top: 15px; }
    #footcontent a { color: #888; }
    
    
    
    /*---------- Search Bar ----------*/
    
    #s { color: #546371; background-color: #fff; font-size: 14px; height: 18px; width: 140px; padding: 0px; margin: 0px 0px 5px 0px; }
    
    
    
    /*----------- Contact Form (Customized plugin) ----------*/
    
    .contactform { position: static; overflow: hidden; }
    .contactleft { width: 20%; text-align: right; clear: both; float: left; display: inline; padding: 4px; margin: 8px 0; }
    .contactright { font-size: 14px; width: 75%; text-align: left; float: right; display: inline; padding: 4px; margin: 5px 0; }
    .contacterror { border: 2px solid #ff9900; }
    .contactsubmit { }
    
    
    
    /*---------- Ad Blocks -----------*/
    
    #adheader { width: 468px; height: 60px; margin: 5px 0px 0px 0px; float: right; text-align: left; }
    #adsidebar { width: 336px; margin: 0px 0px 20px 0px; }
    #adsinglepage { width: 468px; margin: 0px 0px 20px 0px; }
    
    
    
    Code (markup):

     
    asmina22, Aug 1, 2008 IP