PDA

View Full Version : More than one CONTAINER on one page?



danielc1234
07-25-2006, 02:53 PM
I am trying to do a paylout, but in sections. Is there a way to have more than one container per page to accomplish this?

Twey
07-25-2006, 03:03 PM
A paylout?

(visions of giving yobs money)

danielc1234
07-25-2006, 03:09 PM
Sorry, I meant page layout...LOL. I have a dynamic shopping cart that generates pages in sections. I was hoping to try and program each section in CSS.

Twey
07-25-2006, 03:33 PM
Ah, then yes. You probably want to use the <div> tag for this.

jscheuer1
07-25-2006, 05:50 PM
Sorry, I meant page layout...LOL. I have a dynamic shopping cart that generates pages in sections. I was hoping to try and program each section in CSS.

You cannot, technically, program in css. You can style. And, as Twey says, yes you can have more than one container and the <div></div> is a good choice. However, just to be clear, if by container you mean this:


<div id="container">

content here

</div>

You can only have one of those but you can add other ones with different id's:


<div id="container2">

content here

</div>


These can be styled using the selectors #container and #container2, respectively.