Click here to Skip to main content
16,012,316 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi ,

I try to put panels in a div. I want to when the panels total width pass the div's width a horizontal scroll shown.
This is my aspx page;

ASP.NET
<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="IlanEkleDeneme.aspx.cs" Inherits="IlanEkleDeneme" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <div id="KategoriSecimBaslık">
        İlan Eklemek İçin Kategori Seçimi Yapınız.
    </div>
    <div id="Kategori_Secim">
        <asp:Panel ID="Panel1" runat="server">
            <div class="Kategori_List">
                <asp:ListBox ID="lstbox1" runat="server" Height="250px" Width="200px" AutoPostBack="True" OnSelectedIndexChanged="lstbox1_SelectedIndexChanged"></asp:ListBox>
            </div>
        </asp:Panel>
        <asp:Panel ID="Panel2" runat="server" Visible="False">
            <div class="Kategori_List">
                <asp:ListBox ID="ListBox1" runat="server" Height="250px" Width="200px" AutoPostBack="True" OnSelectedIndexChanged="ListBox1_SelectedIndexChanged"></asp:ListBox>
            </div>
        </asp:Panel>
        <asp:Panel ID="PanelIslem" runat="server" Visible="False">
            <div class="Kategori_List">
                <asp:ListBox ID="ListBoxIslem" runat="server" Height="250px" Width="200px" AutoPostBack="True" OnSelectedIndexChanged="ListBoxIslem_SelectedIndexChanged"></asp:ListBox>
            </div>
        </asp:Panel>
        <asp:Panel ID="Panel3" runat="server" Visible="False">
            <div class="Kategori_List">
                <asp:ListBox ID="ListBox2" runat="server" Height="250px" Width="200px" AutoPostBack="True" OnSelectedIndexChanged="ListBox2_SelectedIndexChanged"></asp:ListBox>
            </div>
        </asp:Panel>
        <asp:Panel ID="Panel4" runat="server" Visible="False">
            <div class="Kategori_List">
                <asp:ListBox ID="ListBox3" runat="server" Height="250px" Width="200px" AutoPostBack="True"></asp:ListBox>
            </div>
        </asp:Panel>
        <asp:Panel ID="Panel5" runat="server" Visible="False">
            <div class="Kategori_List">
                <asp:ListBox ID="ListBox4" runat="server" Height="250px" Width="200px" AutoPostBack="True"></asp:ListBox>
            </div>
        </asp:Panel>
        <asp:Panel ID="PanelOk" runat="server" Visible="False">
            <div id="Kategori_Ok">
                <div id="Kategori_OkImage">
                    <asp:Image ID="imgKategoriOk" runat="server" ImageUrl="~/images/ok2.png" />
                </div>
                <div id="Kategori_OkYazi">Kategori Seçimi Tamamlandı.</div>
                <div id="Kategori_Devam">
                    <asp:Button ID="btnDevam" runat="server" Text="Devam" />
                </div>
            </div>
        </asp:Panel>
    </div>
</asp:Content>


and this is css file

CSS
#KategoriSecimBaslık {
    height: 30px;
    width: 970px;
    padding-bottom: 5px;
    font-family: 'Trebuchet MS';
    color: #333333;
    text-align: center;
}
#Kategori_Secim {
    height: 300px;
    width: 970px;
    overflow-x: auto;
    overflow-y: hidden;
}
.Kategori_List {
    height:100px;
    padding-left:5px;
    float:left;
}
#Kategori_Ok {
    height:250px;
    width:200px;
    padding-left:5px;
    float:left;
}
#Kategori_OkImage {
    height:64px;
    width:64px;
    padding-top:10px;
    padding-left:68px;
}
#Kategori_OkYazi {
    width:200px;
    font-family: 'Trebuchet MS';
    color: #333333;
    text-align: center;
}
#Kategori_Devam {
    padding-top:10px;
    padding-left:68px;
}
Posted
Comments
JoCodes 8-Jan-14 23:22pm    
Now what happening with this code?Whats the issue?
sabridemirel 9-Jan-14 6:18am    
Appear a vertical scroll.or no scroll

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900