ยินดีต้อนรับคุณ, บุคคลทั่วไป กรุณา เข้าสู่ระบบ หรือ ลงทะเบียน

เข้าสู่ระบบด้วยชื่อผู้ใช้ รหัสผ่าน และระยะเวลาในเซสชั่น

ThaiSEOBoard.comพัฒนาเว็บไซต์CMS & Free Scriptแก้ไขไฟล์ style.css ใน wordpress แล้วไม่เกิดผลใดๆ แก้ไขอย่างไรดีครับ
หน้า: [1]   ลงล่าง
พิมพ์
ผู้เขียน หัวข้อ: แก้ไขไฟล์ style.css ใน wordpress แล้วไม่เกิดผลใดๆ แก้ไขอย่างไรดีครับ  (อ่าน 1810 ครั้ง)
0 สมาชิก และ 1 บุคคลทั่วไป กำลังดูหัวข้อนี้
tarapiw
ก๊วนเสียว
*

พลังน้ำใจ: 4
ออฟไลน์ ออฟไลน์

กระทู้: 334



ดูรายละเอียด
« เมื่อ: 09 กรกฎาคม 2007, 00:03:53 »

ผมต้องการปรับขนาดฟอนต์ ของเนื้อหาใน blog ให้เล็กลง
ลองปรับแต่งไฟล์ style.css แล้วไม่ได้ผล ฟอนต์ยังเท่าเดิม ไม่ทราบแก้ไขอย่างไรดีครับ
มีโค้ดดังนี้
อ้างถึง
/*
Theme Name: Adformat
Theme URI: http://pilkster.com/seo-adsense-wordpress-theme/
Description: Theme formatted for industry-standard size banners and adverts. Licensed under <a href="http://creativecommons.org/licenses/by-nc-sa/2.5/ ">Creative Commons</a>. Attribution links must stay.
Version: 1.0
Author: Simon Pilkington
Author URI: http://pilkster.com/
*/

*
{
  padding: 0;
  margin: 0;
}

body
{
   font-size: 10pt;
   font-family: 'Arial', Verdana, Sans-Serif;
}

hr
{
  display: none;
}

#page
{
  width: 790px;
  margin: 0 auto;
   
}

#wrapper
{
  width: 780px;
  margin: 0 auto;
}

#content
{
  float: left;
  width: 440px;
}

.post
{
  margin-bottom: 20px;
  color: #000000;
  padding-left: 5px;
  padding-right: 5px;
  font-size: 1.1em;
}

h2
{
  font-size: 1.6em;
  border-bottom: 1px solid #e8c38b;
}

h2 a:hover, h2 a:visited, h2 a
{
  text-decoration: none;
  color: #0066CC;
}

.entry
{
  margin-top: 10px;
  margin-bottom: 15px;
}

.postmetadata
{
  padding: 2px;
  font-size: 0.8em;
  border-top: 1px solid #fada96;
}

.postmetadata a
{
  color: #000000;
}

.post p
{
  line-height: 1.4em;
  margin-bottom: 1em;
}

blockquote
{
  margin: 1em 1.5em;
  padding: 1em 1.5em;
  border: 1px solid #fada96;
  background: #fcf1e2 url(images/blockquote.png) no-repeat scroll top left;
}

.post li
{
  margin-left: 20px;
}

.post ul
{
  list-style-image: url (images/listitem.png);
  list-style-type: bullet;
  margin-bottom: 10px
}

acronym, abbr, span.caps
{
  cursor; help;
}

acronym, abbr
{
  border-bottom: 1px dashed #999;
}

blockquote cite
{
  margin: 5px 0 0;
  display: block;
}

.center
{
  text-align: center;
}

a img
{
  border: none;
}

h3
{
  margin-top 1.5em;
  font-size 1.4em;
}

h4
{
  margin-top: 1.2em;
  font-size: 1.2em;
}

h5
{
  margin-top: 1em;
  font-size: 1em;
}

a
{
  color: #0066CC;
}

.navigation
{
  display: block;
  margin-top: 10px;
  margin-bottom: 40px;
}

.alignleft
{
  float: left;
  text-align: left;
  width: 50%;
}

.alignright
{
  float: right;
  text-align: right;
  width: 50%
}

ol.commentlist
{
  width: 90%;
  margin: 0 auto;
}

ol.commentlist li
{
  margin-bottom: 1.5em;
  border: 1px solid #c69835;
  padding: 5px;
  background-color: #f5de74;
}

ol.commentlist li.alt
{
  background-color: #fdf6a7;
}

ol.commentlist a
{
  color: #0066CC;
}

small.commentmetadata
{
  font-size: 0.8em;
  margin-bottom: 1em;
  display: block;
}

#header
{
  margin-bottom: 20px;
  margin-top: 20px;
  text-align: left;
  padding: 5px;
}

#sidebar
{
  float: right;
  width: 336px;
  padding: 2px;
  text-align: center;
}

#sidebar ul
{
  list-style: none;
  margin-bottom: 10px;
}

#sidebar ul ul
{
  list-style-type: circle;
  margin-left: 20px;
}

#sidebar ul ul ul
{
  margin-bottom: 0;
}

#sidebar ul h2
{
  border-bottom: 1px solid #fada96;
  border-top: 1px solid #fada96;
  font-size: 1.2em;
  font-weight: normal;
  padding: 2px;
  margin-bottom: 5px;
}

#footer
{
  padding: 5px;
  clear: both;
  text-align: center;
}

#sidebar_r
{
  float: right;
  width: 170px;
  padding: 3px;
  text-align: left;
}

#sidebar_l
{
  float: left;
  width: 160px;
}

