Note that there are some explanatory texts on larger screens.

plurals
  1. POTable Alignment with Div
    primarykey
    data
    text
    <p>I needed some help with table alignment. I haven't coded for a while, and can't figure out what I am doing wrong here. I have these divs setup, and a table in one, but for some reason the table does not align to the middle. It just aligns with the left side of the table, and the rest leads off to the right. Here is my code:</p> <pre><code>&lt;div id="SlideShow_Wrapper" align="center"&gt; &lt;div id="SlideShow_Background" align="center"&gt; &lt;div align="center" id="SlideShow"&gt; &lt;table border="1" align="center" &gt; &lt;tr align="center"&gt; &lt;td style="padding-right:15px;"&gt;&lt;img src="LeftArrow.png" /&gt;&lt;/td&gt; &lt;td&gt;&lt;img id="SlideShow_Picture" src="Ore_Background.png" /&gt;&lt;/td&gt; &lt;td style="padding-left:15px;"&gt;&lt;img src="RightArrow.png" /&gt;&lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; </code></pre> <p>And here is my css:</p> <pre><code>#SlideShow { margin:0px auto; } #SlideShow_Background { background-image:url(Stone.png); border-radius:10px; width:820px; height:420px; } #SlideShow_Wrapper { padding-top:50px; } </code></pre> <p>I tried some things out, and when I remove the <code>SlideShow_Background</code>, the table aligns as normally, but when I add it back in, the table just aligns to the right. Any help would be nice</p> <p><em>EDIT:</em><br> I want the table to be centered, not off to the right. This <a href="http://jsfiddle.net/7CctF" rel="nofollow">jsFiddle</a> shows it, but without the content, but you can see what I mean.<br> And this next link is how I want it to be, <a href="http://jsfiddle.net/7CctF" rel="nofollow">jsfiddle.net/fuECu</a> see how it's centered, But I cant find a way to do that without taking off the <code>SlideShowbackground</code> div.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload