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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T12:37:24+00:00 2026-06-13T12:37:24+00:00

I have a css rule. its job is to place the left column of

  • 0

I have a css rule. its job is to place the left column of my site template in it’s correct position. I’m trying to optimize my css.

* html #left { left:220px }

I would expect that the below css would work the same…It does not in Chrome or IE9

#left {left:220px}

However, explicitly defining the whole path as below…works correctly.

html body div div #left 

Only CSS being used on page. Verified in Chrome inspector.

html {
margin-left:auto;
margin-right:auto;
font-size:80%;
width:100%;
}


.ie7 {
font-size:80%;
width:100%;
}

.ie8 {
font-size:80%;
width:100%;
}

.ie9 {
font-size:80%;
width:100%;
}


body 
{
position:relative;
text-align:center;
font: .95em "Arial","Helvetica","Trebuchet MS","Verdana","Times New Roman","Sans-Serif"; 
min-width:960px;
max-width:960px;
margin: 0px auto auto auto;
padding:0px 10px;
}


        #header
        {
            text-align:left;
        }

        #container {
            padding-left: 220px;      /* LC width */
            padding-right: 30px;     /* RC width */
            overflow: hidden;
            min-height:100%;
            padding-bottom:300px; 
            background-color:White;
        }

        #container .column {
            position: relative;
            float: left;
            padding-bottom: 20010px;  /* X + padding-bottom */
            margin-bottom: -20000px;  /* X */           
        }



        #left {
            width: 200px;             /* LC width */
            padding:0 10px;
            right: 260px;             /* LC width */
            margin-left: -100%;


        }

    /*  #right {
            width: 200px;             
            padding:0px 10px;
            margin-right: -290px;               
        }
        */

                #center {
            width: 100%;
            background-color:#fff;
            padding: 10px 20px;         
        }

        #footer-wrapper
        {
            background-color:#fff;
        }

        #footer {
            clear: both;
            position: relative;
            background-color:#163748; 
            color:white;
            padding:0;
            text-align:center;
            /*border-top:1px solid #9fa8ac;*/
            height:150px; 
            padding-top:10px;                       
        }
        #footer p
        {
            text-align:center;
        }

#footer a
{
    color:White;

}

.clear
{
    clear: both;
}


#left 
{
    left:220px;
}       
  • 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-13T12:37:25+00:00Added an answer on June 13, 2026 at 12:37 pm

    The CSS you’re trying to optimise is this:

    * html #left { left:220px }
    

    The reason you’re having problems with is it because it’s actually a CSS hack, designed to work with specific browsers.

    In a standards-compliant browser, there are no elements above html in the DOM, and therefore * html is meaningless and will not select anything.

    However in certain versions of IE, this did actually work. Therefore, using * html in a selector is a CSS hack for code that you only want to work in those versions of IE.

    From memory, this particular hack only worked in IE6, which means that the person who wrote that code was trying to fix a problem in IE6 that didn’t appear in other browsers by hacking around it. You’ll likely find that there’s another line setting the left property to something different for other browsers.

    Clearly this isn’t code that you’re going to want to be run in IE9.

    If you’re lucky, you don’t need to support IE6 any more, in which case you can throw this hack away entirely.

    If you’re unlucky, and you need to continue supporting IE6, then just keep the code as is. It isn’t hurting anyone.

    Hope that helps.

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

Sidebar

Related Questions

I have a css rule defining the background color as the window system color
I have css hover over images for my tabs and I'm trying to get
I have some CSS and HTML for horizontal tabs that works perfectly in jsfiddle.
I have an odd situation which I'm trying to improve. I have HTML content
I have created an HTML page which uses simple CSS (no javascript) for menu
I have a <div> with the CSS rule margin: 0 auto; and I'm using
I have the following code slightly modified from the Visual Studio 2010 css template.
I'm working on a site at the moment and have ventured into CSS Sprites
For text links, I have: CSS: a:link {color: #3366a9; text-decoration: none} a:hover {border-bottom: 1px
i have this css code, and i want to shorten it. #one{ background: #6cab26;

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.