putting 2 div besides

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mickey0
    New Member
    • Jan 2008
    • 142

    putting 2 div besides

    Hello,
    I have a central <div> which has width:70%; so there are 2 blank columns on left and right. I'd like to put on the left blank colum the css image validator; but I would like that it will be centered within the left column, like this:
    Code:
    .MAIN { 
    	background-color: #C0C0C0; 
    	width: 70%;		
    	margin:0px auto;
    	padding: 0px;    
    	border: 2px;
    	border-style: double;
     }
     
     .cssvalidator {
            /* width: 5%;*/
            float:left;
    	padding: 0px;
    	margin-left: 5%;
    	margin-right: 5%;  
    	margin-top: 35%;
     }
    More or less this works, but I need something more precise (and general). Can you suggest me something? THanks.
Working...