Canh chỉnh 2 bài viết

Các thắc mắc, hướng dẫn về thiết kế Tempalte cho Joomla

Moderator: hungkhanggl

Locked
thp
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Sun Aug 19, 2007 2:51 am

Canh chỉnh 2 bài viết

Post by thp » Sat Nov 24, 2007 3:14 pm

Tại sao 2 bài viết có kích thước khác nhau, làm thế nào kéo bài viết thứ 2 ASUS gia nhập thị trường laptop Việt Nam cho bằng với bài viết thứ 1 Hệ điều hành Leopard dính lỗi nghiêm trọng

Image

Code của template_css.css

Code: Select all

a {
	color: #024AA6;
	text-decoration: none;
}

a.sublevel {
	padding-left: 3px;
}

a.sublevel#active_menu {
	color: #FF6633;
	text-decoration: none;
}

a:hover, a:active {
	color: #EF9403;
	text-decoration: underline;
}

a.pagenav {
	font-weight: normal;
}

a.readon {
	padding: 2px 12px 1px 0;
	display: block;
	color: #FFFFFF;
	background: url(../images/readon-bg.gif) no-repeat bottom right;
	text-decoration: none;
	text-align: right;
	text-transform: lowercase;
	line-height: normal;
}

a.readon:hover, a.readon:active {
	color: #FFFFFF;
	text-decoration: none;
}

body {
	margin: 0;
	padding: 0;
	color: #353535;
	background: #FFFFFF;
	font: 11px Tahoma, Arial, sans-serif;
}

body#bd {
	margin: 5px 0;
	background: url(../images/body-bg.gif) repeat-x top left #999999;
	text-align: center;
}

body.contentpane {
	margin: 12px;
}

div.moduletable {
	width: auto!important;
	width: 100%;
	margin-bottom: 10px;
	border: 1px solid #E6E6E6;
	padding: 6px;
	background-color: #EFEFEF;
}

div.moduletable h3 {
	margin: -6px -6px 6px -6px;
	padding: 4px 4px 4px 6px;
	color: #666666;
	background: url(../images/h3-bg.gif) #F7F7F7;
	font-size: 11px;
	font-weight: bold;
	text-transform: UPPERCASE;
}

div.moduletable td {
	padding: 3px 0!important;
}

div.moduletable-blue {
	background: #024AA6;
}

div.moduletable-blue h3 {
	background: url(../images/h3-blue-bg.gif) #024AA6;
}

div.moduletable-green {
	background: #62AC02;
}

div.moduletable-green h3 {
	background: url(../images/h3-green-bg.gif) #62AC02;
}

div.moduletable-orange {
	background: #EF9403;
}

div.moduletable-orange .article_seperator {
	display: none;
}

div.moduletable-orange a, div.moduletable-green a, div.moduletable-blue a {
	color: #FFFFFF;
}

div.moduletable-orange h3 {
	background: url(../images/h3-orange-bg.gif) #EF9403;
}

div.moduletable-orange h3, div.moduletable-green h3, div.moduletable-blue h3 {
	margin: -6px -6px 6px -6px;
	padding: 4px 4px 4px 6px;
	color: #FFFFFF;
	font-size: 11px;
	text-transform: UPPERCASE;
}

div.moduletable-orange td, div.moduletable-blue td, div.moduletable-green td {
	color: #FFFFFF;
}

div.moduletable-orange, div.moduletable-blue, div.moduletable-green {
	width: auto!important;
	width: 100%;
	margin-bottom: 10px;
	border: 1px solid #E6E6E6;
	padding: 6px;
}

#spotlight-orange, #spotlight-green, #spotlight-blue {
	float: left;
	width: 243px!important;
	width: 242px;
	display: inline;
}

#spotlight-orange, #spotlight-green {
	margin-right: 11px;
}

#spotlight-orange div.moduletable-orange, #spotlight-green div.moduletable-green, #spotlight-blue div.moduletable-blue {
	height: 100px!important;
	height: 120px;
}

fieldset {
	border: 0;
	margin: 0;
	padding: 0;
}

fieldset a {
	font-weight: bold;
}

form {
	margin: 0;
	padding: 0;
}

h1 {
	margin: 10px 0;
	color: #EF9C10;
	font-size: 16px;
}

h1.header-logo {
	margin: 0;
	padding: 0 10px;
	font-size: 20px;
	z-index: 1;
}

h2 {
	margin: 10px 0;
	color: #EF9C10;
	font-size: 14px;
}

h4 {
	margin: 10px 0;
	color: #666666;
	font-size: 12px;
	font-weight: bold;
}

hr {
	border-top: 1px solid #D3CCC2;
	border-right: 0;
	border-left: 0;
	border-bottom: 0;
	height: 1px;
}

html {
	height: 100%;
}

input {
	margin-bottom: -1px;
	font: 11px Arial, sans-serif;
}

ol {
	margin: 12px auto;
}

p {
	margin: 10px 0;
}

select {
	font: 11px Arial, sans-serif;
}

