PDA

View Full Version : کمک در مورد stylesheet



amirheavy666
پنج شنبه 12 اسفند 1389, 13:54 عصر
سلام این کد style سایت من است چگونه می شه زیر خط نوشته ها حذف شه یا رنگ فونتم عوض شه ؟
html {
overflow: -moz-scrollbars-vertical;
margin: 0;
padding: 0;
}
* {
font-family: Helvetica;
}
body {
margin: 0px;
padding: 0px;
text-align: center;
background: #qqqqqq;
color: #000000;
}
body, td, th, input, textarea, select, a {
font-size: 18px;
}
form {
padding: 0;
margin: 0;
display: inline;
}
input, textarea, select {
margin: 3px 0px;
}
a, a:visited {
color: #6E212E;
text-decoration;
cursor: pointer;
}
a:hover {
text-decoration: none;
}
a img {
border: none;
}
p {
margin-top: 0px;
}
/* layout */
#container {
width: 960px;
margin-left: auto;
margin-right: auto;
text-align: left;
background: #eeeeee;
margin-bottom: 10px;
}
#header {
position: relative;
background: #eeeeee;
direction: rtl;
text-align: right;
width: 960px;
}
#header .div1 {
height: 97px;
background: #eeeeee;
}
#header .logo {
position: relative;
top: 21px;
right: 17px;
float: right;
background: #eeeeee;
width: 150px;
}
#header .search {
background: url('../image/search.png') no-repeat;
width: 250px;
height: 62px;
position: absolute;
top: 15px;
left: 35px;
padding-top: 5px;
padding-left: 17px;
background: #eeeeee;
}
#header .menu {
padding-left: 0px;
padding-right: 0px;
height: 23px;
}
#header .menu img {
float: right;
margin-left: 5px;
}
#header .menu a {
padding: 7px 18px 7px 0px;
display: inline-block;
color: #eeeeee;
text-decoration: none;
font-size: 13px;
font-family: Tahoma, Verdana, Geneva, sans-serif;
background: url('../image/menu_right.png') no-repeat right 7px;
height: 23px;
text-align: right;
direction: rtl;
margin: 0;
}
#header .menu a span {
background: url('../image/menu_left.png') no-repeat;
display: inline-block;
padding: 7px 0 7px 18px;
margin: 0;
}
#header .left a {
float: left;
margin-left: 0px;
margin-right: 3px;
}
#header .right a {
float: right;
margin-left: 3px;
margin-right: 0px;
}
#contentContainer{
float: left;
width: 960px;
margin:0px 0px 0px 0px;
background: #9AB54F url('../image/contentContainerBg.jpg') repeat-x;
border: 1px #bababa solid;
}
#breadcrumb {
padding-top: 8px;
padding-bottom: 10px;
padding-right: 10px;
text-align: right;
direction: rtl;
}
#column_left {
float: left;
width: 180px;
margin-right: 5px;
padding-left:5px;
text-align: right;
direction: rtl;
}
#column_right {
float: right;
width: 180px;
margin-left: 5px;
padding-right:5px;
text-align: right;
direction: rtl;
}
#content {
float: left;
width: 750px;
margin-bottom: 10px;
text-align: right;
margin-left: 10px;
direction: rtl;
}
#content .top {
padding: 8px 10px 6px 0px;
background: url('../image/content_top.png') no-repeat;
}
#content .top h1, .heading {
color: #eeeeee;
font-size: 14px;
font-family: Tahoma, Arial, Helvetica, sans-serif;
font-weight: bold;
text-transform: uppercase;
margin: 0px;
}
.heading {
color: #6E212E;
border-bottom: 1px solid #6E212E;
padding-bottom: 3px;
margin-bottom: 10px;
}
#content .middle {
border-left: 1px solid #DDDDDD;
border-right: 1px solid #DDDDDD;
background: #FFFFFF;
padding: 10px 10px 1px 10px;
min-height: 380px;
}
#content .bottom {
background: url('../image/content_bottom.png') no-repeat;
height: 5px;
}
.box {
margin-bottom: 10px;
background: url('../image/box_top.png') no-repeat;

}
.box .top {
padding: 8px 7px 6px 0px;
color: #eeeeee;
font-size: 14px;
font-family: Tahoma, Arial, Helvetica, sans-serif;
font-weight: bold;
text-transform: uppercase;
}
.box .middle select,.box .middle input {
width: 150px;
}
.box .top img {
float: right;
margin-left: 5px;
}
.box .middle {
border-left: 1px solid #DDDDDD;
border-right: 1px solid #DDDDDD;
background: #E3D185;
padding: 10px;
color: #000000;
}
.box .bottom {
height: 5px;
background: url('../image/box_bottom.png') no-repeat;
}
.success {
padding: 5px 0px;
margin-bottom: 10px;
background: #E4F1C9;
border: 1px solid #A5BD71;
font-size: 11px;
font-family: Tahoma, Verdana, Geneva, sans-serif;
text-align: center;
}
.warning {
padding: 5px 0px;
margin-bottom: 10px;
background: #FFDFE0;
border: 1px solid #FF9999;
font-size: 11px;
font-family: Tahoma, Verdana, Geneva, sans-serif;
text-align: center;
}
.wait {
padding: 5px 0px;
margin-bottom: 10px;
background: #FBFAEA;
border: 1px solid #EFEBAA;
font-size: 11px;
font-family: Tahoma, Verdana, Geneva, sans-serif;
text-align: center;
}
.required {
color: #FF0000;
font-weight: bold;
}
.error {
color: #FF0000;
display: block;
}
.help {
cursor: pointer;
}
.tooltip {
border: 1px solid #FDDA5C;
background: #FBFF95;
padding: 5px;
font-size: 11px;
width: 250px;
}
.clear { /* generic container (i.e. div) for floating buttons */
overflow: hidden;
width: 100%;
}
a.button {
background: transparent url('../image/button_right.png') no-repeat scroll top right;
color: #550000;
display: inline-block;
font: normal 12px Tahoma, arial, sans-serif;
height: 25px;
margin-right: 6px;
padding-right: 18px; /* sliding doors padding */
text-decoration: none;
}
a.button span {
background: transparent url('../image/button_left.png') no-repeat;
display: inline-block;
padding: 5px 0 5px 18px;
text-align: right;
direction: rtl;
}
.buttons {
background: #F8F8F8;
border: 1px solid #DDDDDD;
margin-bottom: 10px;
clear: both;
padding: 5px;
}
.buttons input {
padding: 0px;
margin: 0px;
}
.buttons table {
width: 100%;
border-collapse: collapse;
}
.buttons table td {
vertical-align: middle;
}
.list {
width: 100%;
margin-bottom: 10px;
}
.list td {
text-align: center;
vertical-align: top;
padding-bottom: 10px;
}
.sort {
margin-bottom: 10px;
background: #F8F8F8;
height: 30px;
width: 100%;
}
.sort .div1 {
float: right;
margin-left: 5px;
padding-top: 6px;
padding-right: 9px;
}
.sort .div2 {
text-align: right;
padding-top: 9px;
}
.sort select {
font-size: 11px;
margin: 0;
padding: 0;
}
.pagination {
display: inline-block;
width: 100%;
background: #F8F8F8;
margin-bottom: 10px;
}
.pagination .links, .pagination .results {
padding: 7px;
}
.pagination .links {
float: left;
}
.pagination .links a {
border: 1px solid #CCCCCC;
padding: 4px 7px;
text-decoration: none;
color: #000000;
}
.pagination .links b {
border: 1px solid #CCCCCC;
padding: 4px 7px;
text-decoration: none;
color: #000000;
background: #FFFFFF;
}
.pagination .results {
float: right;
}
.tabs {
display: block;
width: 100%;
margin-bottom: 0px;
direction: rtl;
text-align: right;
}
.tabs a {
float: right;
display: block;
padding: 6px 15px 7px 15px;
margin-right: 2px;
border-top: 1px solid #DDDDDD;
border-bottom: 1px solid #DDDDDD;
border-left: 1px solid #DDDDDD;
border-right: 1px solid #DDDDDD;
background: #FFFFFF url('../image/tab.png') repeat-x;
color: #000000;
font-weight: bold;
font-size: 13px;
text-decoration: none;
z-index: 1;
position: relative;
top: 1px;
}
.tabs a.selected {
background: #FFFFFF url('../image/tab.png') repeat-x;
border-bottom: 0px;
padding-bottom: 8px;
z-index: 3;
}
.page {
border: 1px solid #DDDDDD;
background: #FFFFFF;
display: inline-block;
padding: 10px;
display: block;
width: 536px;
clear: both;
z-index: 2;
margin-bottom: 10px;
}
#footer {
width: 100%;
clear: both;
padding: 5px;
border-top: 2px solid #eeeeee;

}
#footer .left {
float: left;
text-align: left;
margin-left: 10px;
margin-top: 10px;
margin-bottom: 10px;
}
#footer .middle {
float: left;
width: 580px;
text-align: center;
margin: 0px 5px 0px 5px;
padding-top: 7px
}
#footer .right {
float: right;
text-align: right;
margin-right:10px;
direction: rtl;
margin-left: 10px;
margin-top: 10px;
margin-bottom: 10px;
}
#category ul {
margin-top: 0px;
margin-bottom: 0px;
margin-right: 8px;
padding-right: 12px;
list-style: url('../image/bullet_1.png');
}
#information ul {
margin-top: 0px;
margin-bottom: 0px;
margin-right: 8px;
padding-right: 12px;
list-style: url('../image/bullet_2.png');
}
.cart {
border-collapse: collapse;
margin-bottom: 10px;
width: 100%;
border: 1px solid #EEEEEE;
}
.cart th {
background: #EEEEEE;
padding: 5px;
font-weight: normal;
}
.cart td {
padding: 5px;
}

Javad.Kashi
پنج شنبه 12 اسفند 1389, 14:17 عصر
سلام
همانطور که در کد های شما نوشته شده است از text-decoration برای برداشتن خط زیر متن استفاده می شود و برای رنگ متن از کد color استفاده می شود.


a{
text-decoration:none;
color:blue;
}

یا علی

raika17metal
جمعه 13 اسفند 1389, 14:03 عصر
a:hover{background-color:red}