آموزش چند ستونی در CSS3 

3 سال پیش
آموزش چند ستونی در CSS3

آموزش چند ستونی در CSS3 

در این درس از مجموعه آموزش برنامه نویسی سایت سورس باران، به آموزش چند ستونی در CSS3 خواهیم پرداخت.

CSS3 از چند ستونی پشتیبانی می کند تا متن را به عنوان ساختار مقاله خبری تنظیم کند.

برخی از متداول ترین خواص چند ستونی مورد استفاده به شرح زیر است –

  • column-count

برای شمارش تعداد ستونهایی که آن عنصر باید تقسیم شود استفاده می شود.

  • column-count

برای تصمیم گیری، نحوه پر کردن ستون ها استفاده می شود.

  • column-gap

برای تصمیم گیری در مورد فاصله بین ستون ها استفاده می شود.

  • column-rule

برای مشخص کردن تعداد قوانین استفاده می شود.

  • column-rule

برای تعیین رنگ قانون ستون استفاده می شود.

  • style

برای تعیین قانون سبک برای ستون استفاده می شود.

  • rule-width

برای مشخص کردن عرض استفاده می شود.

  • rule-width

برای مشخص کردن فاصله بین ستون ها استفاده می شود.

 

مثال

مثال زیر چیدمان متن را به عنوان ساختار جدید کاغذ نشان می دهد.

<html>
   <head>
      <style>
         .multi {
            /* Column count property */
            -webkit-column-count: 4;
            -moz-column-count: 4;
            column-count: 4;
            
            /* Column gap property */
            -webkit-column-gap: 40px; 
            -moz-column-gap: 40px; 
            column-gap: 40px;
            
            /* Column style property */
            -webkit-column-rule-style: solid; 
            -moz-column-rule-style: solid; 
            column-rule-style: solid;
         }
      </style>
   </head>

   <body>
   
      <div class = "multi">
         Tutorials Point originated from the idea that there exists a class 
         of readers who respond better to online content and prefer to learn 
         new skills at their own pace from the comforts of their drawing rooms.
         The journey commenced with a single tutorial on HTML in 2006 and elated 
         by the response it generated, we worked our way to adding fresh tutorials
         to our repository which now proudly flaunts a wealth of tutorials and 
         allied articles on topics ranging from programming languages to web 
         designing to academics and much more.
      </div>
      
   </body>
</html>

 

خروجی به صورت زیر می باشد:

Tutorials Point originated from the idea that there exists a class of readers who respond better to online content and prefer to learn new skills at their own pace from the comforts of their drawing rooms. The journey commenced with a single tutorial on HTML in 2006 and elated by the response it generated, we worked our way to adding fresh tutorials to our repository which now proudly flaunts a wealth of tutorials and allied articles on topics ranging from programming languages to web designing to academics and much more

 

فرض کنید، اگر کاربر بخواهد متن خود را به صورت کاغذ جدید و بدون خط بسازد، می توانیم این کار را با حذف نحو سبک مانند تصویر زیر انجام دهیم

.multi {
   /* Column count property */
   -webkit-column-count: 4;
   -moz-column-count: 4;
   column-count: 4;
   
   /* Column gap property */
   -webkit-column-gap: 40px; 
   -moz-column-gap: 40px; 
   column-gap: 40px;
}

 

خروجی به صورت زیر می باشد:

Tutorials Point originated from the idea that there exists a class of readers who respond better to online content and prefer to learn new skills at their own pace from the comforts of their drawing rooms. The journey commenced with a single tutorial on HTML in 2006 and elated by the response it generated, we worked our way to adding fresh tutorials to our repository which now proudly flaunts a wealth of tutorials and allied articles on topics ranging from programming languages to web designing to academics and much more

 

منبع.

لیست جلسات قبل آموزش CSS

  1. آموزش CSS
  2. CSS چیست؟
  3. آموزش نحو CSS
  4. آموزش قوانین CSS 
  5. آموزش واحد انداره گیری در CSS
  6. آموزش رنگ ها در CSS
  7. آموزش Background در CSS
  8. آموزش فونت ها در CSS
  9. آموزش استفاده از تصاویر در CSS 
  10. آموزش استفاده از تصاویر در CSS 
  11. آموزش استفاده از لینک ها در CSS 
  12. آموزش جداول در CSS 
  13. آموزش حاشیه در CSS 
  14. آموزش margin در CSS
  15. آموزش لیست ها در CSS
  16. آمورش ویژگی padding در CSS
  17. آموزش ویژگی مکان نما در CSS 
  18. آموزش outline در CSS 
  19. آموزش ابعاد در CSS 
  20. آموزش نوارهای پیمایشی در CSS
  21. آموزش visibility در CSS
  22.  آموزش موقعیت یابی در  CSS 
  23. آموزش لایه ها در CSS 
  24. آموزش شبه کلاس ها در CSS 
  25. آموزش شبه عناصر در CSS
  26.  آموزش قوانین @ در CSS 
  27. آموزش فیلترهای متنی و تصویری در CSS 
  28. آموزش انواع رسانه ها در CSS 
  29. آموزش مدیا صفحه در CSS
  30. آموزش رسانه شنیداری در CSS
  31. آموزش چاپ در CSS 
  32. آموزش طرح بندی در CSS 
  33. آموزش CSS3
  34. آموزش گرد کردن گوشه ها در CSS3 
  35. آموزش حاشیه تصویر CSS3 
  36. آموزش تنظیم چند پس زمینه در CSS3  
  37. رنگ ها در CSS3 
  38. آموزش گرادیان در CSS3
  39.  آموزش سایه در CSS3 
  40.  آموزش تکست در CSS3
  41. آموزش فونت های وب در CSS3 
  42. آموزش تبدیل ۲d در CSS3 
  43. آموزش تبدیل سه بعدی در CSS3
  44. آموزش انیمیشن در CSS3 
0
برچسب ها :
نویسنده مطلب erfan molaei

دیدگاه شما

بدون دیدگاه