QUOTE(RudiVisser @ 24 Oct, 2009 - 12:34 PM)

Not sure what you mean.. What element are you trying to make auto?? You could always just try
width:auto depending on the element type.
Want to show us code?

My current code looks like this, i know its quite messy as im new to this but basicly i just want the main content area to resize based on the amount of content on the page, not just stay the same and have images/text outside the content box.
CODE
<style type = "text/css">
em {background-color: #0099CC;
color: white }
h1 {font-family: Verdana, Arial, Helvetica, sans-serif }
h2 {font-family: Verdana, Arial, Helvetica, sans-serif }
p {font-family: Verdana, Arial, Helvetica, sans-serif }
p {font-size: 10pt}
.style1 {color:blue}
span { color: blue;
font-size: .6em;
height: 1em }
.super { position: relative;
top: 1ex }
.sub {position: relative;
bottom: 1ex }
.shift1 {position: relative;
left: -1ex }
.shiftr {position: relative;
right: -1ex }
a:hover {text-decoration: underline;
color: blue; }
body {background-color:#83C8E2;
background-position: center
background-repeat: no-repeat;
background-attachment: fixed }
div {background-color: #FFFFFF;
margin-bottom: 2em }
.navigation {
border:#000000;
border:dotted;
margin: 0px;
padding: 0px;
Position:absolute;
left: 26px;
top: 180px;
bottom: 30px;
width: 149px;
text-align:center;
height: 522px;
}
}
body,td,th {
color: #000000;
}
a:link {
color: #000000;
text-decoration: none;
}
a:visited {
text-decoration: none;
color: #000000;
}
a:hover {
text-decoration: none;
color: #FFFFFF;
}
a:active {
text-decoration: none;
color: #000000;
}
div {
background-color: #0099CC;
margin-bottom: 2em
}
.header {
border:#000000;
border:dotted;
width: 1069px;
position:absolute;
text-align:center;
right: 25px;
top: 30px;
left: 25px;
bottom: 30px;
height: 119px;
}
.content {
border:#000000;
border:dotted;
margin: 0px;
padding: 0px;
float: center;
Position:absolute;
right: 25px;
left: 202px;
top: 180px;
bottom: 30px;
width: 892px;
height: 870px;
visibility: visible;
}
</style>
@charset "utf-8";
/* CSS Document */