Total members 11343 |It is currently Thu Jul 24, 2014 8:18 pm Login / Join Codemiles

Java

C/C++

PHP

C#

HTML

CSS

ASP

Javascript

JQuery

AJAX

XSD

Python

Matlab

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: 2694
Have thanks: 73 time
Post new topic Reply to topic  [ 1 post ] 

  Related Posts  to : Creating table using div tag
 Creating SQL Table     -  
 Creating a Method in jsp     -  
 Creating a Directory in php     -  
 creating non ordered list using UL tag.     -  
 creating database in netbeans     -  
 Creating Brushes with Illustrator     -  
 Creating Rollovers in Photoshop     -  
 creating arrays in java     -  
 Creating Glass Buttons     -  
 Creating your own Exceptions in Java     -  

All times are UTC [ DST ]



Topic Tags

HTML Div






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