fixed length on a div?

windows

Guest
okay, so on my website:
<!-- w --><a class="postlink" href="http://www.freewebs.com/chrisab508/">www.freewebs.com/chrisab508/</a><!-- w -->

On the contact me page I didn't want the forms going all the way to the left edge, so i added 10px of left padding, however as you can see, on the right that made it extend past the border, I don't know why this is or how i can fix it? Im thinking if i set the width of the divs to a fixed width (which i've already done) they won't move with the padding.

thanks.

P.S. I get this problem in IE and AOL, not Netscape.Read how the box model works (<!-- m --><a class="postlink" href="http://www.ryanbrill.com/archives/00009.php">http://www.ryanbrill.com/archives/00009.php</a><!-- m -->).thanks, i tried adding up all the pixel widths and then changing my titlebar image to that, and midifying everything else, and it didn't work... so i dno what to do.Change the width of #middle to 588px.i fixed it, rather than using padding to get the forms away from the side, i used margin, so i put


margin-left: 20px;
margin-right: -20px;


and taht worked, thanks again!I would use what I suggested above...okay, ill try that, but whats the difference?The method I described above is the "right" way to do it (if there is a right way). If you were to add a background color to your #middle styles, you'll see why.okay, i tried what you did, by adding a padding-left of 10px, and then reducing the size of the middle by 10px, but what happens if i want the forms to be farther out than just 10px, does that mean that I have to keep shortening my middle width?Yes, did you read the link I gave you above?yah i did, but what im saying is that if i do it my way, i won't have to keep making the middle part narrower and narrower, like, will it cause problems if i do it my way?Originally posted by pyro
The method I described above is the "right" way to do it (if there is a right way). If you were to add a background color to your #middle styles, you'll see why.
 
Back
Top