เวปมิก : เรื่อง footer ครับ

จาก theme ที่ิมิกใช้อยู่นะ ให้ไปสร้าง folder ชื่อ images เอาไว้ใน floder ของ theme ที่ใช้อยู่ เช่น zen_classic/ images แล้วเอาภาพประกอบต่าง ๆ ที่มิกจะใช้ ไปไว้ในนั้น แล้วเรียกผ่าน Property นี้เอา

{
  background-image: url(images/ภาพ background ที่ต้องการ.png);
}

เรื่องภาพใน footer

หลังจากสร้าง folder images ใน theme ที่ใช้จากข้อด้านบนแล้วนะ

ให้ลองแทรกภาพผ่าน #footer-wrapper ดูครับ ประมาณนี้นะ

#footer-wrapper
{
  background-image: (url/images/abc.png);
}

ถ้าเรียกภาพผ่าน #footer-wrapper ขึ้นแล้วนะ จะจัดให้เขาอยู่ตรงกลางให้เพิ่ม property นี้ลงไปครับ

#footer-wrapper
{
  background-image: url(images/...);
  background-repeat: no-repeat; /* บอกว่าไม่ต้องซ้ำภาพ background */
  background-position: center bottom; /* วางตำแหน่ง background ให้ชิดขอบล่าง และอยู่ตรงกลางครับ */
}
Mixmerize บอกว่า

ยังงงๆอยู่ครับ
คือสรุปแล้ว เราจำเป็นต้องมีBlockที่ใส่อยู่ใน Footer ก่อนใช่มั้ยครับ เราถึงจะใส่ค่าตรงนี้ตามไปทีหลัง
คือที่มิกทำ มิกสร้าง block ขึ้นมาใหม่แล้วจับใส่ลงใน Footer แต่โค้ดที่พี่ก๊อกให้กลับไม่แสดงผล

แต่พอมิกพิมพ์ข้อความหรือคำสั่งใส่ไปใน Block body: อันนั้น โค้ดที่พี่ก๊อกให้ก็ขึ้นตามด้วย
สรุปแล้วมิกงงครับ ฮ่า~ บอกไม่ถูกเหมือนกัน
ตอนนี้ใช้สูตรโกงอยู่ เดี๋ยวค่อยมาลุยอีกที :P

#1
kok บอกว่า

ได้แล้วนิ ?

#2

Post new comment

The content of this field is kept private and will not be shown publicly.
  • You can use Markdown syntax to format and style the text. Also see Markdown Extra for tables, footnotes, and more.
  • Allowed HTML tags: <embed> <div> <p> <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <br> <img> <hr> <h1> <h2> <h3> <h4> <blockquote> <quote> <pre> <th> <tr> <td> <table> <thead> <tbody>
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.

More information about formatting options

CAPTCHA
กรอกตัวหนังสือที่เห็นนี้ให้ถูกต้องนะครับ (มีไว้กัน spam)
Image CAPTCHA
Enter the characters shown in the image.