Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

My Code

Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 3

<!

DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Health Blog</title>
<style>
body {
font-family: Arial, sans-serif;
background-color: #f4f4f4;
margin: 0;
padding: 0;
}

.top-stories {
margin: 20px;
padding: 20px;
background-color: rgba(255, 255, 255, 0.9); /* White background with
transparency */
border-radius: 10px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

h2 {
color: #1d3557;
}

.story-container {
display: flex;
align-items: center;
gap: 20px;
margin-top: 10px;
}

.story-container img {
max-width: 100%;
height: auto;
border-radius: 10px;
}

.story-content h3 {
margin: 0;
color: #1d3557;
}

.story-content p {
margin-top: 5px;
color: #555;
}

@media (max-width: 768px) {


.story-container {
flex-direction: column;
align-items: flex-start;
}

.story-container img {
width: 100%;
max-width: 500px;
}
}
</style>
</head>
<body>
<div class="top-stories">
<h2>TODAY'S TOP STORIES</h2>
<div class="story-container">
<img src="C:\Users\User\Downloads\Is It Safe for Cancer Patients t.png"
alt="
Is It Safe for Cancer Patients to Drink Tea?">
<div class="story-content">
<h3>
Is It Safe for Cancer Patients to Drink Tea?</h3>
<p>Discover if tea is safe for cancer patients. Learn about the
benefits and potential risks, and find out why consulting your healthcare team is
essential for personalized advice.</p>
</div>
</div>
</div>
</body>
</html>

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Is It Safe for Cancer Patients to Drink Tea?</title>
<style>
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
background-color: #f4f4f4;
}
.container {
max-width: 1200px;
margin: 0 auto;
padding: 20px;
}
.top-stories {
background-color: white;
padding: 20px;
border-radius: 8px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.top-stories h1 {
font-size: 24px;
color: #333;
margin-bottom: 20px;
}
.top-story-item {
display: flex;
align-items: center;
gap: 20px;
}
.top-story-item img {
width: 400px;
height: 200px;
object-fit: cover;
border-radius: 8px;
}
.top-story-content {
max-width: 600px;
}
.top-story-content h2 {
font-size: 20px;
color: #2a5dce;
margin: 0 0 10px;
}
.top-story-content p {
font-size: 16px;
color: #666;
margin: 0;
}
</style>
</head>
<body>
<div class="container">
<div class="top-stories">
<h2>TODAY'S TOP STORIES</h2>
<div class="top-story-item">
<img
src="https://healthylivingloom.weebly.com/uploads/1/4/9/6/149630375/is-it-safe-for-
cancer-patients-to-drink-tea_orig.png" alt="Is It Safe for Cancer Patients to Drink
Tea?">
<div class="top-story-content">
<h1>Is It Safe for Cancer Patients to Drink Tea?</h1>
<p>Discover the potential benefits and risks of tea for cancer
patients, and learn how to make informed decisions about including tea in your diet
during treatment.</p>
</div>
</div>
</div>
</div>
</body>
</html>

You might also like