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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T03:13:09+00:00 2026-05-30T03:13:09+00:00

I have the following 2 styles: .no-bottom-margin{margin-bottom:0;} .tab-content{border:1px solid #000;margin-bottom:1em;} On my page I

  • 0

I have the following 2 styles:

.no-bottom-margin{margin-bottom:0;}
.tab-content{border:1px solid #000;margin-bottom:1em;}

On my page I did the following:

<div class="tab-content no-bottom-margin">
     Some data here..
</div>

<div class="tab-content">
   Some data here..
</div>

The bottom margin is not removed from the first div, I can’t understand why? When I have a look at Fire Bug then then margin-bottom:0; is overwritten. I need the margin to be set to 0. How do I do this?

This sample looks stupid, but I have logic on my view that adds the style tab-content to the div, but if it is the only div on the view then I don’t want the margin there, then my design doesn’t look consistent.

  • 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-30T03:13:12+00:00Added an answer on May 30, 2026 at 3:13 am

    You could try making your first CSS delcaration:

    .tab-content.no-bottom-margin {
      margin-bottom: 0;
     }
    

    Combining the classes will increase it’s specificity.

    Also, you can re-order the rules so .no-bottom-margin is second – in CSS, the last rule wins.

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

Sidebar

Related Questions

I have the following: <table class=floatleft style=margin-right:1em;margin-bottom:1em;border:4px;> Although I have a border around the
I have frame styles for the image: .frame { background:#efefef; border:1px solid #f6f6f6; box-shadow:
I have the following: <div class=outer style=margin-bottom: 10px> <div class=dialog-float> <select name=AccountID id=AccountID> ...
I have the following form declaration: <div class=edit-dialog span-10 style=display:none;> <div class=edit-message span-10 style=margin-bottom:30px;>
I have the following code: <div style=width:560px> <div style=float: left; width: 50%; margin-bottom: 20px>
i have the following piece of code: <h3 style=margin: 0px; margin-bottom: 20px;>Click the checkboxes
I have the following CSS: body { margin-left:0px; margin-right:0px; margin-bottom:0px; margin-top:0px; background-image: url(../images/tile.png); background-repeat:
Say I have the following structure: <div id=top style=width:960px; height:400px; margin 0 auto; background-color:#F00;>
I have the following content page set up to display a map of the
I have the following code (available for a test run here ): <div style=margin:10px>

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.