Skip to content

Commit

Permalink
Change table-layout to auto and finally get decent width scaling
Browse files Browse the repository at this point in the history
  • Loading branch information
tobami committed Jan 11, 2011
1 parent bfc6b45 commit 2a2c40f
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions speedcenter/media/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -210,22 +210,15 @@ a.checkall { margin-left: 0.4em; }
p.errormessage { line-height: 10em; margin-bottom: 10em; }

/* Changes table layout */
div#contentwrap { display: table; table-layout: fixed; width: 100%; }
div#contentwrap { display: table; table-layout: auto; width: 100%; }
div#contentwrap div { display: table-cell; }
div#contentwrap div.leftcolumn { width: 55%;}
div#contentwrap div.rightcolumn { padding-left: 0.8em; }

div#contentwrap div div { display: block; }

/* For large screens don't expand the left colunm so much */
@media only screen and (min-width:1270px) {
div#contentwrap div.leftcolumn { width: 34em; }
}

/* 1024px wide screen Tablet, Netbook */
/* Remove outher margins so that it comfortably fits */
@media only screen and (max-width:1100px) {
div#contentwrap div.leftcolumn { width: 28.1em; }
div#containter { width: 100%; margin: 0; }
div#workarea { padding-left: 0.3em; }
div#sidebar { width: 12.5em; }
Expand Down Expand Up @@ -269,7 +262,7 @@ table.tablesorter { margin-right: 0.8em; margin-bottom: 0.8em; }
table.tablesorter thead tr th {
padding: 4px;
padding-right: 14px;
/* width: 5.5em;*/
width: 5em;
text-align: center;
background-color: #9DADC6;
border: 1px solid #CDCDCD;
Expand Down

0 comments on commit 2a2c40f

Please sign in to comment.