Css #2928
              
  
  Closed
              
          
                  
                    
                      himstar-31
                    
                  
                
                  started this conversation in
                General
              
            
            
              Css
            
            #2928
          
          
        Replies: 0 comments
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
-
body {
margin: 0;
font-family: 'Inter', sans-serif;
background-color: #f5f7fa;
color: #222;
}
.header {
background: #1f2937;
color: white;
padding: 1rem;
}
.nav-container {
display: flex;
justify-content: space-between;
align-items: center;
max-width: 1200px;
margin: auto;
}
.nav-menu {
list-style: none;
display: flex;
gap: 1rem;
}
.nav-menu li a {
color: white;
text-decoration: none;
}
.hero {
background: linear-gradient(to right, #111827, #2563eb);
color: white;
text-align: center;
padding: 4rem 1rem;
}
.news-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 1.5rem;
padding: 2rem;
}
.news-card {
background: white;
border-radius: 8px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
overflow: hidden;
transition: transform 0.2s;
}
.news-card:hover {
transform: translateY(-5px);
}
.news-card img {
width: 100%;
height: 180px;
object-fit: cover;
}
.news-card h3 {
padding: 1rem;
font-size: 1.1rem;
}
Beta Was this translation helpful? Give feedback.
All reactions