Jump to content

Padding isn't working!


maxic0

Recommended Posts

Hi, i have a news content thing on my website, and here is the CSS code for it!

[code]
#header {
  background:url(images/header.gif) no-repeat;
  width:700px;
  height:30px;
}
#footer {
  background:url(images/footer.gif) no-repeat;
  width:700px;
  height:30px;
}
#content {
  background:url(images/content.gif) repeat-y;
  width:700px;
}

p {
  margin:0px 40px;
  padding-bottom: 4px;
  padding-left:20px;
  line-height:1.5em;
}
[/code]

Now it doesn't work properly..
The padding-bottom: 4px; works..
But the padding-left:20px; doesn't!

Can somone please tell my why this is?

Thanks
Max

Link to comment
https://forums.phpfreaks.com/topic/20535-padding-isnt-working/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.