Total members 11119 |It is currently Wed May 22, 2013 7:14 pm Login / Join Codemiles

All times are UTC [ DST ]



  Creating table using div tag
Sat Jan 07, 2012 10:41 am 

create table using div and css, the idea is to use many div tags to create a table look.
Code:


<html>
    <head>
        <title>Create table using Div</title>
        <style type='text/css'>
            div#container {
                border: 1px solid;
                margin:5px;
                background: #ACFF22;
            }
            div#float {
                text-align: center;
                float: left;
                border: 1px solid black;
                width: 140px;
                height: 100px;
            }
            div.tableContent {
                background: #FBCA43;
                border: 1px solid black;
            }
            div#Footer {
                border: 1px solid black;
                background: lightgreen;
                clear: both;   
            
}
        </style>
    </head>
    <body>
        <div id='container'>
            <div id='float'>
                Column 1
                  
<div class='tableContent'>
                   Data 1
                    
</div>
            </div>
              <div id='float'>
                Column 2
                  
<div class='tableContent'>
                   Data 2
                  
</div>
            </div>
              <div id='float'>
                Column 3
                  
<div class='tableContent'>
                   Data 3
                    
</div>
            </div>
           
              
                Data main div
            
<div class='tableContent'>
                 Data 
            
</div>
                Data main div
            
<div id='Footer'>
                 Can be used as table footer
            
</div>
            <div>
                
            
</div>
        </div>
    </body>
</
html>
 


_________________
Please recommend / share my post if you found it helpful.


Author:
Mastermind
User avatar Posts: 2786
Have thanks: 71 time
TOP
   
 
Post new topic Reply to topic  [ 1 post ] 

  Related Posts  to : Creating table using div tag
 creating application     -  
 Creating a Method in jsp     -  
 Creating a Directory in php     -  
 creating arrays in java     -  
 Creating Glass Buttons     -  
 Creating a Database in MySQL     -  
 Creating Menu Button     -  
 Creating a JAR file in Java     -  
 Creating a Flash Banner     -  
 Creating Effective Clouds     -  

All times are UTC [ DST ]



Jump to:  




Home
General Talks
Finished Projects
Code Library
Games
Tutorials

Java
C/C++
C-sharp
php
Script
JSP/Servlets
Ajax
ASP/ASP.net
Google SEO
Database
Communications
Phpbb3 styles
Photoshop tutorials
Flash tutorials
Find a job






Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
All copyrights reserved to codemiles.com 2007->Today
mileX v1.0 designed by codemiles team