I want to create a page that justs has a paragraph of text centered in the page vertically and horizonally. Any ideas on how? Thanks
            Asked
            
        
        
            Active
            
        
            Viewed 584 times
        
    3 Answers
1
            
            
        If you know the paragraph width/height, you may use CSS with this method. I can only think of tables for dynamic content, maybe the CSS experts will have better options.
 
    
    
        Francisco Aquino
        
- 9,097
- 1
- 31
- 37
1
            
            
        <table style="width: 100%; height: 100%; border: 0px; padding: 0px; margin: 0px;">
    <tr>
        <td></td>
        <td></td>
        <td></td>
    </tr>
    <tr>
        <td style="width: 30%;"></td>
        <td>Test</td>
        <td style="width: 30%;"></td>
    </tr>
    <tr>
        <td></td>
        <td></td>
        <td></td>
    </tr>
</table>
Ajust the widths to your suiting. This is short of using complicated JavaScript.
 
    
    
        Francisco Aquino
        
- 9,097
- 1
- 31
- 37
 
    
    
        Thomas McFarlane
        
- 25
- 3
- 
                    Sorry, won't let me post a table.
 – Thomas McFarlane Aug 12 '11 at 01:26Test 
- 
                    I prefer to not use CSS for sites that just need a paragraph or such, actual projects or sites that require CSS anyway, I do tend to use negative margins. Never used jsFiddle though. – Thomas McFarlane Aug 12 '11 at 18:11
 
    