কম্পিউটার টিউটোরিয়াল

CSS-এ background shorthand property ব্যবহার

background property ব্যবহার করে একসাথে সব পটভূমি property (image, position, repeat, attachment, color) সেট করা যায়।

উদাহরণ

<html>
  <head>
  </head>
  <body>
    <p style="background:url(/images/pattern1.gif) repeat fixed;">
      This parapgraph has fixed repeated background image. </p>
  </body>
</html>

সর্বোত্তম অভ্যাস: Shorthand লেখার সময় সব property না লিখলেও চলে, কিন্তু ক্রম মেনে চলা ভালো: background: color image repeat attachment position;।

  1. CSS-এ border শর্টহ্যান্ড প্রপার্টি

  2. CSS-এ margin শর্টহ্যান্ড প্রপার্টি

  3. CSS-এ Background শর্টহ্যান্ড প্রপার্টি

  4. CSS-এ Outline শর্টহ্যান্ড প্রপার্টি