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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T19:16:01+00:00 2026-05-27T19:16:01+00:00

I have a site which I have rather stupidly created in two halves. I

  • 0

I have a site which I have rather stupidly created in two halves. I am now in the process of merging them to be one complete finished site. The problem is that I have layers within the CSS. I will try and explain a example on which I hope I can help you fully understand.

Site 1 and Site 2 are each half of the finished site, Site 3. To put this into easier terms, Site 1 consists of having login/register/index/membersindexheader. Site 2 consists of having member pages such as membersindex and other restricted files. Now, the problem. I am trying to use the header file I created on site 1 on the pages on site 2. It works fine. The header displays fine but when I try and use normal elements such as <a> & <p> and so forth it uses the CSS for the header in the body.

I know this is how CSS works but I am hoping is there a way I can reset the stylings for my other <a> tags. I have tried putting !important after the new CSS values but with no luck. Is there any other way I can do this?

Could I use a CSS reset file then include it half way down the page? For example, the actual page would have the header in it and site1.css then using PHP I could include site2.php which has a cssreset.css in it when I want the body code?

EDIT: I have made this post a lot more user friendly, i am sorry for the previous state it was in. Please remove your badrep towards it.

  • 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-27T19:16:02+00:00Added an answer on May 27, 2026 at 7:16 pm

    What you’re describing is a common problem with CSS. You need to pseudo-namespace the CSS that you want to apply only to the header. If you have HTML like this:

    <header>
        <h1>Site 2 header</h1>
        …
        <p>Here is an example <a href="http://example.com"> link</a>.</p>
    </header>
    

    Then you can apply global styles to the p element there, or you can specifically apply them to header p. Until and unless CSS implements grouping and nesting, this is the only way to make sure your styles only apply to descendants of header.

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

Sidebar

Related Questions

I have a site which relies heavily on javaScript. I created a mirror site,
I'm pulling my hair out on this one. I have a site which is
I have a rather big php site, which was written for php4 and register_globals
I have an image on my site which is rather big (about 200kb). I
I have a site which needs to be fully self-contained in the browser window,
I have a site which I want to download using Unix wget . If
I have a site which has a lot of corners. I don't want to
I have a site which allows my customers to setup content for their customers,
I currently have a site which uses a MySQL 4.x schema, the site uses
Here's the setup. I have web site which is essentially a simple CMS. Here

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.