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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T14:37:54+00:00 2026-05-26T14:37:54+00:00

I am using this div: <div id=container class=large> In my CSS the ID is

  • 0

I am using this div:

<div id="container" class="large">

In my CSS the ID is assigned a default height like this:

#container {height: 500px}

In this one case I’d like the div to be larger, but this would overwrite the class.

.large{height: 560px}

I don’t what to make a class small and a class large…
How can I do this ?
Append to the class and only effecting this div to make it bigger !

  • 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-26T14:37:54+00:00Added an answer on May 26, 2026 at 2:37 pm

    Just combine the selectors:

    #container.large { height : 560px; };
    

    This increases the specificity of the selector, since there’s an id and a class, without creating future problems using !important.

    To explain specificity for CSS, it’s worth reading these articles:

    • CSS Specificity: Things you Should Know.
    • Molly Holzschlag’s ‘CSS 2.1 Specificty Clarified’.
    • CSS Specificty Calculator, from suzyit.com.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Im using the following JS <a href=# onClick=if($(this).next('div').css('display') == 'none') { $(this).next('div').show('fast'); } else
Using JQuery it possible to clone a Div like this and change add a
I tried using height: 100% but this makes the div only as high as
I am trying to declare the border of a div using hsl() like this:
I'm developing a 3-column website using a layout like this: <div id='left' style='left: 0;
I have a vertical image gallery of this sort: <div class=image-container> <div class=nav> <div
What's the point using this syntax div.card > div.name What's the difference between this
I'm using this jQuery to hide a DIV: $(#slider).click(function() { $(.help).slideToggle(); $(#wrapper).animate({ opacity: 1.0
I am using this code to get the background image of a div .
I'm currently using jQuery to make a div clickable and in this div I

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.