Css help is needed

Discussion in 'CSS' started by megetron, Feb 15, 2010.

  1. #1
    Hello,
    I have a code and I need to write the CSS to show all the divs horizontally:
    |IMAGE | Title |
    | Abstract |

    How can do this if the code is this:

    <div class="<%=CssClass %>">
    <div class="Title" >
    <asp:HyperLink ID="hlTitle" runat="server"/>
    </div>
    <div class="Year"><%=String.IsNullOrEmpty(Year)?"":"("+Year+")" %></div>
    <div class="Abstract" >
    <asp:HyperLink ID="hlAbstract" runat="server"/>
    </div>

    <div class="Image" >
    <asp:HyperLink ID="imgArticle" runat="server">
    <img src='thumb.ashx?width=90&height=60&img=covers/<%=ImageUrl %>' alt="<%=Title %>" />
    </asp:HyperLink>
    </div>
    </div>
     
    megetron, Feb 15, 2010 IP
  2. s_ruben

    s_ruben Active Member

    Messages:
    735
    Likes Received:
    26
    Best Answers:
    1
    Trophy Points:
    78
    #2
    To show all the divs horizontally use this css:

    div{
    display: inline;
    }
     
    s_ruben, Feb 15, 2010 IP
  3. Pintoria

    Pintoria Guest

    Messages:
    38
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    It's quite simple. Take a look HERE.
     
    Pintoria, Feb 16, 2010 IP