Single Column Design with Table : table layout « Table Style « HTML / CSS

HTML / CSS
1. Background Attributes
2. Basic Attributes
3. Basic Tags
4. Box Model
5. CSS Attributes and Javascript Style Properties
6. CSS Controls
7. Form Attributes
8. Form Style
9. Form Tags
10. Frame Attributes
11. Frame Tags
12. HTML
13. IE Firefox
14. Images
15. Layout
16. Layout Attributes
17. Link Attributes
18. Link Tags
19. List Attributes
20. List Style
21. List Tags
22. Marquee Attributes
23. Meta Tags
24. Microsoft Attributes
25. Object Attributes
26. Object Tags
27. Reference
28. Style Basics
29. Styles Tags
30. Table Attributes
31. Table Style
32. Table Tags
33. Text
34. Text Attributes
35. Text Tags
36. XML
Java
Java Tutorial
Java Source Code / Java Documentation
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
HTML / CSS » Table Style » table layout 
Single Column Design with Table
 
<?xml version="1.0" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitionalt//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
  <head>
    <title>Single Column Design</title>
    <style rel="stylesheet" type="text/css">
body {
  background-color: #efefef;
  font-family: arial, verdana, sans-serif;
}

table {
  background-color: #ffffff;
  border-style: solid;
  border-width: 1px;
  border-color: #666666;
}

td {
  font-size: 12px;
}

.header {
  background-color: #f3f3f3;
  padding: 3px;
}

.nav {
  font-weight: bold;
  background-color: #e3e3e3;
  padding: 5px;
}

.content {
  padding: 10px;
}

</style>
  </head> 
  <body>
    <table width="700" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td class="header"><h1>My Company Name</h1></td>
      </tr>
      <tr>
        <td class="nav"><a href="">Home</a> | <a href="">Products</a> | <a href="">Services</a> | <a href="">About Us</a> | <a href="">Contact Us</a></td>
      </tr>
      <tr>
        <td class="content">

        <h2>Sample Web Page</h2>
            <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Nunc eleifend, erat id 
            commodo placerat, nulla purus bibendum justo, in dictum orci mi vitae nulla. Nullam 
            semper viverra nulla. Sed lacinia feugiat eros. Maecenas ullamcorper ligula quis 
            odio. Donec pede massa, pharetra sit amet, accumsan a, iaculis egestas, lectus. Etiam 
            ullamcorper elementum wisi. Etiam et felis aliquet dui tempus sagittis. Donec dapibus 
            ipsum id leo. Integer est ante, imperdiet non, suscipit sit amet, varius a, sem. 
            Integer lobortis wisi id erat. Nullam aliquet augue ac elit. Nulla facilisi. Vivamus 
            ligula tortor, molestie at, accumsan quis, semper vitae, augue. Praesent pede neque, 
            sollicitudin non, facilisis sed, viverra a, pede. Cras nec urna. Curabitur ut metus. 
            Curabitur erat lacus, tempus vitae, elementum nec, pulvinar vel, leo. Sed a velit. 
            Proin erat. Donec sem. </p>


        </td>
      </tr>
    </table>
  </body>
</html>

 
Related examples in the same category
1. table-layout: fixed
2. table-layout: fixed and width setting
3. table-layout: default and width setting
4. Liquid Design in a Table
5. Mixed Column Layouts and Fixed Table
6. Mixed Column Layouts with sized table
7. Fixed Table with Flex Columns
8. Auto-layout Table with Flex Columns
9. stretched Table with Flex Columns
10. Mixed Column Layouts with shrinkwrapped table
11. Mixed Column Layouts and stretched table
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.