table.contentpaneopen td, table.contentpane td {
	padding: 0;
	line-height: 140%;
}

table.contentpaneopen, table.contentpane, table.blog {
	width: auto!important;
	border-collapse: collapse;
	border-spacing: 0px;
}

table.contenttoc {
	border: 1px solid #EFEFEF;
	margin: 0 0 10px 10px;
	width: 180px;
	background: #F7F7F7;
}

table.contenttoc td {
	padding: 1px 6px 1px 16px;
	background: url(../images/arrow.png) no-repeat 5px 7px;
}

table.contenttoc th {
	padding: 4px 6px;
	color: #024AA6;
}

table.moduletable {
	width: 100%;
	background: #FFFFFF;
}

table.polls {
	padding: 0;
	width: 100%;
	text-align: left;
}

table.pollstableborder {
	padding: 0;
	width: 100%;
	text-align: left;
}

table.pollstableborder img {
	margin: 4px 4px 4px 0;
	vertical-align: middle;
}

table.pollstableborder td {
	padding: 2px 4px!important;
}

table.searchintro {
	margin: 10px 0;
	padding: 10px 0!important;
	width: 100%;
	border-top: 1px solid #999999;
	border-bottom: 1px solid #999999;
}

table.searchintro td {
	padding: 0 2px!important;
}

td {
	font-size: 11px;
}

td.buttonheading {
	padding-left: 5px!important;
}

textarea {
	padding-left: 2px;
	font: 11px/1.3em Arial, sans-serif;
}

th {
	font-weight: bold;
	font-size: 11px;
	text-align: left;
}

tr.sectiontableentry1 td {
	padding: 3px 4px;
	border-bottom: 1px solid #EFEFEF;
}

tr.sectiontableentry2 td {
	padding: 3px 4px;
	border-bottom: 1px solid #EFEFEF;
	background: #F7F7F7;
}

ul {
	margin: 10px;
	padding: 0;
	list-style: none;
}

ul li {
	padding-left: 12px;
	background: url(../images/arrow.png) no-repeat 0 6px;
	line-height: 140%;
}

ul#mainlevel li, ul#mainlevel-nav li {
	padding: 0;
	margin: 0;
	background: none;
}

.adminform textarea {
	width: 540px!important; /*Control the Frontend Editor area width*/
}

.adminform textarea.inputbox {
	width: 440px!important; /*Control the Frontend Editor area width*/
}

.article_seperator {
	display: block;
	background: url(../images/seperator.gif) repeat-x top left;
}

.back_button {
	margin-top: 12px;
	width: 100%;
	display: block;
	text-align: right;
}

.back_button a {
	color: #666666;
}

.banner {
	float: right;
	position: relative;
	top: 12px;
	right: 12px;
}

.barshadow {
	padding: 2px;
	margin: 0;
	background: url(../images/shadow.gif);
}

.blog_more {
	margin: 10px 0;
	padding: 3px;
}

.button {
	padding: 0 3px 0 3px;
	border: 1px solid #999999;
	margin-bottom: 2px;
	background: url(../images/but-bg.gif) bottom #EFEFEF;
	color: #FFFFFF;
	font: 11px Arial, sans-serif;
}

.category {
	font-weight: bold;
	font-size: 12px;
}

.code, pre {
	border: 1px solid #F0EEDE;
	width: auto;
	padding: 6px;
	background: #F7F6EE;
	font: 11px Arial, sans-serif;
}

.componentheading {
	padding: 5px 6px;
	margin-bottom: 12px;
	color: #FFFFFF;
	background: url(../images/navbar-bg.gif) #024AA6;
	font-weight: bold;
	text-transform: UPPERCASE;
}

.contentdescription {
	padding: 0 0 12px!important;
	height: auto;
}

.contentheading {
	color: #666666;
	font-size: 18px;
	font-weight: bold;
}

.createdate {
	padding-bottom: 10px!important;
	color: #666666;
	font-weight: bold;
}

.error {
	color: #B91919;
}

.highlight {
	font-weight: bold;
}

.inputbox {
	padding-left: 2px;
	margin-bottom: 1px;
	font: 11px Arial, sans-serif;
}

.message {
	color: #EF9C10;
	font-weight: bold;
	font-size: 11px;
}

.modifydate {
	color: #666666;
	height: 20px;
}

.mosimage {
	padding: 0;
	margin-right: 5px;
}

.mosimage img {
	margin: 0 6px 0 0!important;
	margin: 0 0 0 -6px;
}

.mosimage_caption {
	margin-top: 2px;
	color: #999999;
}

.pagenav {
	padding: 2px;
}

.pagenav_prev a, .pagenav_next a {
	color: #666666;
}

.pagenav_prev a:hover, .pagenav_prev a:active, .pagenav_next a:hover, .pagenav_next a:active {
	color: #B91919;
	text-decoration: none;
}

.pagenavbar {
	padding-left: 16px;
	background: url(../images/pages-icon.gif) no-repeat center left;
	font-weight: bold;
}

