I am trying to centre a div but having difficulty. Beneath the chart in  I have a table which I want to centre under the chart.  I have tried the class below, I also set the width but it doesn't seem to work. It looks to me like the right hand side of the table is centred to the middle of the chart rather than the middle of the chart. I am not fully understanding the behaviour.  html   &lt;div id="IndexArea" class="content"&gt;     &lt;div id="redraw" style="float:left"&gt;             &lt;button class="ui-button ui-widget ui-corner-all"&gt;Paint&lt;/button&gt;     &lt;/div&gt;     &lt;div id="range-butts-index" style="float:right"&gt;         &lt;button class="ui-button ui-widget ui-corner-all" data-range="5"&gt;5d&lt;/button&gt;         &lt;button class="ui-button ui-widget ui-corner-all" data-range="20"&gt;MTD&lt;/button&gt;         &lt;button class="ui-button ui-widget ui-corner-all" data-range="999"&gt;Max&lt;/button&gt;     &lt;/div&gt;     &lt;div id="chartIndexPerf" class="indexChart"&gt;&lt;/div&gt;     &lt;div id="tableIndexPerf" class="centerDiv"&gt;&lt;/div&gt;       css  .indexChart{     clear: both;     height: 500px; }  .centerDiv{     margin: auto; }  .content {     height: 1000px;   background-color: #F5CF8E;   overflow: hidden; }
How can I horizontally center a &lt;div&gt; within another &lt;div&gt; using CSS? &lt;div id=&quot;outer&quot;&gt;   &lt;div id=&quot;inner&quot;&gt;Foo foo&lt;/div&gt; &lt;/div&gt;
Bizarre spacing with 4 $\star$s What is spin as it relates to subatomic particles? I often hear about subatomic particles having a property called "spin" but also that it doesn't actually relate to spinning about an axis like you would think. Which particles have spin? What does spin mean if not an actual spinning motion? What is the best way to iterate over a dictionary? I've seen a few different ways to iterate over a dictionary in C#.  Is there a standard way? How do I import a Python module given its relative path?  For example, if dirFoo contains Foo.py and dirBar, and dirBar contains Bar.py, how do I import Bar.py into Foo.py?  Here's a visual representation:  dirFoo\     Foo.py     dirBar\         Bar.py   Foo wishes to include Bar, but restructuring the folder hierarchy is not an option. Can I travel to the UK on different dates from those on my entry clearance? I have a "Standard Visitor Entry Clearance" for the UK and will be traveling there from Saudi Arabia.    Is it necessary to travel on the same date I provided on my application?  Will the Immigration Officer check?  Will it make problems if I travel on a different date? How can I get form data with JavaScript/jQuery? List of generally believed conjectures which cannot all be true There are some conjectures which most leading experts believe in albeit no one can prove it yet. For example: $\mathcal{P} \neq \mathcal{NP}$, the Riemann hypothesis or the Collatz conjecture.  My question is whether there is a set of such conjectures which cannot all be true, eg. is a statement such as "Either $\mathcal{P} = \mathcal{NP}$ or the Riemann hypothesis is wrong" true? $A$ is a $n\times n$ matrix such that $ A^m = 0 $ for some positive integer $m$.   Show that $A^n = 0$.   My attempt: For $n &gt; m$, it's obvious since matrix multiplication is associative.  For $n &lt; m$, $A^n\times A^{m-n} = 0$; not sure what to do next. Also I know that $\det A = 0$. Does English allow a zero copula in subordinate clauses? In a casual search of the web, I found a few indications English does not allow zero copulas ().  However, I frequently see sentences with subordinate clauses that juxtapose a noun phrase with an adverb phrase, such as the following from a contemporary sci-fi author:  Kai stares up at me from the grave, his eyes hard as obsidian.  If this clause were made into a sentence, it would take an obligatory verb:  *His eyes hard as obsidian.  His eyes are hard as obsidian.  The original clause seems to contain an implicit "to be."  Is it an example of a zero copula?  If not, what is this construction called? how to make clean without any modification? Share your experiences on exploring iOS 7 with us..  Whether you found hidden or little-known feature of iOS 7 or can explain how a big feature makes a difference, we're looking for objective reports of how the new OS affects your workflow.  Also provide details on how to achieve that feature, and if possible, include a relevant image too (hold Home and Lock for a screenshot on your iOS device).    Please post one tip per answer. Please also check to see if your answer has already been posted - duplicate answers will be deleted in favour of the original answer on any given topic. To search answers for this question use inquestion:101382 (or inquestion:this, directly from the question page) in addition to your search terms in the search box in the upper right hand corner of this page. Highest quality website screenshot? I have created a  that i would like to add to my portfolio, but i'm having a hard time getting high quality screenshots of the full site. I tried to save the website as PDF, but that was full of errors, other online services cant recreate the images and so on. I've also just tried to take regular screenshots on the mac at put it all together, but it really lost a lot of quality when i scaled it down.  Any good ideas? :) At school, I really struggled to understand the concept of imaginary numbers.  My teacher told us that an imaginary number is a number that has something to do with the square root of $-1$.  When I tried to calculate the square root of $-1$ on my calculator, it gave me an error.  To this day I still do not understand imaginary numbers.  It makes no sense to me at all.  Is there someone here who totally gets it and can explain it?  Why is the concept even useful? I am working on refactoring some old code and have found few structs containing zero length arrays (below). Warnings depressed by pragma, of course, but I've failed to create by "new" structures containing such structures (error 2233). Array 'byData' used as pointer, but why not to use pointer instead? or array of length 1? And of course, no comments were added to make me enjoy the process...  Any causes to use such thing? Any advice in refactoring those?  struct someData {    int nData;    BYTE byData[0]; }   NB It's C++, Windows XP, VS 2003 On Windows 10 Professional, with the November update (Build 10586, Version 1511) , is there any possibility to completely remove Windows Defender ?  I don't want to just disable Windows Defender.  I want to completely uninstall from my system. What version of Ubuntu should I pick? I'm just a simple user frustrated with Windows 10 and I want to leave Windows altogether.  However, I don't want to spend three weeks learning how to install the new system and then get all my current programs to work.  I am not setting up a server, I am not a developer and I do not want all my stuff on a cloud. Python 3 with QGIS on Mac? I need to start learning Python, and I want to learn with version 3.x. I understand that QGIS--at least some plug-ins--relies on Python and Tcl/Tk, and probably on specific versions. Assuming that QGIS is dependent on Python 2, can anyone tell me how to set up parallel installations of Python 3 and Tcl/Tk such that QGIS will have what it needs and I can use Python 3 for other purposes? How can I install Windows software or games? has been, have been , had been Why is setTimeout(fn, 0) sometimes useful?