* TechnoSparks * Arifmtp ya seperti yang dikatakan johntxt, paste kod itu ke dalam global_stylesheet :)
tapi kalau di dalam global_stylesheet kamu perlu tambah !important. Ini kerana xtgem_template mempunyai kepentingan yang lebih tinggi. Apabila ditambahnya !important, maka ia jadi lebih tinggi kepentingannya

body
{
  max-width: 700px !important;
}

Copy code


kamu juga boleh guna kod CSS di atas di dalam _headtags, asalkan kamu letakkan nya di antara <style></style>

kamu juga boleh tambah max-width: 700px; ke dalam xtgem_template, tapi kamu pasti akan terpaksa buang mana-mana max-width yang sebelumnya.
2014-06-03 11:50 (edited 2014-06-03 12:30 by TechnoSparks ) · (0)
* Graham also you need to go to the site options and switch "Auto-include xtgems javascript wrapper" to "No"
2014-06-03 12:01 · (0)
* Arifmtp * johntxt _headtags _header _footer di edit apanya atau seperti apa? :)
2014-06-03 12:22 · (0)
* Arifmtp * TechnoSparks kalau nilainya lebih dari 700px bagaimana? :)
2014-06-03 12:28 · (0)
* Arifmtp * Graham The usefulness for what? "Auto-include xtgems javascript wrapper" :)
2014-06-03 12:28 (edited 2014-06-03 12:30 by Arifmtp ) · (0)
* TechnoSparks * Arifmtp Ikut suka kamu sahaja :D kamu ada hak untuk ubahnya dalam apa jua bentuk, %, em, pt dan lain lain.

Maafkan saya pada posting tadi, saya tertulis _header sedangkan sepatutnya _headtags
2014-06-03 12:31 · (0)
* Graham Also if you are using xtgem_template.css Xtgem automatically adds an extra class to the <body> when viewed on web devices xt_touch
so
body {max-width:700px!important} will apply to all devices
.xt_touch {max-width:1000px!important} will apply to web devices
Other classes can be set by reference
.my_class {border 1px solid red} will apply to all devices
.xt_touch .my_class {border 1px solid green} will apply to web devices
2014-06-03 12:47 · (0)
* Graham * Arifmtp "Auto-include xtgems javascript wrapper" does the xt_touch class and also limits the body width to 400px
if you switch to No the width limit is not set
new sites have it switched to "No" by default
2014-06-03 12:51 (edited 2014-06-03 12:53 by Graham ) · (0)
* Arifmtp * TechnoSparks tidak apa-apa kok, ini alhamdulillah udah bisa, terimakasih atas bantuannya, oh iya arif belum paham yang di maksut oleh graham di atas, apa kamu bisa menjelaskannya :)
2014-06-03 13:03
*
* dari sobat.png · image/png · 203.62KB
(edited 2014-06-03 13:11 by Arifmtp ) · (0)
* Arifmtp * Graham What should I add on this: body {max-width: 100%! important; } To be more convenient for visitors page. :)
2014-06-03 13:18 · (0)

Online: Guests: 1