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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T21:51:36+00:00 2026-05-17T21:51:36+00:00

I need to add a CSS style to a content <div> , which is

  • 0

I need to add a CSS style to a content <div>, which is present on all pages of my site. However, I do not want to use the new style on the homepage.

All the pages on the site have a similar structure: a header <div> with navigation bar, followed by a content <div> with the page’s contents.

Best I could think of is to add a wrapper div directly under the content div on the homepage, like so…

<div id="content">
   <div id="homepage_content">
      ....homepage content....

Then I can apply my style to the entire content <div> using the :not selector, so the elements under homepage_content are not included.

This won’t work in IE. I’ve seen jQuery workarounds for it, but we are using Prototype on my site.

Anyone have an idea for me?

Thanks!

  • 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-17T21:51:37+00:00Added an answer on May 17, 2026 at 9:51 pm

    NOT is in fact not an option yet.

    There are certainly Prototype based workarounds for this as well, but a pure CSS solution would probably be much preferable.

    Maybe a workaround by adding another, invisible container around the other objects is an option?

    <div id="content">
       <div class="other_elements">
        .... the other elements you want to style ....
       </div>
       <div id="homepage_content">
          ....homepage content....
    </div>
    

    and then addressing the other objects like

    #content .other_elements elementname {  ...... }
    

    whether this is possible, will depend on your CSS structure.

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

Sidebar

Related Questions

HI All, I want to know how to style an anchor tag(eg: need to
I need to add css height to each page dynamically with jQuery. So far
I need to add a CSS class to the TR (or multiple TR's) of
need to add a 2nd css stylesheet to a page. do i add a
I need add new style for some DataGrid rows, depending on variable. For example:
I need to make a css navigation according to the following style: DESIRED LOOK
I need to hide some text (Add £0.20) which is within a td. I
I want to use Valums file upload javascript . However, when I run the
I need add Auto complete on apex Tabular Form. there is a column as
I need add a new user group for mediawiki. The new group has more

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.