Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7886979
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T05:27:36+00:00 2026-06-03T05:27:36+00:00

I am new to html 5 and I am learning this, the problem which

  • 0

I am new to html 5 and I am learning this, the problem which i faced is section is not applying my given class I dont know what is the problem.

<!DOCTYPE html>
<html lang="en">

<head>
    <link rel="stylesheet" href="css/style.css">

</head>
<body>
    <header role="banner">
        <hgroup class="main_container">
        <h1 id="logo"></h1>
        </hgroup>
        </header>
    <nav>
        <ul class="main_container">
            <li><a href="#">Home</a></li>
            <li><a href="#">News</a></li>
            <li><a href="#">Initatives</a></li>
            <li><a href="#">Publications</a></li>
            <li><a href="#">Green Homes</a></li>
            <li><a href="#">Renewble Energy</a></li>
            <li><a href="#">Global Warming</a></li>
            <li><a href="#">Lives</a></li>
        </ul>
    </nav>
    <section class="main_container">
        <h1>Why this kolaveri dee? </h1>
    </section>  
</body>
</html>

======css====

    body
{
    margin:0;
    background:#F6F5F1;
    font-family:Geneva, Arial, Helvetica, sans-serif;

}
h1
{
    margin:0;
}
.main_container
{
    width:950px;
    margin:0 auto;
}
header
{
    background:#fdf7e7;
    padding:10px;
}
#logo
{
    background:url(../images/logo.jpg);
    height:72px;
    width:302px;
}
nav
{
    background:#e9ebb0;
    height:41px;
    border-bottom:1px solid #c4c297;
}
nav ul
{
    list-style:none;
    background:#577a70;
    height:31px;
    text-align:center;
    margin:0;
    padding-top:10px;
    border-bottom:1px solid #3c4852;
}
nav ul li
{
    float:left;

}
nav a
{
    text-decoration:none;
    color:#ffffff;
    padding:0 20px 0 0;
    margin-right:20px;
    border-right:1px dotted white;
}
nav li:last-child a
{

    border-right:none;
}
nav a:hover
{
    color:#FFFF33;
}
section
{
    height:200px;
    clear:both;
    padding:0;
    margin:0 auto;
    width:950px;
    background:#577a70;

}

enter image description here

jsfiddle link > http://jsfiddle.net/LNAcV/5/

Edit : Everyone thanks for the help i restructured the whole thing and did not found the same issue again. something was wrong in my code I guess now its working fine.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T05:27:38+00:00Added an answer on June 3, 2026 at 5:27 am

    Add
    padding:0;
    to the main_container class.

    The problem are the generyc styles of the browser

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

$(#write).click(function(){ $(#msg).$('#quote').html(); }); I am learning jquery (new to js as well). This function
I am very new to MVC. I've been learning to use plain HTML or
As you know HTML5 introduced some new html tag, like footer,header, ... What prevent
I'm new to HTML coding and I know HTML has some reserved characters for
I am new to PHP but learning slowly. Problem I have is including Google
I'm learning ASP.NET MVC. I had a small problem when dealing with dropdownlist. This
Sorry i'm new to .net and learning so this may be very simple. I
Hi everyone I am a new to jQuery. While learning I am following this
I am new to programming (previously only did html/css/design) trying to start learning RoR
After inserting new html to DOM,I need to add some listeners to it. But

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.