mrkevinsir Posted September 2, 2003 Posted September 2, 2003 How would i go about centering OSC so when you view it it doesnt strech but appears in the center of the page? Any help would be greatly appreciated, thanks.
chfields Posted September 2, 2003 Posted September 2, 2003 You can install the center shop contribution
timbeckham Posted September 2, 2003 Posted September 2, 2003 All of your OSC pages are enclosed in a <table> tag at the top level, often just under the <body> tag. Change that top level <table> tag to a specific width and use align="center", so, for example .. <table width="750" align="center"> should do the trick. Add whatever you want for cellpadding, cellspacing etc. values. Note that this is required only on the top level table tag, and it should be done for all the files in the top (catalog) directory. It does not need to be done in any of the other files in lower directories. Hope this helps. Artisans of the Ironwork Guild
timbeckham Posted September 2, 2003 Posted September 2, 2003 All of your OSC pages are enclosed in a <table> tag at the top level, often just under the <body> tag. Change that top level <table> tag to a specific width and use align="center", so, for example ..<table width="750" align="center"> should do the trick. Add whatever you want for cellpadding, cellspacing etc. values. Note that this is required only on the top level table tag, and it should be done for all the files in the top (catalog) directory. It does not need to be done in any of the other files in lower directories. Hope this helps. I take the above suggestion back. I've done a lot of customizing of my OSC site, and all my heading.php files are enclosed in the top tables of the main pages under the public_html (catalog) directory. The Center Site contribution is more appropriate for standard OSC sites, since it modifies the header.php and footer.php files to do the job, and that takes care of centering the standard OSC layout. --- Sorry for the confusion. I forgot what I had changed. Artisans of the Ironwork Guild
mrkevinsir Posted September 2, 2003 Author Posted September 2, 2003 I tried to install the center contribution and got this error: Fatal error: Call to a member function on a non-object in /home/vivid/www/vividracing.com/catalog/includes/header.php on line 51 Am i doing something wrong?
paulm2003 Posted September 2, 2003 Posted September 2, 2003 <table width="750" align="center"> should do the trick. Add whatever you want for cellpadding, cellspacing etc. values........................................................ and it should be done for all the files in the top (catalog) directory. If there are many files involved, it might be easyer to use the stylesheet to set the properties of these tables. Then you have to edit the files only once. And if you want to change anything, you only need to edit one or two lines in the stylesheet.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.