Total members 11895 |It is currently Tue Dec 03, 2024 6:42 pm Login / Join Codemiles

Java

C/C++

PHP

C#

HTML

CSS

ASP

Javascript

JQuery

AJAX

XSD

Python

Matlab

R Scripts

Weka





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>
 




_________________
M. S. Rakha, Ph.D.
Queen's University
Canada


Author:
Mastermind
User avatar Posts: 2715
Have thanks: 74 time
Post new topic Reply to topic  [ 1 post ] 

  Related Posts  to : Creating table using div tag
 Creating a Method in jsp     -  
 Creating a Directory in php     -  
 Creating Effective Clouds     -  
 Creating Brushes with Illustrator     -  
 Creating Rollovers in Photoshop     -  
 creating arrays in java     -  
 Creating Glass Buttons     -  
 Creating your own Exceptions in Java     -  
 Creating a Database in MySQL     -  
 Creating Menu Button     -  



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
Codemiles.com is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com