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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T10:11:51+00:00 2026-05-27T10:11:51+00:00

I have this CSS declaration: .columns { width: 950px; font-family: verdana, arial; font-weight: normal;

  • 0

I have this CSS declaration:

.columns {
    width: 950px;
    font-family: verdana, arial;
    font-weight: normal;
    font-size: 13px;
    line-height: 21px;
    text-align: justify;
    color: #000000;
    margin: 0px auto 0px auto;
}
.newsfeed .description {
    font-size: 11px;
    line-height: 14px!important;
}

newsfeed description is a div inside the columns div.

The problem is I can’t seem to overwrite the line-height value of 21px to 14px.. I noticed this problem recently and it seems that it applies to paddings as well.

So, font-size, color etc. are overwritten, but not paddings and line-height (at least that’s what I know of).

Where do you think might be the problem?

Thanks!

— EDIT —

Ok, I found my problem.

  1. description was a span inside a div, so the problem is not the selector.
  2. The values were inherited correctly according to chrome’s developer tools.
  3. The actual problem was that I did not know it wasn’t possible to change the line-height of a inline element (such as the span I was using). I’ve changed the display of the span to block and it worked wonderfuly.

Thanks to everybody!

  • 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-27T10:11:52+00:00Added an answer on May 27, 2026 at 10:11 am

    You describe newsfeed description as being “a div” (singular). If you really mean that, and it is defined <div class="newsfeed description"> then you’re using the wrong selector, as .newsfeed .description would select only “description” class elements inside “newsfeed” class elements.

    If that was the issue, you wouldn’t be able to target that element with any of the rules in that selector. (Easy way to test… Add display: none; to the rules and see if the element disappears.)

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

Sidebar

Related Questions

i have this CSS code: h1 { font-size:22px; color:#341C12; font-weight:normal; font-style:italic; } .h1color h1{
I have css declaration like this #first, #second, #third { font-size:1em; background: url('path/to/image') no-repeat;
I have a CSS declaration like this: font-family: font1, font2, font3; where font1 is
i have this code: $('.access a').toggle(function() { $('link').attr('href', 'styles/accessstyles.css'); $('body').css('font-size', '16px'); }, function() {
I have a ugly block of css declarations. ol{margin:0;padding:0}p{margin:0}.c5{width:468.0pt;background-color:#ffffff;padding:72.0pt 72.0pt 72.0pt 72.0pt}.c4{font-size:24pt;font-weight:bold}.c3{margin:0;padding:0}.c0{direction:ltr}.c1{height:11pt}.c2{font-style:italic}body{color:#000000;font-size:11pt;font-family:Arial}h1{padding-top:24.0pt;color:#000000;font-size:24pt;font-family:Arial;font-weight:bold;padding-bottom:6.0pt}h2{padding-top:18.0pt;color:#000000;font-size:18pt;font-family:Arial;font-weight:bold;padding-bottom:4.0pt}h3{padding-top:14.0pt;color:#000000;font-size:14pt;font-family:Arial;font-weight:bold;padding-bottom:4.0pt}h4{padding-top:12.0pt;color:#000000;font-size:12pt;font-family:Arial;font-weight:bold;padding-bottom:2.0pt}h5{padding-top:11.0pt;color:#000000;font-size:11pt;font-family:Arial;font-weight:bold;padding-bottom:2.0pt}h6{padding-top:10.0pt;color:#000000;font-size:10pt;font-family:Arial;font-weight:bold;padding-bottom:2.0pt} Client-side, I
I have attempted to use this CSS to set the width of my form
I have this code <html> <head> <style type=text/css> .frame {width: 50em; border: 1px solid
I have this css: fieldset li { padding-bottom: 0em; } However, it wasn't behaving
I have this CSS style that does a rounded corners for div border, but
I have this code: $(div[id^='intCell']).mouseover(function() { $(this).css({ border:,1px solid #ff097c}); }).mouseout(function() { $(this).css({border:,1px solid

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.