Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8441329
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T08:32:30+00:00 2026-06-10T08:32:30+00:00

I am having extensive trouble with tiling my graphs horizontally instead of one beneath

  • 0

I am having extensive trouble with tiling my graphs horizontally instead of one beneath the other. For some reason, float:left refuses to work. This is what I currently have:

<h2><center>Title1</center></h2>
<div id="flot-graph-1" class="graph-area"></div>
<h2><center>Title2</center></h2>
<div id="flot-graph-2" class="graph-area"></div>
<h2><center>Title3</center></h2>
<div id="flot-graph-3" class="graph-area"></div>

I’ve tried adding style="float:left" in the div, but it doesn’t work. I’ve also tried surrounding this whole text in another div container, and then adding the same style phrase. No dice. Tried going to CSS page, trying something like

#flot-graph-3
{
    float: left;
}

Still nothing. I tried display:inline as well, but still nothing is working. Instead of tiling horizontally, it is just erasing the left-margin and sticking to the left of my metro app (but still appearing one beneath the other). Help please! Does anyone know how to solve this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T08:32:31+00:00Added an answer on June 10, 2026 at 8:32 am

    You can do this by setting the graph-area class to display:inline-block in your css and setting the width of the parent container to ‘at least’ 3x the width of each graph, this way they will sit next to each other in a line.

    You could also use float:left, but I suspect your parent element is not big enough and the graphs are overflowing onto the next line

    display:inline wont work as flot requires the graphs to be block level elements

    If you want the h2 titles above each graph you will need to wrap each graph and title in its own div, as the h2 element is a block

    eg.

    HTML:

    <div class="graphWrapper">
        <div class="graph-area">
            <h2><center>Title1</center></h2>
            <div id="flot-graph-1" class="graph-area"></div>
        </div>
        ....etc
    </div>
    

    CSS:

    .graphWrapper{width:1000px} /* at least 3x width of graph */
    .graph-area{display:inline-block}
    

    etc.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Having some trouble sending properly formatted HTML e-mail from a PHP script. I am
I'm having trouble with some URL rewriting. All of the stuff below works fine,
I'm having trouble getting a custom config section to work. It's some code I
Having some trouble with these methods on C# 2010 express with a new winform
I'm having trouble importing the liferay taglibs in one of my JSP pages, no
I'm having some trouble installing jekyll. Can't quite figure out how to patch the
I'm designing a database for a new CMS and having some trouble structuring tables
I'm having some trouble with drawing polygons on a Google Map through the JavaScript
I am having some trouble diplaying the values of my checkboxes in the email
I'm having some trouble compiling my work, I'm using Ubuntu with g++ . I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.