View Full Version : Infamous wrapper
gilbo
07-27-2007, 09:45 AM
I am wrestling to place my content within a wrapper and then center the whole thing.
I have tried and tried to use
wrapper {margin:0 auto; width: XXpx;}
this isnt yielding any results. Please help
Jutlander
07-27-2007, 10:33 AM
You need a sharp mark in front of the wrapper:
#wrapper
Then call that with <div id="wrapper"></div>
Also, you must have a valid doctype on your page or else this will not work in IE 6 (don't know about IE 7)
gilbo
07-27-2007, 11:10 AM
what doctype do i need to specify. whats the code?
Pegasus
07-27-2007, 11:14 AM
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
This one should work.
Peg
vBulletin® v3.6.7, Copyright ©2000-2010, Jelsoft Enterprises Ltd.