Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource

JavaScript

Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Auto Save

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <!DOCTYPE html>
<html lang="en">
      <html dir="rtl" >
<head>
  <title>Farazgar Bootstrap Example</title>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css">
  <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
  <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"></script>
  <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"></script>
</head>
<body>
<br></br>
<div class="container">
  <h3>Rounded Corners</h3>
  <p>از کلاس <code> rounded. </code> برای گرد کردن گوشه های تصاویر در بوت استرپ ۴ استفاده می کنیم.</p>            
  <img src="https://www.w3schools.com/bootstrap4/cinqueterre.jpg" class="rounded" alt="Cinque Terre" width="200" height="130"> 
</div>
<br></br>
<div class="container">
  <h3>Circle</h3>
  <p>از کلاس <code>rounded-circle.</code> برای دایره کردن تصاویر استفاده می کنیم.</p>            
  <img src="https://www.w3schools.com/bootstrap4/cinqueterre.jpg" class="rounded-circle" alt="Cinque Terre" width="200" height="130"> 
</div>
<br></br>
<div class="container">
  <h3>Thumbnail</h3>
  <p>از کلاس <code>img-thumbnail.</code> برای تبدیل تصاویر به حالت بند انگشتی استفاده می کنیم.</p>            
  <img src="https://www.w3schools.com/bootstrap4/cinqueterre.jpg" class="img-thumbnail" alt="Cinque Terre" width="200" height="130"> 
</div>
<br></br>
<div class="container">
  <h3>Aligning images</h3>
  <p>برای قرارگرفتن تصویر در سمت راست صفحه نمایش از کلاس <code>float-right.</code> و برای قرارگرفتن تصویر در سمت چپ از کلاس <code>float-left.</code> استفاده می کنیم.</p> 
  <img src="https://www.w3schools.com/bootstrap4/paris.jpg" class="float-left" alt="Paris" width="200" height="130"> 
  <img src="https://www.w3schools.com/bootstrap4/paris.jpg" class="float-right" alt="Paris" width="200" height="130"> 
</div>
<br></br>
<br></br>
<br></br>
<br></br>
<div class="container">
  <h3>Centered Image</h3>
  <p>از کلاس های margin:auto) <code>.mx-auto</code>) و display:block) <code>.d-block</code>) برای قرار دادن تصویر در وسط صفحه استفاده می شود.</p> 
  <img src="https://www.w3schools.com/bootstrap4/paris.jpg" class="mx-auto d-block" alt="Paris" width="200" height="130"> 
</div>
<br></br>
<div class="container">
  <h2>Responsive Image</h2>
  <p>برای واکنش گرا کردن یک تصویر به تگ <code>&lt;img&gt;</code> آن یک کلاس <code>img-fluid.</code> می دهیم.</p>
  <img class="img-fluid" src="https://www.w3schools.com/bootstrap4/img_chania.jpg" alt="Chania" width="460" height="345"> 
</div>
</body>
</html>
              
            
!

CSS

              
                
              
            
!

JS

              
                
              
            
!
999px

Console