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 4029146
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T11:18:30+00:00 2026-05-20T11:18:30+00:00

I’ve looked around for a solution for this but it must be something a

  • 0

I’ve looked around for a solution for this but it must be something a tad odd isnce bith the CSS and html verify with the w3c checker.

CSS Snippet:

body{
    background-color: #ffffff;
    color:#000000;
    text-align: left;
  height:100%;
}

h1{
  font-size: 250%;
  font-weight: normal;
  text-align: center;
}
h2{
  font-size:150%;
}
h1{
  font-size:120%;
}
#MainHeader{
  background-color:#efefef;
  background: url("http://www.wou.edu/images/spotlight/wounews.png") no-repeat;
  padding:15px 0px 15px 0px;
}
#MainContent{
  background: url("http://stuff.bodestone.net/jr/construction.gif");
  padding: 8px 8px 8px 8px;
  clear:both;
  background-color:#ff00ff;
  overflow:auto;
  height: auto;
}
#MenuBar{
  background-color:#dfdfff;
  float:left;
    padding: 15px 0px 15px 0px;
    overflow: auto;
  height: 100%;
}
#PageContent{
  float:left;
  background-color:#dedebe;
  overflow: auto;
    padding: 15px 15px 15px 15px;
  overflow: auto;
}

And the HTML:

  <body>
    <div id="MainHeader">
      <h1>A random template site to work some stuff out</h1>
    </div>
    <div id="MainContent" class="clearfix">
      <div id="MenuBar">
        <a href="index.html" class="here">Page 1</a><br>
        <a href="page2.html">Page 2</a><br>
        <a href="page3.html">Page 3</a><br>
      </div>
      <div id="PageContent">
        <h2>This is page 1</h2>
        <p>lar</p>
      </div>
    </div>
    <div id="Footer" class="clearfix">
      <span style="float:left">And here we have a footer.</span><span style="float:right">Style info for left and right defined separately in the html.</span>
    </div>
  </body>

If I change the font-weight of h1 it changes. If I change the font-size it does not.
I can change weight and size of the h2 in the PageContent DIV.

As an aside, I have used * before for global definitions at the start of the style sheet. Is this the same as root?

  • 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-05-20T11:18:31+00:00Added an answer on May 20, 2026 at 11:18 am

    You appear to define font size for h1 twice:

    h1{
      font-size: 250%;     /* Here */
      font-weight: normal;
      text-align: center;
    }
    h2{
      font-size:150%;
    }
    h1{
      font-size:120%;      /* And here */
    }
    

    Depending on which you’re changing, you might not see results, because the second h1 rule is overriding that of the first. If you’re modifying the first declaration, then it will be overridden by the second declaration.

    The validator does not warn about rules with identical selectors that may override one another, so you’ll have to watch out for that yourself, or check with a tool like Firebug to see the computed style for an element.

    As an aside, I have used * before for global definitions at the start of the style sheet. Is this the same as root?

    No, * is the universal selector that matches any element. The root element is html, but even by applying styles to that element, not every style will be inherited by body elements inside it.

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

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I have this code to decode numeric html entities to the UTF8 equivalent character.
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I'm new to using the Perl treebuilder module for HTML parsing and can't figure
I want to count how many characters a certain string has in PHP, but
For some reason, after submitting a string like this Jack’s Spindle from a text
this is what i have right now Drawing an RSS feed into the php,
I have a French site that I want to parse, but am running into
I have this code: - (void)parser:(NSXMLParser *)parser foundCDATA:(NSData *)CDATABlock { NSString *someString = [[NSString

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.