another_designer — 2012-11-15T22:19:02-05:00 — #1
Is it necessary to use a size for a div when it's around a banner?
ralphm — 2012-11-15T22:46:14-05:00 — #2
You probably need to give more info about what you mean by "size". A containing div will expand to width: 100% unless told otherwise.
another_designer — 2012-11-15T23:10:11-05:00 — #3
Okay. I have a Div that is holding a banner that is 800 px wide. It is not wrapped around the width of the banner. The div goes from one end of the interface to the other.
picnictutorials — 2012-11-15T23:46:07-05:00 — #4
I'll assume the banner is an img. Therefore the image will be left aligned. The div will go 100% width by default. If you want it left aligned then no a width is not necessary. If you want the img centered the width is still not necessary.
ralphm — 2012-11-15T23:51:12-05:00 — #5
Yes, that's what I meant by it stretching to width: 100% by default. There are various things you could do, like giving the div a width of 800px or perhaps even floating it, but we'd really need to see this in context to know what will work best in this case, as there are quite a few variables involved.
another_designer — 2012-11-17T09:58:14-05:00 — #6
Thanks. I'll PM it to you. I just want it centered on the page.