The Moz Q&A Forum

    • Forum
    • Questions
    • My Q&A
    • Users
    • Ask the Community

    Welcome to the Q&A Forum

    Browse the forum for helpful insights and fresh discussions about all things SEO.

    1. SEO and Digital Marketing Q&A Forum
    2. Categories
    3. Web Design
    4. CSS styling help needed

    CSS styling help needed

    Web Design
    8 4 882
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as question
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • KeriMorgret
      KeriMorgret last edited by

      I'm hoping that to someone experienced this is a quick fix, but it may be a pain and a rat's nest of code.

      Five or so years ago, I designed my brother's website at https://www.argentdata.com/index.html. I built it off of the Mollio theme (http://www.mollio.org/), and used templates in Dreamweaver, so it's not in a CMS. It's not a work of art, and there are some issues with it, but it's served him fairly well. Longer-term it needs a redesign, but right now I'm asking about just one aspect of the existing design.

      There are two parts to the site - the plain HTML site, and the osCommerce store that's under the purchase tab. If you go to http://www.argentdata.com/catalog/ you'll see that the osCommerce store is full width, while the navigation header copied over from the main site is 1200 pixels wide and centered. If you're on a wide monitor, it looks weird.

      What he'd like to do:

      Make the main site align to the left, both the content and navigation, and make the navigation left aligned for the osCommerce portion. He figures this is the easier way to do things, rather than try to muck with osCommerce CSS (that also has some merged CSS from the Mollio theme) and get it to center.

      Does anyone have a fairly simple solution that can make the navigation bar look good on osCommerce? Either the above of making everything left aligned, or some other solution simple we haven't thought of?

      Thanks!

      1 Reply Last reply Reply Quote 0
      • adriandg
        adriandg last edited by

        not waht you're asking for, but the fastest solution i can think of.

        wrap the os commerce page with a div that is 90% width. give it margin: 0 auto; so that it centers.  The tables inside should auto adjust because they are all set to be 100% width.

        1 Reply Last reply Reply Quote 0
        • RyanKent
          RyanKent last edited by

          Please view the attachment. Is that the result you desire? I am not entirely sure based on the question.

          EDIT - actually, I prefer the 2nd image as a solution.

          If you like the second image, simply change #wrap margin value to:

          margin: 0;

          Please note I am not a CSS expert by any means. I simply know enough to get by.

          PlDFo qngtw

          1 Reply Last reply Reply Quote 0
          • Anthony_NorthSEO
            Anthony_NorthSEO last edited by

            Hi Keri,

            This isn't a perfect fix but it should do the trick.

            On line 377 of "argentdata.com/catalog/stylesheet.css" change

            max-width: 1200px   to   max-width: none !important

            #wrap {

            min-width: 770px;

            _max-width: none !important; _

            margin: 0 auto;

            position: relative;

            }

            You could also just delete the max-width value altogether, but just in case there's another width value somewhere else... might as well change it.

            On line 348 add

            position: relative; left: 100px;

            #header #site-name a, #header #site-name a:link, #header #site-name a:visited,

            #header #site-name a:hover, #header #site-name a:active {

            text-decoration: none;

            color: #CCC;

            _position: relative; _

            left: 100px;

            }

            Same thing on line 352... add** position: relative;left: 100px;**

            #nav {

            font: bold 96% arial;

            height: 2.09em;

            font: bold 96% arial;

            margin: 0 105px 0 40px;

            position: relative;

            _ left: 100px;_

            }

            /* Hope this helps!

            • Anthony */
            1 Reply Last reply Reply Quote 0
            • Anthony_NorthSEO
              Anthony_NorthSEO last edited by

              Totally forgot about the index updates! (Gotta learn to finish reading posts.)

              Edit "argentdata.com/css/main.css" (changes in italics):

              Line 107

              #header #site-name a, #header #site-name a:link, #header #site-name a:visited,

              #header #site-name a:hover, #header #site-name a:active {

              text-decoration: none;

              color: #CCC;

              position: relative;

              _ left: 100px; _}

              Line 111

              #nav {

              font: bold 96% arial;

              height: 2.09em;

              margin: 0 105px 0 40px;

              position: relative;

              _left: 100px; _}

              Line 151

              #wrap {

              min-width: 770px;

              max-width:none !important;

              margin: 0 auto;

              position: relative; }

              Line 152

              #content-wrap {

              position: relative;

              max-width: 1200px;

              _left: 100px; _}

              This should match the root pages to the osCommerce pages.

              -Anthony

              1 Reply Last reply Reply Quote 0
              • KeriMorgret
                KeriMorgret last edited by

                Thanks everyone! I'll forward this to my brother and see if that does the trick (then come back and mark helpful answers).

                Keri

                Anthony_NorthSEO 1 Reply Last reply Reply Quote 0
                • Anthony_NorthSEO
                  Anthony_NorthSEO @KeriMorgret last edited by

                  Hi Keri,

                  Just wanted to check on this and make sure you got everything worked out.

                  Thanks!

                  Anthony

                  KeriMorgret 1 Reply Last reply Reply Quote 0
                  • KeriMorgret
                    KeriMorgret @Anthony_NorthSEO last edited by

                    It looks like he did get what he wanted done for now. Thanks everyone!

                    1 Reply Last reply Reply Quote 0
                    • 1 / 1
                    • First post
                      Last post
                    • Help with redirects
                      Dr-Pete
                      Dr-Pete
                      0
                      4
                      154

                    • Help needed on URL structures
                      CommT
                      CommT
                      0
                      2
                      84

                    • Web Designer Needed
                      jesse-landry
                      jesse-landry
                      0
                      10
                      216

                    • I need help with international SEO for two sites?
                      seowoody
                      seowoody
                      0
                      3
                      230

                    • Need help in website URL Structure
                      Jungles
                      Jungles
                      0
                      4
                      296

                    • Need help to implement microdata/microformat for ecommerce site
                      MatthewBarby
                      MatthewBarby
                      0
                      14
                      2.8k

                    • Need help with image resizing (re: slow site)
                      clotairedamy
                      clotairedamy
                      0
                      10
                      1.2k

                    • Google News we were dropped and need help finding ot why
                      IPINGlobal54
                      IPINGlobal54
                      0
                      3
                      1.0k

                    Get started with Moz Pro!

                    Unlock the power of advanced SEO tools and data-driven insights.

                    Start my free trial
                    Products
                    • Moz Pro
                    • Moz Local
                    • Moz API
                    • Moz Data
                    • STAT
                    • Product Updates
                    Moz Solutions
                    • SMB Solutions
                    • Agency Solutions
                    • Enterprise Solutions
                    • Digital Marketers
                    Free SEO Tools
                    • Domain Authority Checker
                    • Link Explorer
                    • Keyword Explorer
                    • Competitive Research
                    • Brand Authority Checker
                    • Local Citation Checker
                    • MozBar Extension
                    • MozCast
                    Resources
                    • Blog
                    • SEO Learning Center
                    • Help Hub
                    • Beginner's Guide to SEO
                    • How-to Guides
                    • Moz Academy
                    • API Docs
                    About Moz
                    • About
                    • Team
                    • Careers
                    • Contact
                    Why Moz
                    • Case Studies
                    • Testimonials
                    Get Involved
                    • Become an Affiliate
                    • MozCon
                    • Webinars
                    • Practical Marketer Series
                    • MozPod
                    Connect with us

                    Contact the Help team

                    Join our newsletter
                    Moz logo
                    © 2021 - 2026 SEOMoz, Inc., a Ziff Davis company. All rights reserved. Moz is a registered trademark of SEOMoz, Inc.
                    • Accessibility
                    • Terms of Use
                    • Privacy