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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T20:57:31+00:00 2026-06-16T20:57:31+00:00

I have one common CSS file and two pages are referring to it. One

  • 0

I have one common CSS file and two pages are referring to it.

One page which is referring to this common CSS requires below CSS,

*:first-child + html .rich-tabpanel {
   margin-left:-13px;        // Note : Its 13px here
}

The other page which is referring to this common CSS requires below CSS,

*:first-child + html .rich-tabpanel {
   margin-left: 0px;         //Note : Its 0px here 
}

HTML code is below,

<table class="rich-tabpanel">

I have this problem only in IE7 where its not taking below code (I don’t know why),

.ie7 .rich-tabpanel {
   margin-left: 13px; //OR 0px depending on the page
}

So, I removed above code and went with only *:first-child + html .rich-tabpanel code

How can I have two different margin-left attributes in the same common CSS file for rich-tabpanel attribute?

  • 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-16T20:57:32+00:00Added an answer on June 16, 2026 at 8:57 pm

    From the moment *:first-child +html .rich-tabpanel is a hack, it’s specificity is unknown. .ie7 .rich-tabpanel has specificty 0020, so the hack probably has a specifity above it. Changing the selector .ie7 .rich-tabpanel to html .ie7 .rich-tabpanel which changes the specifity then the rule is applied. I don’t gurantee that is a specificity issue, but changing the selector, in any case, works.

    Demo: http://jsfiddle.net/xWX2R/1/

    In any case, I suggest you to use conditional comments than hacks for internet explorer.

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

Sidebar

Related Questions

I have two pages one is the main page and the another one is
I would like to have two .css files. One for each master\content page and
I want to have one directory for all object files and create Common.pri file
I have included reset.css which is pretty common for most websites that use, on
I have a simple HTML page that is referencing 3 CSS files. The first
We have a project here which is split into two. One for Internal and
I have a common HTML header file which I use in several PHP files.
I want to have a common css file kind of thing to apply jquerymobile
I have some tables. These tables all have one column in common called 'classified_id':
I have 2 table t1 -> t2 (common one to many relationship) with 140.000

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.