سلام ببخشید من کدهای که در html.cssنوشتم را نمیتونم در مرورگر ببینم کد ها کاملا درسته و سیو میکنم، رفرشم انجام میدم ولی کد هارو باز نمی کنه؟
سلام وقت بخیر برای اجرای شدن هر کد با هر زبانی باید یک IDE مورد نیاز رو نصب کنید برای مثال شما برای این مشکلتون از +notpad شاید استفاده کنید و اجرا کردن کد منوط به انتخاب پسوند فایلتوون هست برای مثال فایل html باید یک نام و پسوند داشته باشد
index.html یک نام با پسوند کامل برای شناسایی بهتر سیستم عامل شماست
شاید پاسخ شما همینجا باشد
من هم live severرو نصب کردم و هم پسوند فایل index هستش به اینترنتم وصلم؟
کدت رو بزار شاید یه مشکلی داشته باشه
body{
font-family:Arial;
background-color: black;
font-size: 10px;
}
.header{
background-color: rgb(193, 113, 7);
color: white;
border-radius: 10px;
padding: 10px;
font-size: 2em;
}
.mean{
color: white;
margin-left: 10px;
font-size: 1.\*\*\*;
}
.luno{
background-color: rgb(168, 111, 5);
color: black;
padding: 0px;
display: flex;
width: auto;
justify-content: stretch;
align-items: stretch;
margin: 10px;
font-size: 2.5em;
}
.luno a{
text-decoration: none;
color: black;
}
.ul2 li{
margin: 0px;
padding: 0px;
border-bottom: 2px solid black;
}
.ul2{
margin: 0px;
padding: 0px;
}
.ul2 li:hover{
background-color: black;
color: white;
}
.ul2 li a:hover{
color: white;
}
.buy{
display: grid;
width: 100%;
grid-template-columns: repeat(3,1fr);
text-align: center;
font-size: 2.3em;
}
.buy img{
width: 63%;
height: 63%;
border-radius: 10px;
}
.buy a{
text-decoration: none;
color: black;
}
.buy a:hover{
background-color: black;
color: white;
padding: 10px;
border-radius: 10px;
}
.buy1{
background-color: rgb(198, 140, 4);
margin: 10px;
align-items: center;
padding: 20px 0px;
box-shadow: 7px 7px 15px white;
}
.buy2{
margin: 10px;
background-color: rgb(198, 140, 4);
padding: 20px 0px;
box-shadow: 7px 7px 15px white;
}
.buy3{
margin: 10px;
background-color: rgb(198, 140, 4);
padding: 20px 0px;
box-shadow: 7px 7px 15px white;
}
.li a{
color: white;
text-decoration: none;
}
.li{
display: inline;
padding-right: 10px;
}
.li:hover{
border: 1px solid black;
background-color: black;
padding: 5px;
border-radius: 10px;
}
.ul{
display: flex;
justify-content: flex-start;
padding-right: 30px;
}
.ul2 li{
padding: 10px;
list-style-type: none;
}
.luno{
border-radius: 10px;
}
body{
display: grid;
/*8grid-template-areas:
"h h h h h h"
"l l l m m m"
"b b b b b b"
;*/
grid-template-columns: repeat(auto-fit,minmax(100px,1fr));
grid-template-rows: 150px auto auto auto;
}
.header{
grid-column: 1/-1;
grid-row: 1/2;
/ *grid-area: h ;*/
}
.luno{
grid-row: 2/3;
grid-column: 1/3;
/*grid-area: l ;*/
}
.mean{
grid-column:3 /-1;
/ *grid-area: m ;*/
}
.buy{
grid-row: 3/4;
grid-column: 1/-1;
/ *grid-area: b ;*/
}
.footer{
color: black;
background-color: rgb(107, 81, 25);
font-size: 2em;
margin:10px 0px;
padding: 5p ;
grid-column: 1/-1;
}همش رو بذار نه فقط سی اس اس رو
@Mohammad.it
پسوند فایل html باید باشه یا htm