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

The Archive Base Latest Questions

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

Basically when I try to define different padding amounts for the TRBL the rule

  • 0

Basically when I try to define different padding amounts for the TRBL the rule gets ignored, but when I just define one padding amount the rule works.

The relevant html is as follows:

<div class="content">
<div class="contenttext">
    <h1>Hello.</h1>
    <p>Test text, needs more testing.</p>
</div>
</div>

The CSS is as follows:

* 
{
margin: 0px;
padding: 0px;
}

body
{
font: normal 100% 'trebuchet ms', arial, sans-serif;
}

.content
{
background: #d9d5b7;
width: 100%;
height: 600px;
}

.contenttext
{
background: #FFFFFF;
width: 750px;
margin: 0 auto;
height: 500px;

padding: 25px;
}

.contenttext h1
{
font: bold 150% 'gothic century', arial, sans-serif;
color: #585858;

margin: 0px;
padding: 15px, 0px, 15px, 0px;
}

p
{
color: #707070;
}

Images from Chrome:

enter image description here

enter image description here

Apologies if there is something really basic I’m missing here, I’m just getting started with xhtml/css and to be honest I find it quite frustrating.

If you need the full code to determine the problem just shout and I’ll upload it asap.

  • 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-26T18:24:54+00:00Added an answer on May 26, 2026 at 6:24 pm
    padding: 15px 0;
    

    no commas between values

    UPDATE: also NO whitespaces between the numbers and px in style values

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

Sidebar

Related Questions

Difficult to try and phrase this question, but I will try my best. Basically,
I' still newby to this so I'll try to explain what I'm doing. Basically
I've just started learning Objective C and getting a bit stumped with arrays. Basically,
Basically I was trying to replicate one of the things that xajax gave me
I have this piece of code that basically checks if one or more files
Hello I'll try my best to explain this. Basically, I am loading a library
OK, I will try to do my best, but I think that my English
I'm trying to figure out how to observe just one particular section of the
This question should be quite straightforward, maybe stupid but I just can't find the
Basically what I want to do it this: a pdb file contains a location

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.