Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

css 2 divs nebeneinander

            #right{
                 background: green;     
                 width: 100%;
               }
               #left {
                 margin-top: 5px; /* to test if they intersect*/
                 background: red;
               }  
               #container {
                  width: 800px;
               }
               <div id="container">
                  <div id="left"> This div is as big as it's content</div>
                  <div id="right"> rest of space</div>
               </div> 
Source by stackoverrun.com #
 
PREVIOUS NEXT
Tagged: #css #divs #nebeneinander
ADD COMMENT
Topic
Name
7+2 =