The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

using divs as a table....

2 posters

Go down

using divs as a table.... Empty using divs as a table....

Post by jcooper 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:
Code:

<head>


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


#container {
    display: table;
    }

  #row  {
    display: table-row;
    }

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


</style>

</head>

<body>

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

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

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

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

   </div>
</div>

<body>

heres the what the page looks like...
http://www.endeavourgaming.com/page_html.forum?mode=preview

i just cant figure out how to get all three columns to line up properly...
help?
avatar
jcooper
Forumember

Male Posts : 26
Reputation : 0
Language : English

Back to top Go down

using divs as a table.... Empty Re: using divs as a table....

Post by Mr_Waffle 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.
Mr_Waffle
Mr_Waffle
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