.description
{
  border-bottom: 100px;
}

#ad_hf
{
  text-align: center;
  padding-top: 10px;
}
บันทึกการเข้า
yokey.
หัวหน้าแก๊งเสียว
*

พลังน้ำใจ: 64
ออฟไลน์ ออฟไลน์

กระทู้: 1,077



ดูรายละเอียด เว็บไซต์
« ตอบ #1 เมื่อ: 09 กรกฎาคม 2007, 00:35:55 »

มันขึ้นกับ browser ที่เราใช้ด้วยครับ อย่าง Opera หรือ firefox นี่หากปรับเ็ล็กกว่าที่เราตั้งค่าฟอน์ตขนาดเล็กสุด มันก็จะไม่ปรับให้ครับ หากดูจากที่เป็น

body
{
   font-size: 10pt;

นี่เล็กมากนะครับ

แต่แนะนำให้ดูจากหลาย ๆ Browser ครับ หลัก ๆ อาจคำนึงถึงผู้ใช้ IE Firefox และ Opera กับ safari ตามลำดับครับ
---------------------------------------

ปล. ลองเอาไปใช้แทนของเดิมดูครับ

โค๊ด:
/*
Theme Name: Adformat
Theme URI: http://pilkster.com/seo-adsense-wordpress-theme/
Description: Theme formatted for industry-standard size banners and adverts. Licensed under <a href="http://creativecommons.org/licenses/by-nc-sa/2.5/">Creative Commons</a>. Attribution links must stay.
Version: 1.0
Author: Simon Pilkington
Author URI: http://pilkster.com/
*/

*
{
  padding: 0;
  margin: 0;
}

body
{
font-size:   76%;
font-family: 'Trebuchet MS', Arial, Verdana, Sans-Serif;
}

hr
{
  display: none;
}

#page
{
  width: 790px;
  margin: 0 auto;
   
}

#wrapper
{
  width: 780px;
  margin: 0 auto;
}

#content
{
  float: left;
  width: 440px;
}

.post
{
  margin-bottom: 20px;
  color: #4a2c00;
  padding-left: 5px;
  padding-right: 5px;
  font-size: 1.1em;
}

h2
{
  font-size: 1.6em;
  border-bottom: 1px solid #e8c38b;
}

h2 a:hover, h2 a:visited, h2 a
{
  text-decoration: none;
  color: #bd492a;
}

.entry
{
  font-size: 0.8em;
  margin-top: 10px;
  margin-bottom: 15px;
}

.postmetadata
{
  padding: 2px;
  font-size: 0.8em;
  border-top: 1px solid #fada96;
}

.postmetadata a
{
  color: #4a2c00;
}

.post p
{
  line-height: 1.4em;
  margin-bottom: 1em;
}

blockquote
{
  margin: 1em 1.5em;
  padding: 1em 1.5em;
  border: 1px solid #fada96;
  background: #fcf1e2 url(images/blockquote.png) no-repeat scroll top left;
}

.post li
{
  margin-left: 20px;
}

.post ul
{
  list-style-image: url (images/listitem.png);
  list-style-type: bullet;
  margin-bottom: 10px
}

acronym, abbr, span.caps
{
  cursor; help;
}

acronym, abbr
{
  border-bottom: 1px dashed #999;
}

blockquote cite
{
  margin: 5px 0 0;
  display: block;
}

.center
{
  text-align: center;
}

a img
{
  border: none;
}

h3
{
  margin-top 1.5em;
  font-size 1.4em;
}

h4
{
  margin-top: 1.2em;
  font-size: 1.2em;
}

h5
{
  margin-top: 1em;
  font-size: 1em;
}

a
{
  color: #bd492a;
}

.navigation
{
  display: block;
  margin-top: 10px;
  margin-bottom: 40px;
}

.alignleft
{
  float: left;
  text-align: left;
  width: 50%;
}

.alignright
{
  float: right;
  text-align: right;
  width: 50%
}

ol.commentlist
{
  width: 90%;
  margin: 0 auto;
}

ol.commentlist li
{
  margin-bottom: 1.5em;
  border: 1px solid #c69835;
  padding: 5px;
  background-color: #f5de74;
}

ol.commentlist li.alt
{
  background-color: #fdf6a7;
}

ol.commentlist a
{
  color: #bd492a;
}

small.commentmetadata
{
  font-size: 0.8em;
  margin-bottom: 1em;
  display: block;
}

#header
{
  margin-bottom: 20px;
  margin-top: 20px;
  text-align: left;
  padding: 5px;
}

#sidebar
{
  float: right;
  width: 336px;
  padding: 2px;
  text-align: center;
}

#sidebar ul
{
  list-style: none;
  margin-bottom: 10px;
}

#sidebar ul ul
{
  list-style-type: circle;
  margin-left: 20px;
}

#sidebar ul ul ul
{
  margin-bottom: 0;
}

#sidebar ul h2
{
  border-bottom: 1px solid #fada96;
  border-top: 1px solid #fada96;
  font-size: 1.2em;
  font-weight: normal;
  padding: 2px;
  margin-bottom: 5px;
}

#footer
{
  padding: 5px;
  clear: both;
  text-align: center;
}

#sidebar_r
{
  float: right;
  width: 170px;
  padding: 3px;
  text-align: left;
}

#sidebar_l
{
  float: left;
  width: 160px;
}

.description
{
  border-bottom: 100px;
}

#ad_hf
{
  text-align: center;
  padding-top: 10px;
}
« แก้ไขครั้งสุดท้าย: 09 กรกฎาคม 2007, 00:51:02 โดย yokey. » บันทึกการเข้า
หน้า: [1]   ขึ้นบน
พิมพ์