.pagenavcounter {
	padding: 0 16px 10px 16px;
	color: #666666;
	background: url(../images/pages-icon.gif) no-repeat 0 3px;
	font-weight: bold;
}

.search input {
	width: 98%;
}

.sectiontablefooter {
	padding-bottom: 3px!important;
	height: 20px;
}

.sectiontableheader {
	padding: 3px 4px!important;
	border-top: 1px solid #EFEFEF;
	border-bottom: 1px solid #EFEFEF;
	background: url(../images/h3-bg.gif) #666666;
	color: #666666;
	font-weight: bold;
}

.sectiontableheader a, .sectiontableheader a:hover {
	color: #FFFFFF;
}

.small {
	color: #666666;
}

#container {
	width: 770px;
	margin: 0 auto;
	padding: 0;
	border: 1px solid #666666;
	background: #F7F7F7;
	text-align: left;
}

#content {
	float: left;
	width: 545px!important;
	width: 557px;
	padding: 6px 6px;
	border-top: 1px solid #EFEFEF;
	border-right: 1px solid #DDDDDD;
	border-bottom: 1px solid #DDDDDD;
	border-left: 1px solid #EFEFEF;
	display: inline;
	background: #FFFFFF;
}

#content table.pollstableborder {
	width: 540px!important;
	border: none;
	text-align: left;
}

#copyright {
	padding: 5px 10px 5px;
	margin: 0 auto;
	width: 770px;
	text-align: left;
}

#copyright a {
	color: #222222;
}

#footer {
	padding: 8px 6px 8px 0;
	clear: both;
	margin-top: 12px;
	color: #ABABAB;
	background: #084DAD;
	text-align: left;
}

#footer a {
	padding: 0 10px;
	border-right: 1px solid #1A5CB1;
	color: #B0CAEB;
}

#footer a:hover, #footer a:active {
	color: #FFFFFF;
}

#footer li {
	padding: 0;
	display: inline;
	background: none;
	line-height: normal;
}

#header {
	width: 100%;
	background: url(../images/header_bg.jpg) #024AA6;
	height: 80px;
	position: relative;
}

#main {
	width: 100%;
	margin: 10px;
}

#pathway {
	margin: 0;
	padding: 5px 6px 3px 12px;
	border-bottom: 2px solid #CCCCCC;
	background: url(../images/subnav_bg.gif) #024AA6;
	color: #222222;
	font-size: 11px;
}

#pathway a {
	padding-right: 13px;
	background: url(../images/arrow-off.gif) no-repeat 100% 60%;
	color: #666666;
}

#pathway a:hover, #pathway a:active {
	background: url(../images/arrow-on.gif) no-repeat 100% 60%;
	color: #222222;
	text-decoration: none;
}

#pathway img {
	visibility: hidden; /* DO NOT SHOW PATHWAY DEFAULT ARROW */
}

#rightcol {
	width: 180px;
	float: left;
	margin-left: 10px;
}

#rightcol a.mainlevel {
	padding-left: 12px;
	background: url(../images/arrow.png) no-repeat 0 5px;
}

#rightcol ul, div.moduletable-orange ul, div.moduletable-green ul, div.moduletable-blue ul {
	padding: 0;
	margin: 0;
}

#topnav {
	border-top: 1px solid #1A5CB1;
	padding: 4px 0;
	background: url(../images/navbar-bg.gif) repeat-x top #024AA6;
	font-size: 12px;
	text-align: left;
}

#topnav a {
	border-right: 1px solid #1A5CB1;
	padding: 6px 12px 5px 12px;
	color: #FFFFFF;
	font-weight: bold;
	text-transform: UPPERCASE;
}

#topnav a#active_menu-top {
	color: #EF9403;
	text-decoration: none;
}

#topnav a:hover, #topnav a:active {
	color: #EF9C10;
	text-decoration: none;
}

#topnav li {
	padding: 0;
	display: inline;
	background: none;
}

#topnav ul, #footer ul {
	margin: 0;
	padding: 0;
}

#overDiv {
	border: 1px solid #C64934;
}

#user-bar {
	float: right;
}

#user-bar a {
	background-image: none;
	padding: 0;
	margin-right: 8px;
}

#user-bar a:hover, #user-bar a:active {
	background-image: none;
}

.clearfix:after {
	content: "."; 
	display: block; 
	height: 0; 
	clear: both; 
	visibility: hidden;
}
 
.clearfix {display: inline-table;}

/* Hides from IE-mac \*/
* html .clearfix{height: 1%;}
.clearfix {display: block;}
/* End hide from IE-mac */

jcisio
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 223
Joined: Mon Apr 16, 2007 2:33 pm
Contact:

Re: Canh chỉnh 2 bài viết

Post by jcisio » Mon Nov 26, 2007 2:06 pm

Vào menu chỉnh số lượng, số cột của heading intro link gì đấy.
http://www.thongtincongnghe.com/ - Thông tin công nghệ
Trang tin điện tử về CNTT, Điện tử, Viễn thông.


Locked

Return to “Thiết kế Template”