Q

Question

Flush table left with CSS

I have a web page with multiple css files and I am trying to get a table in the middle of the page to flush left.

      text
      text
      wide table starting beginning of centered text instead to left
      text
      text

As you see, all the text is centered but the wide table start where the centered text is instead of flush left.

I have tried in the head css style section:

body {
margin: 0; body: 0;
}

and on the table:
<table width="955" class="sortable" id="anyid" style="margin: 0 auto">

But it is like some other css command has defined a "smaller" page so it won' t use the entire browser windows.

How do only that table to go flush left of the browser window, and leave everything else as-is?


201409-LO-Qu-017

Get Smarter with
Cascading Style Sheets (CSS)


37,294

Answers


2,500+

Articles & Videos


10,171

Contributors

Ask the Cascading Style Sheets (CSS) Experts Your Question

Sign Up to Ask

Cancel anytime

What does a Premium Membership get you?

  • Unlimited Access to over 4 million verified technology solutions

  • Unlimited Access to thousands of interactive articles and videos

  • Unlimited technical writing assistance

  • Submit your projects for Expert Testing

  • Expand your professional network with our messaging and hire me features

  • Ad free and mobile optimized experience

Join the Network Today!

See Plans and Pricing