<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Technology News</title>
<style>
/* Global Styles */
html,
body {
margin: 0;
padding: 0;
width: 100%;
overflow-x: hidden;
box-sizing: border-box;
}
body {
font-family: Arial, sans-serif;
background-color: #f5f5f5;
color: #333;
}
/* Navigation */
nav {
background-color: #1c1c1c;
color: white;
padding: 5px 0;
/* Reduced padding to remove extra space */
width: 100%;
text-align: center;
position: fixed;
top: 0;
z-index: 100;
left: 0;
}
nav ul {
list-style: none;
display: flex;
margin: 0;
padding: 0;
justify-content: center;
}
nav ul li {
margin: 0 15px;
/* Space between items */
white-space: nowrap;
}
nav ul li a {
color: white;
text-decoration: none;
font-size: 1rem;
text-transform: uppercase;
}
nav ul li a:hover {
color: #f39c12;
}
/* Hero Section */
.hero {
background-color: #3498db;
color: white;
padding: 40px 20px;
text-align: center;
width: 100%;
margin-top: 60px;
/* To prevent content from being hidden behind fixed nav */
}
.hero h1 {
font-size: 2rem;
margin-bottom: 20px;
word-wrap: break-word;
text-align: center;
/* Ensure proper centering */
margin: 0 auto;
}
.hero p {
font-size: 1rem;
margin-bottom: 15px;
word-wrap: break-word;
}
.hero button {
background-color: #f39c12;
border: none;
padding: 10px 30px;
color: white;
font-size: 1rem;
cursor: pointer;
}
/* Categories Section */
.categories {
display: grid;
grid-template-columns: 1fr;
gap: 20px;
margin: 20px 10%;
text-align: center;
}
.category {
background-color: #3498db;
color: white;
padding: 30px;
border-radius: 8px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
text-align: center;
}
.category h3 {
font-size: 1.6rem;
}
/* Featured Articles Section */
.featured-articles {
display: grid;
grid-template-columns: 1fr;
gap: 20px;
margin: 20px 10%;
}
.featured-articles .article {
background-color: #fff;
padding: 20px;
border-radius: 8px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.featured-articles .article img {
width: 100%;
border-radius: 8px;
}
.featured-articles .article h3 {
font-size: 1.6rem;
margin-top: 20px;
}
.featured-articles .article p {
font-size: 1rem;
color: #555;
}
.featured-articles .article a {
display: inline-block;
margin-top: 15px;
color: #f39c12;
text-decoration: none;
font-weight: bold;
}
/* Footer */
footer {
background-color: #1c1c1c;
color: white;
text-align: center;
padding: 20px;
width: 100%;
}
/* Responsive Design for Mobile */
@media (max-width: 768px) {
/* Mobile Navigation (scrolling effect) */
nav ul {
display: flex;
flex-wrap: nowrap;
/* Prevent wrapping of items */
justify-content: flex-start;
overflow-x: auto;
/* Allow horizontal scroll */
animation: scrolling 20s linear infinite;
/* Add scrolling animation */
}
nav ul li {
margin: 0 15px;
white-space: nowrap;
}
/* Scrolling Effect */
@keyframes scrolling {
0% {
transform: translateX(100%);
}
100% {
transform: translateX(-100%);
}
}
/* Categories Section (adjust layout for mobile) */
.categories {
grid-template-columns: 1fr;
margin: 0;
}
.category {
padding: 20px;
font-size: 1rem;
}
/* Hero Section - Mobile Fix for Overflow */
.hero {
padding: 40px 20px;
margin-top: 0;
/* Remove top margin */
}
.hero h1,
.hero p {
word-wrap: break-word;
font-size: 1.5rem;
/* Adjust size for better mobile fit */
}
/* Featured Articles Section */
.featured-articles {
grid-template-columns: 1fr;
}
}
</style>
</head>
<body>
<!-- Navigation (Header Section) -->
<nav>
<ul class="menu">
<li><a href="#">Home</a></li>
<li><a href="#">Technology</a></li>
<li><a href="#">News</a></li>
<li><a href="#">Reviews</a></li>
<li><a href="#">Contact</a></li>
</ul>
</nav>
<!-- Hero Section -->
<section class="hero">
<h1>Welcome to Technology News</h1>
<p>Stay updated with the latest trends, innovations, and insights in the tech world.</p>
<button>Explore More</button>
</section>
<!-- Categories Section -->
<section class="categories">
<div class="category">
<h3>Artificial Intelligence</h3>
</div>
<div class="category">
<h3>Cybersecurity</h3>
</div>
<div class="category">
<h3>Blockchain</h3>
</div>
<div class="category">
<h3>Cloud Computing</h3>
</div>
<div class="category">
<h3>Augmented Reality</h3>
</div>
</section>
<!-- Featured Articles Section -->
<section class="featured-articles">
<div class="article">
<img src="https://via.placeholder.com/350x200" alt="Article Image">
<h3>AI in the Future of Technology</h3>
<p>Artificial Intelligence is poised to change the way we live and work. Explore how it will shape our
future.</p>
<a href="#">Read more</a>
</div>
<div class="article">
<img src="https://via.placeholder.com/350x200" alt="Article Image">
<h3>The Rise of Electric Cars</h3>
<p>Electric vehicles are becoming more mainstream. What’s next for the electric car industry?</p>
<a href="#">Read more</a>
</div>
<div class="article">
<img src="https://via.placeholder.com/350x200" alt="Article Image">
<h3>5G Technology: What’s All the Buzz?</h3>
<p>5G is transforming mobile communication. Let’s take a closer look at what it means for us.</p>
<ul>
<a href="https://ziyuansolar.com"></a>
<a href="https://tesla-polska.pl"></a>
<a href="https://porody-swissmed.pl"></a>
<a href="https://richblackjack.uk"></a>
<a href="https://pokertournaments2022.uk"></a>
<a href="https://pokeronlinevegas.uk"></a>
<a href="https://playpokergame.uk"></a>
<a href="https://pokeronlinemacao.uk"></a>
<a href="https://blackjackpot.uk"></a>
<a href="https://rouletteonline88.uk"></a>
<a href="https://baccaratonlinevegas.uk"></a>
<a href="https://infintydragonstudios.uk"></a>
<a href="https://shopifyadvertorialtemplates.com">Shopify Advertorial Template</a>
<a href="https://mcgiftgiftcardmall.co"></a>
<a href="https://headquarterscomplaints.com"></a>
<a href="https://i-tv.me"></a>
<a href="https://shorelineboatrentals.ca"></a>
<a href="https://techopediahub.com"></a>
<a href="https://estateprimezone.com"></a>
<a href="https://maghubworld.com"></a>
<a href="https://powermovemag.com"></a>
<a href="https://techcoreinfo.com"></a>
<a href="https://technolugic.com"></a>
<a href="https://helpsfortech.com"></a>
<a href="https://murerpriser.dk"></a>
<a href="https://elektrikerpriser.dk"></a>
<a href="https://gulvpriser.dk"></a>
<a href="https://scooterforsikring.dk"></a>
<a href="https://wian.top"></a>
<a href="https://bomba.lviv.ua"></a>
<a href="https://bettercaremarket.com.au"></a>
<a href="https://minkycm.pl"></a>
<a href="https://pharmasito.com"></a>
<a href="https://healthfitnesslove.com"></a>
<a href="https://goodmatesremovals.com.au"></a>
<a href="https://goldstarpools.com.au"></a>
<a href="https://lopesconcreteservices.com.au"></a>
</ul>
<a href="#">Read more</a>
</div>
</section>
<!-- Footer -->
<footer>
<p>© 2025 Technology News. All rights reserved.</p>
</footer>
</body>
</html>