Skip to content
    Moz logo Menu open Menu close
    • Products
      • Moz Pro
      • Moz Pro Home
      • Moz Local
      • Moz Local Home
      • STAT
      • Moz API
      • Moz API Home
      • Compare SEO Products
      • Moz Data
    • Free SEO Tools
      • Domain Analysis
      • Keyword Explorer
      • Link Explorer
      • Competitive Research
      • MozBar
      • More Free SEO Tools
    • Learn SEO
      • Beginner's Guide to SEO
      • SEO Learning Center
      • Moz Academy
      • SEO Q&A
      • Webinars, Whitepapers, & Guides
    • Blog
    • Why Moz
      • Agency Solutions
      • Enterprise Solutions
      • Small Business Solutions
      • Case Studies
      • The Moz Story
      • New Releases
    • Log in
    • Log out
    • Products
      • Moz Pro

        Your all-in-one suite of SEO essentials.

      • Moz Local

        Raise your local SEO visibility with complete local SEO management.

      • STAT

        SERP tracking and analytics for enterprise SEO experts.

      • Moz API

        Power your SEO with our index of over 44 trillion links.

      • Compare SEO Products

        See which Moz SEO solution best meets your business needs.

      • Moz Data

        Power your SEO strategy & AI models with custom data solutions.

      NEW Keyword Suggestions by Topic
      Moz Pro

      NEW Keyword Suggestions by Topic

      Learn more
    • Free SEO Tools
      • Domain Analysis

        Get top competitive SEO metrics like DA, top pages and more.

      • Keyword Explorer

        Find traffic-driving keywords with our 1.25 billion+ keyword index.

      • Link Explorer

        Explore over 40 trillion links for powerful backlink data.

      • Competitive Research

        Uncover valuable insights on your organic search competitors.

      • MozBar

        See top SEO metrics for free as you browse the web.

      • More Free SEO Tools

        Explore all the free SEO tools Moz has to offer.

      What is your Brand Authority?
      Moz

      What is your Brand Authority?

      Check yours now
    • Learn SEO
      • Beginner's Guide to SEO

        The #1 most popular introduction to SEO, trusted by millions.

      • SEO Learning Center

        Broaden your knowledge with SEO resources for all skill levels.

      • On-Demand Webinars

        Learn modern SEO best practices from industry experts.

      • How-To Guides

        Step-by-step guides to search success from the authority on SEO.

      • Moz Academy

        Upskill and get certified with on-demand courses & certifications.

      • SEO Q&A

        Insights & discussions from an SEO community of 500,000+.

      Unlock flexible pricing & new endpoints
      Moz API

      Unlock flexible pricing & new endpoints

      Find your plan
    • Blog
    • Why Moz
      • Small Business Solutions

        Uncover insights to make smarter marketing decisions in less time.

      • Agency Solutions

        Earn & keep valuable clients with unparalleled data & insights.

      • Enterprise Solutions

        Gain a competitive edge in the ever-changing world of search.

      • The Moz Story

        Moz was the first & remains the most trusted SEO company.

      • Case Studies

        Explore how Moz drives ROI with a proven track record of success.

      • New Releases

        Get the scoop on the latest and greatest from Moz.

      Surface actionable competitive intel
      New Feature

      Surface actionable competitive intel

      Learn More
    • Log in
      • Moz Pro
      • Moz Local
      • Moz Local Dashboard
      • Moz API
      • Moz API Dashboard
      • Moz Academy
    • Avatar
      • Moz Home
      • Notifications
      • Account & Billing
      • Manage Users
      • Community Profile
      • My Q&A
      • My Videos
      • Log Out

    The Moz Q&A Forum

    • Forum
    • Questions
    • Users
    • Ask the Community

    Welcome to the Q&A Forum

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

    1. Home
    2. SEO Tactics
    3. On-Page Optimization
    4. Does css float affect SEO?

    Moz Q&A is closed.

    After more than 13 years, and tens of thousands of questions, Moz Q&A closed on 12th December 2024. Whilst we’re not completely removing the content - many posts will still be possible to view - we have locked both new posts and new replies. More details here.

    Does css float affect SEO?

    On-Page Optimization
    4
    4
    1422
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as question
    Log in to reply
    This topic has been deleted. Only users with question management privileges can see it.
    • cmp101
      cmp101 last edited by

      It is generally believed that the closer the content is to the top of the page, the better it is for SEO.  If that's incorrect, please let me know.

      I have a 2 column site where the left menu is navigation and right side is content.  Obviously, the left menu appears in the code before the content does, but I can flip them around via css float.  If I do that, the content will appear on the left visually, even though in the code it still comes after the left side navigation.

      Do either positions affect seo?

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

        I would not worry about moving the code, I would use html5 elements to tell the search engine what is what. Such as

        <header>

        <nav>

        <menu>

        <aside></aside>

        </menu>

        </nav>

        </header>

        1 Reply Last reply Reply Quote 0
        • dot-B-dot-B
          dot-B-dot-B last edited by

          To follow up on what Holger said - you are not using CSS to do anything "tricky" to game Google.  By placing the important content at the top your raw coded content is structured exactly as it should be.  What you are doing is 100% legit and it could also be very easily be argued that you are improving the code from a structural standpoint.

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

            I think you can test this issue best with a "Text-Only-Browser" to see how search engines see your page.

            Here are some links:
            If your page is already indexed with Google, put in the following URL:
            http://webcache.googleusercontent.com/search?q=cache:example.com
            Google will show in the grey cache-info box a link "text-only-version"

            The Safari-Browser shows a "reader Icon" if there is a lot of text on a page...
            Or you may check this link for more Text-Browsers: http://www.internetmarketingninjas.com/blog/seo-tools/5-text-only-browsers/

            Hope this helps!

            1 Reply Last reply Reply Quote 1
            • 1 / 1
            • First post
              Last post

            Got a burning SEO question?

            Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.


            Start my free trial


            Browse Questions

            Explore more categories

            • Moz Tools

              Chat with the community about the Moz tools.

            • SEO Tactics

              Discuss the SEO process with fellow marketers

            • Community

              Discuss industry events, jobs, and news!

            • Digital Marketing

              Chat about tactics outside of SEO

            • Research & Trends

              Dive into research and trends in the search industry.

            • Support

              Connect on product support and feature requests.

            • See all categories

            Related Questions

            • jasparcj

              Is page speed important to improve SEO ranking?

              seo page rank google seo tactic search visibility

              I saw on a SEO Agency's site (https://burstdgtl.com/search-engine-optimization/) that page speed apparently affects Google ranking. Is this true? And if it is, how do I improve it, do I need an agency?

              On-Page Optimization | | jasparcj
              0
            • opiates

              Is NitroPack plugin Black Hat SEO for speed optimization

              We are getting ready to launch our redesigned WP site and were considering using NitroPack performance optimization plugin, until some of our developers started ringing the alarm. Here is what some in the SEO community are saying about the tool. The rendering of the website made with the NitroPack plugin in the Page Metric Test Tools is based entirely on the inline CSS and JS in the HTML file without taking into account additional numerous CSS or JS files loaded on the page. As a result, the final metric score does not include CSS and JavaScript files evaluation and parsing. So what they are saying is that a lot of websites with the NitroPack plugin never become interactive in the Page Metric Tools because all interactivity is derived from JavaScript and CSS execution. So, their "Time to Interactive" and "Speed Index" should be reported as equal to infinity. Would Google consider this Black Hat SEO and start serving manual actions to sites using NitroPack? We are not ready to lose our hard-earned Google ranking. Please, let me know your thoughts on the plugin. Is it simply JS and CSS "lazy loading" that magically offers the first real-world implementation that works magic and yields fantastic results, or is it truly a Black Hat attempt at cheating Google PageSpeed Insights numbers? Thank you!

              On-Page Optimization | | opiates
              0
            • Christinaa

              Tags - Good or bad for SEO

              We are getting Moz errors for duplicate content because tag pages share the same blog posts. Is there any way to fix this? Are these errors bad for SEO, or can I simply disregard these and ignore them? We are also getting Moz errors for missing descriptions on tag pages. I am unsure how to fix these errors, as we do not actually have pages for these on our WordPress site where we are able to put in a description. I have heard that having tags can be good for SEO? (We don't mind having several links that show up when searching for us on google...) As far as the SEO goes, I am not sure what to do. Does anyone know the best strategy?

              On-Page Optimization | | Christinaa
              0
            • Dan_Brown1

              Address on Every page of the website for Local SEO? Good or Bad?

              Is this good idea to add business address on every page of the website?, How Google see this? and This is Good or bad for ranking?

              On-Page Optimization | | Dan_Brown1
              0
            • VivaArturo

              Does show/hide element with javascript impact SEO

              Hi I am developing an ecommerce site and want to place text on all category and home page. The challenge is that 300 words of text for the pages does not fit into the design appropriately especially on the home page. If I were to use a show/hide element with javascript would this be seen as spam or a trick to the search engines. I do not think it is spam as it will be actual content for the site and the visitor can view it if they click on the show button. Would love to hear your thoughts?

              On-Page Optimization | | VivaArturo
              0
            • david305

              Analyzing word count on page SEO

              Hey guys quick question, when I am analyzing/ doing word count for a particluar key word and I want to make sure that i am no where near Keyword stuffing, does Google consider the alt and title tags keywords of images as part of the KW count when looking for on page Keyword stuffing. For example. let say I have a page that i just created with 1000 words. and Only 2 of the words are my target Keywords. Then, if i add a picture and add the keyword to both the alt and title tag and description of the image, does google now consider the "page" to have a total of 5 keywords? Also, a lot has changed recently since penguin and panda, is there a good rule of thumb for what ratio to stay under as far as keywords to text.?

              On-Page Optimization | | david305
              0
            • KnutDSvendsen

              SEO for Japan

              Google and Yahoo are the two major search engines in Japan. You can search using Western characters, and you often see English language results with Japanese (Chinese) characters next to them. As I don't speak Japanese, how do I approach SEO for my Japanese-language site? would appreciate any experiences and educational sources on the topic.

              On-Page Optimization | | KnutDSvendsen
              0
            • goperformancelabs

              HAVING A POPUP WINDOW ON HOMEPAGE AFFECTS SEO?

              Good evening, I currently have a blog that uses a popup window after 15 seconds that is used to add visitor to my newsletter. My question is :  Does it have a negative effect in SEO? Thanks in advance Maria Jesus

              On-Page Optimization | | goperformancelabs
              0

            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
            Free SEO Tools
            • Domain Authority Checker
            • Link Explorer
            • Keyword Explorer
            • Competitive Research
            • Brand Authority 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 - 2025 SEOMoz, Inc., a Ziff Davis company. All rights reserved. Moz is a registered trademark of SEOMoz, Inc.
            • Accessibility
            • Terms of Use
            • Privacy

            Looks like your connection to Moz was lost, please wait while we try to reconnect.