NuggetKitty
New Member
Edit:Current layout:
Im trying to work out how within my ASP webpage design I can posistion a div (server side) under another div.To my question further I'll use the following screenshots:Currently this is my layout:
I want to position 2 more div one under another to give me a 'title' div and a 'description' div tat will later be populated by my database results, as shown:
This is my current source code. Can someone push me in the right direction of how i go about implementing these divs one of top of another like this?\[code\]<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Show.aspx.cs" Inherits="ViewCDs.Show" %><asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server"></asp:Content><asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server"> <div style=" float:left;"> <asp:Image ID="Image1" runat="server" Height="145px" ViewStateMode="Enabled" Width="185px" /> </div> <div style=" float:left; width: 395px; height: 140px;"> <asp:FormView ID="FormView1" runat="server"> <EditItemTemplate> coffeeName: <asp:TextBox ID="coffeeNameTextBox" runat="server" Text='<%# Bind("coffeeName") %>' /> <br /> coffeeOrigin: <asp:TextBox ID="coffeeOriginTextBox" runat="server" Text='<%# Bind("coffeeOrigin") %>' /> <br /> coffeeStrength: <asp:TextBox ID="coffeeStrengthTextBox" runat="server" Text='<%# Bind("coffeeStrength") %>' /> <br /> coffeeGrind: <asp:TextBox ID="coffeeGrindTextBox" runat="server" Text='<%# Bind("coffeeGrind") %>' /> <br /> coffeePrice: <asp:TextBox ID="coffeePriceTextBox" runat="server" Text='<%# Bind("coffeePrice") %>' /> <br /> coffeeQty: <asp:TextBox ID="coffeeQtyTextBox" runat="server" Text='<%# Bind("coffeeQty") %>' /> <br /> coffeeRRP: <asp:TextBox ID="coffeeRRPTextBox" runat="server" Text='<%# Bind("coffeeRRP") %>' /> <br /> <asp:LinkButton ID="UpdateButton" runat="server" CausesValidation="True" CommandName="Update" Text="Update" /> <asp:LinkButton ID="UpdateCancelButton" runat="server" CausesValidation="False" CommandName="Cancel" Text="Cancel" /> </EditItemTemplate> <InsertItemTemplate> coffeeName: <asp:TextBox ID="coffeeNameTextBox" runat="server" Text='<%# Bind("coffeeName") %>' /> <br /> coffeeOrigin: <asp:TextBox ID="coffeeOriginTextBox" runat="server" Text='<%# Bind("coffeeOrigin") %>' /> <br /> coffeeStrength: <asp:TextBox ID="coffeeStrengthTextBox" runat="server" Text='<%# Bind("coffeeStrength") %>' /> <br /> coffeeGrind: <asp:TextBox ID="coffeeGrindTextBox" runat="server" Text='<%# Bind("coffeeGrind") %>' /> <br /> coffeePrice: <asp:TextBox ID="coffeePriceTextBox" runat="server" Text='<%# Bind("coffeePrice") %>' /> <br /> coffeeQty: <asp:TextBox ID="coffeeQtyTextBox" runat="server" Text='<%# Bind("coffeeQty") %>' /> <br /> coffeeRRP: <asp:TextBox ID="coffeeRRPTextBox" runat="server" Text='<%# Bind("coffeeRRP") %>' /> <br /> <asp:LinkButton ID="InsertButton" runat="server" CausesValidation="True" CommandName="Insert" Text="Insert" /> <asp:LinkButton ID="InsertCancelButton" runat="server" CausesValidation="False" CommandName="Cancel" Text="Cancel" /> </InsertItemTemplate> <ItemTemplate> <b>Origin:</b> <asp:Label ID="coffeeOriginLabel" runat="server" Text='<%# Bind("coffeeOrigin") %>' /> <br /> <br /> <b>Grind:</b> <asp:Label ID="coffeeGrindLabel" runat="server" Text='<%# Bind("coffeeGrind") %>' /> <br /> <br /> <b>Price: