3 replies [Last post]
DiarYofaMadmaN
Offline
Regular
Last seen: 18 years 45 weeks ago
Timezone: GMT-5
Joined: 2004-03-18
Posts: 27
Points: 0

 #container {
	background-color: #D4D4D4;
	padding-left: 5px;


 }

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" />

<html>
 <head> 
  <title>My Personal System v1.0</title>
  <link rel="stylesheet" type="text/css" href="css/layout.css" />
 </head>
 <body>
  <div id="header" class="alignmiddle borders">
  
  </div>
  <div id="container" class="alignmiddle borders">
    asdf
  </div>
  <div id="footer" class="alignmiddle borders">
  
  </div>
 </body>
</html>

http://www.maxforcepc.com/personal/index.php

if you look at the center column which as the padding of 5px it pushes the width out more so it's bigger.. I have no idea why it's doing that.... Can anyone help me out?

-thanks,
rich[/code]

thepineapplehead
thepineapplehead's picture
Offline
Moderator
Last seen: 39 weeks 6 days ago
Timezone: GMT+1
Joined: 2004-06-30
Posts: 9683
Points: 819

having problems with padding-left:.... please read

- sigh -

Google for the Box Model and hacks for it.

Verschwindende wrote:
  • CSS doesn't make pies

DiarYofaMadmaN
Offline
Regular
Last seen: 18 years 45 weeks ago
Timezone: GMT-5
Joined: 2004-03-18
Posts: 27
Points: 0

having problems with padding-left:.... please read

thepineapplehead wrote:
- sigh -

Google for the Box Model and hacks for it.

i've done a number of searches on google but can't come up with the solution to my problem. all of the sites i came across had the same information. Any help is appreciated Smile

-peace,
Rich

DiarYofaMadmaN
Offline
Regular
Last seen: 18 years 45 weeks ago
Timezone: GMT-5
Joined: 2004-03-18
Posts: 27
Points: 0

having problems with padding-left:.... please read

DiarYofaMadmaN wrote:
thepineapplehead wrote:
- sigh -

Google for the Box Model and hacks for it.

i've done a number of searches on google but can't come up with the solution to my problem. all of the sites i came across had the same information. Any help is appreciated Smile

EDIT: *I fixed the issue by just setting the width of the container to 795px. I just hope i won't run into other problems....
-peace,
Rich