Hi I want to change CSS so the site will be fixed size and centered. site is : http://www.4url.net/244 script can be downloaded from : http://www.4url.net/245 any help? Thanks
set a wrapper around all your website between the body tags <div id="wrapper"> </div then in the css #wrapper { width:900px; <!--- change this to how big you want it margin:auto; <!--- makes the div centered vertically }
Garreth thanks, but its not working the CSS files use ".warpper { " syntax so I tried #wrapper and . wrapper and both dont work. and the divs I did like : <body> <div id="wrapper"> <?php echo $mainbody; ?> </div> </body> Thanks
change the name of the wrapper then, you could call it "abcdef" but i use wrapper as its easiest change it to container so <div id="container"> #container { }
Yes just to add when you use an ID within a document you must refer to it with a # inside the CSS and when you use a class within a document you must refer to it with a . So for example: <div [B]id[/B]="header"> </div> Code (markup): To refer to this div inside your CSS you'd use #header { //CSS statements } Code (markup): However if you were to have: <div [B]class[/B]="header"> </div> Code (markup): Then to refer to this div inside your CSS you'd use .header { //CSS statements } Code (markup): You can use both classes and ID's in your documents and your CSS
I tried to do all the combinations but still not working, so I tried to rename each of the CSS files I have one at a time to see which one control the width.. and no on affected the width of the page!! is it possible that a JS file define the site width? Thanks