Tony La Valle
Tony La Valle

Reputation: 53

trying to create a table without using tables

What I am trying to do is create a 2 column table with sponsors names. I am using css external file but every time I think I got it something throws a monkey wrench. For instance IE9 my first sponsor name goes way off the mark.

<div id="Sponsors">
<dl>
       <dt>
          <dd>
             <sp>Seth Jackson-Edward Jones</sp>
          </dd>
       </dt>
     </dl>
</div>

Here is the css I have been using in an external css file

sp{
position: absolute;
top: 279px;
padding: 0 0 0 0;
font-weight: bold;
margin: 0 0 0 0;
color: #D91D1F;
width: 206px;
left: 338px;
}

I think I am doing this wrong. I want to be able to add more as I go.

Upvotes: 0

Views: 64

Answers (1)

lopa
lopa

Reputation: 474

use style="display:table" for main container div

and style="display:table-cell" for the rows cell .

ull be able to get a table like structure.

Upvotes: 1

Related Questions