ขอให้สนุกสนานกับการตกแต่ง บล็อกของท่านค่ะ

 

 

Code สำหรับใส่ BG ชั้นนอกค่ะ

1. ใส่ BG แบบ tile

    body{background-image:url(ใส่ URLของภาพที่จะใช้);}


2. ใส่ BG แบบ fixed ไม่ให้ BG เลื่อน ขึ้น-ลง ตาม scrollbar

     body{background-attachment: fixed;background-image:url(ใส่ URLของภาพที่จะใช้);}


3. ใส่ bg โดยใช้สี

    body{background:ใส่สี Bg ที่ต้องการ}


4. ใส่ BG ให้ภาพอยู่..กลางบล็อก

     Body {background-image:url("ใส่ URLของภาพที่จะใช้");background-position:center;background-repeat: no-repeat;background-attachment: fixed;background-color: ใส่สี Bg ที่ต้องการ;}



5. ใส่ BG ให้ภาพอยู่..มุมขวาบน

    Body {background-image:url("ใส่ URLของภาพที่จะใช้");background-position:right top;background-repeat: no-repeat;background-attachment: fixed;background-color: ใส่สี Bg ที่ต้องการ;}



6. ใส่ BG ให้ภาพอยู่..มุมขวากลาง

   Body {background-image:url("ใส่ URLของภาพที่จะใช้");background-position:right center;background-repeat: no-repeat;background-attachment: fixed;background-color: ใส่สี Bg ที่ต้องการ;}



7. ใส่ BG ให้ภาพอยู่..มุมขวาล่าง

   Body {background-image:url("ใส่ URLของภาพที่จะใช้");background-position:right bottom;background-repeat: no-repeat;background-attachment: fixed;background-color: ใส่สี Bg ที่ต้องการ;}



8. ใส่ BG ให้ภาพอยู่..มุมซ้ายบน

   Body {background-image:url("ใส่ URLของภาพที่จะใช้");background-position:left top;background-repeat: no-repeat;background-attachment: fixed;background-color: ใส่สี Bg ที่ต้องการ;}



9. ใส่ BG ให้ภาพอยู่..มุมซ้ายกลาง

   Body {background-image:url("ใส่ URLของภาพที่จะใช้");background-position:left center;background-repeat: no-repeat;background-attachment: fixed;background-color: ใส่สี Bg ที่ต้องการ;}



10. ใส่ BG ให้ภาพอยู่..มุมซ้ายล่าง

  Body {background-image:url("ใส่ URLของภาพที่จะใช้");background-position:left bottom;background-repeat: no-repeat;background-attachment: fixed;background-color: ใส่สี Bg ที่ต้องการ;}