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....

View previous topic View next topic 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:
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?

jcooper
Forumember

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.

Mr_Waffle
New Member

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

Back to top Go down

View previous topic View next topic Back to top


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