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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T13:30:46+00:00 2026-06-16T13:30:46+00:00

I have below CSS code in my CSS class. .ie8 html, body { padding-left:

  • 0

I have below CSS code in my CSS class.

.ie8 html, body {
padding-left: 140px;
}

html, body {
padding-left: 0px;
}

Here html,body is the last entry. So, for ie8, html, body is getting applied.

Now, if I swap them, then .ie8 html, body will be the last entry. So, for Chrome and FF, .ie8 attributes are getting applied.

CSS file is referred externally from web server.

How to solve this?

  • 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-16T13:30:48+00:00Added an answer on June 16, 2026 at 1:30 pm

    As Musa says, .ie8 html, body will apply to two distinct things:

    • a html element that is under class ie8 element (which probably does not exist, since html should be the top element)
    • and every body element (ie8 class selector does apply here).

    Thus, you have two rules handling body, and the second one overwrites the first. If you switch them around, the effect changes. You probably want html.ie8 body, or .ie8 body (for just body element), or html.ie8, html.ie8 body, or .ie8, .ie8 body (for both html and body elements).

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

Sidebar

Related Questions

I have some HTML and CSS code like below <html> <head> <style type=text/css> img.normal
Little trouble in using css, in the below code, i have used odd and
I have html and css as below - .title { display: block; background-color: red;
I have below code: class Program { static void Main(string[] args) { Task[] tasks
I have this code below: <li> <a href=<?php echo base_url()?>home/promos/call class=promo-call active-call></a> </li> <li>
I have a grok'ed plone.directives.form code below: class EditForm(TreeFormMixin, form.SchemaForm): Edit form for our
I have the following code: <html> <head> <link href=css/bootstrap.min.css rel=stylesheet /> <script src=//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js></script> <script
I have this piece of code below: <html> <head> <link href=http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css rel=stylesheet type=text/css/> <script
I've set up a jsFiddle here , code below. I just have a textarea
I have the jsf code and css code below. I'm having trouble getting the

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.