.container .row .col-sm-4 h3{ background:#2c3e50; padding: 50px 50px; border-radius: 5px; } .container .row .col-sm-8 h3{ background:#2c3e50; padding: 50px 50px; border-radius: 5px; } .container .jumbotron{ background: #2c3e50; }
<!DOCTYPE html> <html lang="ar" dir="rtl"> <head> <meta charset="utf-8"> <title> gnu linux algeria </title> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" > </head> <body> <style> body{ box-sizing: border-box; background: #34495e; color: #ffffff; padding: 25px 0; } </style> <div class="container"> <div class="jumbotron"> <h3 class="text-center"> إستخدام push و pull لسحب الأعمدة نحو اليمين و اليسار . </h3> </div> <div class="row"> <div class="col-sm-4" > <h3 class="text-center"> العمود 1 </h3> </div> <div class="col-sm-8"> <h3 class="text-center"> العمود 2 </h3> </div> </div> <div class="row"> <div class="col-sm-4 col-sm-push-8"> <h3 class="text-center"> العمود 1 </h3> </div> <div class="col-sm-8 col-sm-pull-4"> <h3 class="text-center"> العمود 2 </h3> </div> </div> </div> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"> </script> </body> </html>