I have a content div where all the content is located. this div has a border. I would like to place things inside this div so that this div expands if the content inside is too big. Should the items inside the content div be a “div” or a “p” and what css position should they have?
CSS:
#content{
position: relative;
margin-left: auto;
margin-right: auto;
border: 1px solid #E0E0E0;
min-height: 200px;
width: 1000px;
padding: 0px 0px 80px 0px;
background-color: #fff;
}
When you set
width: 1000px;it will prevent the content div from being any wider. I suspect you wantmin-width: 1000px;instead.For internal content use
ptags if you are creating paragraphs that only use inline html elements. If you are using block level elements then usedivtags.I can’t say how you should style your internal elements because I know nothing about your design specs.