bharris Posted April 13, 2008 Share Posted April 13, 2008 My "new Products" center boxes don't spread wide enough. Please tell me how I can widen them. Thanks Bill Link to comment Share on other sites More sharing options...
dmnalven Posted April 14, 2008 Share Posted April 14, 2008 The center column floats in a default osC install. The side columns have their widths' set. Have you installed any template mods or otherwise edited your code? Or are you referring to the image widths which is set in admin Configuration -> images. For ALL problems, please review this link first -> osCommerce Knowledge Base Link to comment Share on other sites More sharing options...
bharris Posted April 14, 2008 Author Share Posted April 14, 2008 The center column floats in a default osC install. The side columns have their widths' set. Have you installed any template mods or otherwise edited your code? Or are you referring to the image widths which is set in admin Configuration -> images. I haven't installed any template mods or edited code yet. I just want the site to show wider when my browser opens with more space between the boxes in the center. Link to comment Share on other sites More sharing options...
dmnalven Posted April 14, 2008 Share Posted April 14, 2008 Your entire site is rendered inside a div tag with a class of fixcenter as follows: .fixcenter { width: 772px; border: solid; border-width: 1px; border-color: #bbbbbb; background: #ffffff; color: #000000; margin: auto; margin-top: 20px; text-align: left; } Remove the opening and closing div tags and your site will render full screen width. For ALL problems, please review this link first -> osCommerce Knowledge Base Link to comment Share on other sites More sharing options...
bharris Posted April 14, 2008 Author Share Posted April 14, 2008 Your entire site is rendered inside a div tag with a class of fixcenter as follows: .fixcenter { width: 772px; border: solid; border-width: 1px; border-color: #bbbbbb; background: #ffffff; color: #000000; margin: auto; margin-top: 20px; text-align: left; } Remove the opening and closing div tags and your site will render full screen width. I am not trained in programming lingo. Please tell me what the div tags are. Is it the two "{" that I must remove. Also are they in the /includes/header.php/ folder? Thanks again, Lynn Link to comment Share on other sites More sharing options...
dmnalven Posted April 14, 2008 Share Posted April 14, 2008 Either somebody edited your site code or you are using a version of osC that I am unfamiliar with. You need to remove the generated html div tags, which I have no way of knowing which file they are generated from or in the alternative remove or comment out the fixcenter class in your stylesheet.css . For ALL problems, please review this link first -> osCommerce Knowledge Base Link to comment Share on other sites More sharing options...
lwilliams114 Posted April 14, 2008 Share Posted April 14, 2008 Either somebody edited your site code or you are using a version of osC that I am unfamiliar with. You need to remove the generated html div tags, which I have no way of knowing which file they are generated from or in the alternative remove or comment out the fixcenter class in your stylesheet.css . Ok. I will give it a try. I am sure i messed the stye sheet up someway. Thanks again. Link to comment Share on other sites More sharing options...
dmnalven Posted April 14, 2008 Share Posted April 14, 2008 Actually, if you just remove the 'width' argument (or set it blank) in the fixcenter class statement of your stylesheet, you will accomplish your purpose and leave you the ability to globally set other parameters (if they are not overridden). For ALL problems, please review this link first -> osCommerce Knowledge Base Link to comment Share on other sites More sharing options...
bharris Posted April 14, 2008 Author Share Posted April 14, 2008 Actually, if you just remove the 'width' argument (or set it blank) in the fixcenter class statement of your stylesheet, you will accomplish your purpose and leave you the ability to globally set other parameters (if they are not overridden). I really appreciate that as I haven't figured it out yet without messing it up. I want to keep the look I have and keep the logo and name centered at top. I wish I could attach my stylesheet and let you do it but I won't ask that unless you offer. Thanks Link to comment Share on other sites More sharing options...
bharris Posted April 14, 2008 Author Share Posted April 14, 2008 I really appreciate that as I haven't figured it out yet without messing it up. I want to keep the look I have and keep the logo and name centered at top.I wish I could attach my stylesheet and let you do it but I won't ask that unless you offer. Thanks I removed the width as you said and yeah it popped it open wide. The only thing is at the top it threw my design and name to the left. Can you tell me how to center that? Thanks Link to comment Share on other sites More sharing options...
dmnalven Posted April 14, 2008 Share Posted April 14, 2008 Add an 'align' argument to the fixcenter class: text-align: center; but of course this will center all content that is not specfically overridden and within your div tags. Your other choice is to specifically center your design and name in the file where you are generating it. For ALL problems, please review this link first -> osCommerce Knowledge Base Link to comment Share on other sites More sharing options...
bharris Posted April 15, 2008 Author Share Posted April 15, 2008 Add an 'align' argument to the fixcenter class: text-align: center; but of course this will center all content that is not specfically overridden and within your div tags. Your other choice is to specifically center your design and name in the file where you are generating it. Ok let me try that right quick. Link to comment Share on other sites More sharing options...
bharris Posted April 15, 2008 Author Share Posted April 15, 2008 Ok let me try that right quick. Ok good. I put that in there and it definitely didn't hurt anything. I appreciate all the help. Only 2 things bother me now. One is the top where my store name and logo are. I put them in /images/ and renamed it oscommerce.jpg so it took the place of it. I made them combined a little wider. Now when the resolution of a viewer is high they swing to the left instead of staying in the center. The other thing is I can't seem to find my errors that leave out the shopping card and account on the right side of the header bar. All I have are two horizontal short lines under the left side of the header bar that are clickable with no words in them. ha. Thanks again for your help. Link to comment Share on other sites More sharing options...
dmnalven Posted April 15, 2008 Share Posted April 15, 2008 I suggest that you review an unedited version of includes/header.php to understand how the navigation bar text is generated and what needs to be edited in your production version to get your link text back, unless of course you edited english.php and there are no definitions for HEADER_TITLE_MY_ACCOUNT, HEADER_TITLE_CART_CONTENTS and HEADER_TITLE_CHECKOUT. Reviewing this file may also indicate what to do to properly center your banner space content as this is likely where it is generated. For ALL problems, please review this link first -> osCommerce Knowledge Base Link to comment Share on other sites More sharing options...
bharris Posted April 15, 2008 Author Share Posted April 15, 2008 I suggest that you review an unedited version of includes/header.php to understand how the navigation bar text is generated and what needs to be edited in your production version to get your link text back, unless of course you edited english.php and there are no definitions for HEADER_TITLE_MY_ACCOUNT, HEADER_TITLE_CART_CONTENTS and HEADER_TITLE_CHECKOUT. Reviewing this file may also indicate what to do to properly center your banner space content as this is likely where it is generated. OK..I will start that project tomorrow and thanks again for you kindness. Bill Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.