Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 378549
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T14:48:20+00:00 2026-05-12T14:48:20+00:00

The markup below displays the panels one below the other. What I would like

  • 0

The markup below displays the panels one below the other. What I would like to do is display them right next to each other. Here is the markup:

<div>
    <asp:Panel ID="pnlA" runat="server">
        <img src="../images/A.png" /> 
        <asp:Literal ID="litA" runat="server" Text="A"></asp:Literal>
    </asp:Panel>
    <asp:Panel ID="pnlB" runat="server">
        <img src="../images/B.png" /> 
        <asp:Literal ID="litB" runat="server" Text="B"></asp:Literal>
    </asp:Panel>
</div>

The above currently displays it like so:

Image A

Image B

When in fact, I would like it like Image A Image B

The HTML rendered is pretty much the same as above, but the Panels are rendered as divs, so the structure without everything inside is:

<div>
    <div></div>
    <div></div>
<div>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T14:48:20+00:00Added an answer on May 12, 2026 at 2:48 pm

    A Panel renders in HTML as a div. The easiest way is to just use CSS to override the default behavior of divs.

    <asp:Panel ID="pnlA" runat="server" style="display:inline;">
        <img src="App_Themes/TicketDeskTheme/file.gif" /> 
        <asp:Literal ID="litA" runat="server" Text="A"></asp:Literal>
    </asp:Panel>
    <asp:Panel ID="pnlB" runat="server" style="display:inline;">
        <img src="App_Themes/TicketDeskTheme/file.gif" /> 
        <asp:Literal ID="litB" runat="server" Text="B"></asp:Literal>
    </asp:Panel>
    

    This example uses the style attribute, which gets passed on straight to the HTML. You can use CssClass if you prefer to do it in a reusable stylesheet of course.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

The markup below is used for my jQuery carousel widget. The first div serves
I have the below markup that cannot be changed: <div>Some data</div> <span>More data</span> <a>Link
Given markup like this: <div class=a>A</div> <div class=b>B</div> <div class=a>A</div> <div class=b>B</div> <div class=a>A</div>
I have the following markup (and the resulting display shown below that). I want
I have an FAQ page that looks like the markup shown below When the
In the markup below, I want to display the Description and/or EventDate as ActionLinks.
In the markup shown below, I'm trying to get the content div to stretch
I would like to achieve effect visible on the screenshot below that is content
below is my markup. when i move the mouse over the hyperlinks they get
I have this markup: div#wrapper ul#container1 li#box1 li#box2 li#box3 ul#container2 li#box4 li#box5 li#box6 The

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.