[PATCH] Adjust step 2 page to use two-column layout.
This commit is contained in:
		
							parent
							
								
									ea2e2e9d9f
								
							
						
					
					
						commit
						5667f10a3e
					
				
					 2 changed files with 22 additions and 15 deletions
				
			
		|  | @ -18,17 +18,12 @@ function step2_do () { | ||||||
| 
 | 
 | ||||||
|   $result .= "<p><noscript>Note: This page requires Javascript</noscript></p>"; |   $result .= "<p><noscript>Note: This page requires Javascript</noscript></p>"; | ||||||
| 
 | 
 | ||||||
|   $result .= "<div class=\"canddata\">\n"; |   $result .= '<table>'; | ||||||
|   $result .= "<h3>Candidates</h3>\n"; |   $result .= '  <tr>'; | ||||||
|   $result .= "<ul id=\"candidates\">\n"; |   $result .= '    <td class="canddata"><h3>Candidates</h3><ul id="candidates"></ul></td>'; | ||||||
|   $result .= "</ul>\n"; |   $result .= '    <td class="prefdata"><h3>Preferences</h3><ol id="preferences"></ol></td>'; | ||||||
|   $result .= "</div>"; |   $result .= '  </tr>'; | ||||||
|   $result .= "<div class=\"prefdata\">"; |   $result .= '</table>'; | ||||||
|   $result .= "<h3>Preferences</h3>\n"; |  | ||||||
|   $result .= "<ol id=\"preferences\">\n"; |  | ||||||
|   $result .= "</ol>\n"; |  | ||||||
| 
 |  | ||||||
|   $result .= "</div>\n"; |  | ||||||
| 
 | 
 | ||||||
|   return $result; |   return $result; | ||||||
| } | } | ||||||
|  |  | ||||||
|  | @ -82,10 +82,22 @@ if ($step==2) | ||||||
| { | { | ||||||
| ?> | ?> | ||||||
|     <style> |     <style> | ||||||
| .canddata, .prefdata{ | table { | ||||||
| width:30%; |   width: 100%; | ||||||
| height: <?php echo 1.8*count($choices); ?>em; |   table-layout: fixed; | ||||||
|  |   border: 4px solid #FFF; | ||||||
|  |   border-collapse: collapse; | ||||||
|  | } | ||||||
|  | td.canddata, td.prefdata { | ||||||
|  |   border: 4px solid #FFF; | ||||||
|  |   width: 50%; | ||||||
|  |   height: 27em; | ||||||
|   background: #E0FFD0; |   background: #E0FFD0; | ||||||
|  |   padding: 0.5em; | ||||||
|  |   vertical-align: top; | ||||||
|  | } | ||||||
|  | .canddata h3, .prefdata h3 { | ||||||
|  |   margin-top: 0; | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Michal Nazarewicz
						Michal Nazarewicz