0
 <div id="container">
    <div id="subsSection">
       <div class="leftSection">ss</div>
       <div class="rightSection">ss</div>
  </div>

 </div>

(1) I want the subsection div, to be centered on the screen. but when its min-width have been reach on re size, then float to the left and no longer be centered. this is to use the left margin space.

Demo

user3105158
  • 61
  • 3
  • 15

1 Answers1

0

use media query for this

css

@media only screen and (min-width:768px){
    #subsSection{
        width:20%;
        float:left;        
    }
}
Aru
  • 1,840
  • 1
  • 12
  • 15
  • yes, with the help of jquery, you can achieve the same by finding the device width!! – Aru Sep 30 '14 at 11:44