Sport news and betting advice site

Discussion in 'PHP' started by whomali, Jan 6, 2012.

  1. #1
    Hi

    I own a web site for a betting advice and i'm currently working on a new design in which i would like to include sport news also. But i have problem with styling the reading from db. I want to get two rows from tables and output in two columns in one row to my web site. I have a display function but it is displaying results in different row.
    ex.

    news 1 | news 2
    news 3 | news 4
    ..
     
    Solved! View solution.
    Last edited: Jan 6, 2012
    whomali, Jan 6, 2012 IP
  2. #2
    Just use css and output it as a list.

    <ul class="twocolumns">
    <li>item 1</li>
    <li>ite 2</li>
    </ul>

    then for the css do something like

    .twocolumns li {
    float: left;
    width: 300px;
    }
     
    adultwordpressthemes, Jan 6, 2012 IP
  3. whomali

    whomali Peon

    Messages:
    9
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    thanks it helped me a lot
     
    whomali, Jan 7, 2012 IP