Khác biệt giữa các bản “Bản mẫu:Mặt trăng/styles.css”
Dòng 5: Dòng 5:
 
   position: relative;  
 
   position: relative;  
 
}
 
}
a.new:link {
+
.head-text {
 +
  padding: 20px 40% 10% 20px;
 +
  top: 0px;
 +
  text-align:justify;
 +
  background-image: linear-gradient(to left, rgba(0, 0, 0, 0), rgba(0, 0, 0, 1));
 +
  width: 50%;
 +
  color: white;
 +
}
 +
.head a.new:link {
 
   color: #e0c7fc !important;
 
   color: #e0c7fc !important;
 
}
 
}
a.new:visited {
+
.head a.new:visited {
 
   color: #e0c7fc !important;
 
   color: #e0c7fc !important;
 
}
 
}
a.new:hover {
+
.head a.new:hover {
 
   color: #eacffd !important;
 
   color: #eacffd !important;
 
}
 
}
a.new:active {
+
.head a.new:active {
 
   color: #e0c7fc !important;
 
   color: #e0c7fc !important;
 
}
 
}
 +
@media only screen and (max-width: 1100px) {
 
.head-text {
 
.head-text {
  padding: 20px 40% 10% 20px;
+
   width: 100%;
  top: 0px;
+
}
  text-align:justify;
 
  background-image: linear-gradient(to left, rgba(0, 0, 0, 0), rgba(0, 0, 0, 1));
 
   width: 50%;
 
  color: white;
 
 
}
 
}

Phiên bản lúc 11:25, ngày 17 tháng 11 năm 2020

.head {
  background-image: url(https://upload.wikimedia.org/wikipedia/commons/thumb/5/57/NASA-Apollo8-Dec24-Earthrise-b.jpg/1024px-NASA-Apollo8-Dec24-Earthrise-b.jpg);
  background-size: cover;
  width: 100%;
  position: relative; 
}
.head-text {
  padding: 20px 40% 10% 20px;
  top: 0px;
  text-align:justify;
  background-image: linear-gradient(to left, rgba(0, 0, 0, 0), rgba(0, 0, 0, 1));
  width: 50%;
  color: white;
}
.head a.new:link {
  color: #e0c7fc !important;
}
.head a.new:visited {
  color: #e0c7fc !important;
}
.head a.new:hover {
  color: #eacffd !important;
}
.head a.new:active {
  color: #e0c7fc !important;
}
@media only screen and (max-width: 1100px) {
.head-text {
  width: 100%;
}
}