-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathnews_style.css
More file actions
49 lines (42 loc) · 836 Bytes
/
news_style.css
File metadata and controls
49 lines (42 loc) · 836 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/* Basic styles for the news grid */
.news-grid {
display: grid;
gap: 20px; /* Gap between articles */
}
/* Style for each news article */
.news-article {
border: 1px solid #ccc;
padding: 10px;
margin-right: 20px;
margin-left: 20px;
background: #eaeaea;
text-align: left;
grid-template-columns: repeat(3, 1fr);
}
.news-title {
font-size: 20px;
font-weight: bold;
}
.news-content {
font-size: 16px;
}
.news-source {
font-size: 14px;
color: #555;
}
.news-url {
font-size: 14px;
color:blue;
}
/* Styles for news articles (medium screens) */
@media screen and (max-width: 992px) {
.news-article {
grid-template-columns: repeat(2, 1fr);
}
}
/* Styles for news articles (small screens) */
@media screen and (max-width: 768px) {
.news-article {
grid-template-columns: repeat(1, 1fr);
}
}