Я хочу сделать рамку для страницы, но при добавлении левой и правой рамки для блока  #middle, он начинает выпирать вправо, как раз на толщину рамки.Как бы избавиться от такого еффекта?
Вот css:
#wrapper {
   width: 900px;   
   min-width: 768px;
   max-width: 1024px;
   margin: 0 auto;
   
}
/* Header
----------------------------------------------------------------------*/
#header {
padding-top:40px;   
border:2px solid #000000;
border-bottom:0px;
background-color: #B4B5B4;
height: 150px;
-moz-border-radius-bottomright: 0px;
-moz-border-radius-topleft: 40px;
-moz-border-radius-topright: 40px;
-moz-border-radius-bottomleft: 0px;
}
/* Middle
-----------------------------------------------------------------------------*/
#middle {
   width: 100%;
   position: relative;
   border-right:2px solid #000000;
background-color: #B4B5B4;
}
#middle:after {
   content: '.';
   display: block;
   clear: both;
   visibility: hidden;
   height: 0;
   background-color: #B4B5B4;
}
#container {
   width: 100%;
   float: left;
   overflow: hidden;
   background: #B5E3FF;
   
}
#content {
   padding: 20px 20px 20px 270px;
   
}
/* Sidebar Left
-----------------------------------------------------------------------------*/
#sideLeft {
   float: left;
   width: 150px;
   margin-left: -100%;
   position: relative;
   background: #f5f5F5;
   padding:20px;
   
}
/* Footer
-----------------------------------------------------------------------------*/
#footer {
   height: 50px;
   padding:30px;
background-color: #B4B5B4;
-moz-border-radius-bottomright: 40px;
-moz-border-radius-topleft: 0px;
-moz-border-radius-topright: 0px;
-moz-border-radius-bottomleft: 40px;
border:2px solid #000000;
border-top:0px;
}
А вот HTML:
<div id=«wrapper»>
   <div id=«header»>
   </div>
   <div id=«middle»>
      <div id=«container»>
         <div id=«content»>
         </div>
      </div>
      <div id=«sideLeft»>   
      </div>
   </div>
   <div id=«footer»>
   </div>
</div>
    
      Ответ на:
      
          комментарий
        от Deleted 
  
    
      Ответ на:
      
          комментарий
        от Apple-ch 
  
    
      Ответ на:
      
          комментарий
        от geekless 
  
    
      Ответ на:
      
          комментарий
        от stevejobs 
  
    
      Ответ на:
      
          комментарий
        от geekless 
  
    
      Ответ на:
      
          комментарий
        от Deleted 
  
    
      Ответ на:
      
          комментарий
        от geekless 
  
    
      Ответ на:
      
          комментарий
        от Deleted 
  
    
      Ответ на:
      
          комментарий
        от Apple-ch 
  
    
      Ответ на:
      
          комментарий
        от doomgl 
  
    
      Ответ на:
      
          комментарий
        от doomgl 
  
    
      Ответ на:
      
          комментарий
        от Apple-ch 
  
    
      Ответ на:
      
          комментарий
        от Deleted 
  
    
        Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.
      
Похожие темы
- Форум div - 100%-margins (2012)
 - Галерея Тема «LorTangoChalk» (2013)
 - Форум Объединить 2 бордера (2012)
 - Форум [novice] div css для мессаги форума (2012)
 - Форум Блок «модальное окно» (2011)
 
- Форум написание своей gtk3 темы: ширина кнопок (2017)
 - Форум [CSS] z-index не работает. (2010)
 - Форум Скажите справился я с заданием или нет. (2012)
 - Форум Проясните по CSS (2011)
 - Форум Front end (2020)