The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.

Create a free forum like this one.

using divs as a table....

Go down

using divs as a table....

Post by jcooper on June 11th 2011, 11:45 pm

Hey guys im relatively new to HTML and CSS but i cant see what wrongs with this piece of code Sad

im trying to make a table for some forum awards im putting together...
heres the code:


<style media="screen" type="text/css">

#container {
    display: table;

  #row  {
    display: table-row;

  #left, #right, #middle {
    display: table-cell;




<div id="container">
  <div id="row">

     <div id="left">
        <h4>Left Col</h4>

     <div id="middle">
        <h4>Middle Col</h4>

     <div id="right">
       <h4>Right Col</h4>



heres the what the page looks like...

i just cant figure out how to get all three columns to line up properly...


Male Posts : 26
Reputation : 0
Language : English

Back to top Go down

Re: using divs as a table....

Post by Mr_Waffle on June 12th 2011, 2:01 am

Why don't you just use a table? I don't know the CSS for it from the top of my head but I know it's there.
New Member

Posts : 24
Reputation : 0
Language : Dutch | HTML | CSS | JavaScript | jQuery | Java | MIPS ASM | Learning C#

Back to top Go down

Back to top

Permissions in this forum:
You cannot reply to topics in this forum