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 7792975
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T22:20:25+00:00 2026-06-01T22:20:25+00:00

I have a repeater control with an Image and a hyperlink one below the

  • 0

I have a repeater control with an Image and a hyperlink one below the other. Everytime I add more than one line of text the text pushes the imahe control up. I wan the top of the images to be aligned horizontally and the text to continue downward if there is more than a line of text.
please advise.

Alignment error

Here is the ascx code I have used:

<asp:MultiView ID="MultiView1" runat="server" ActiveViewIndex="0"> 
<asp:View ID="View1" runat="server"> 

<asp:UpdatePanel ID="UpdatePanelAnnouncements" runat="server"  UpdateMode="Conditional">
<ContentTemplate>

<table>
<tr>
    <asp:Repeater ID="repAnnouncements" runat="server">
        <ItemTemplate>
            <td style="padding-right:19px; padding-top:1px; padding-left:7px;">
                <asp:HiddenField ID="ItemID" Value='<%#Eval("ID") %>' runat="server" />
                <asp:HyperLink ID="hypImageEditLink" runat="server">

                <div class="ImageStyle" >
                <asp:Image ID="imgLink" Height="110px" Width="150px" runat="server" ImageUrl='<%#Eval("Images")%>' CssClass ="magnify"/>
                </div>

                </asp:HyperLink>
                <br/><br/>
                <div id="div3" class="Div3"><asp:HyperLink ID="hypTextEditLink" runat="server" Text='<%#Eval("Title")%>' CssClass="TitleStyle"/></div>
            </td>
        </ItemTemplate>
    </asp:Repeater>
 </tr>
</table>

</ContentTemplate>
</asp:UpdatePanel>
</asp:View>

And here is the style sheet:

.div3
{
  width: 150px !important; 
  display:inline !important;  
  /*display: -moz-inline-box !important; 
  display: inline-block !important; */
  float:left !important;
}

 .ImageStyle
 {
   margin-left:8px;
   /* Width:150px !important; Height:110px !important;
   box-shadow: 0px 0.5px 35px 15px #888888;*/
   border-collapse: separate !important;
   box-shadow: 0px 0.5px 11px 4px #888888;
  /*box-shadow:  0px 0.5px 11px 4px rgb(150,150,150);*/
 }

  .ImageStyle:hover
    {
      opacity:0.5 !important;
      filter: alpha(opacity=50) !important;
      border-color:blue !important;
      border-width:thick !important;

     }
  • 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-06-01T22:20:28+00:00Added an answer on June 1, 2026 at 10:20 pm

    As I understand your question, when there is a lot of text underneath a picture it causes the rest of the pictures to align themselves vertically in the middle of their cells. To resolve this alter your TD tag to the following:

    <td style="vertical-align: top; padding-right:19px; padding-top:1px; padding-left:7px;">
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have Repeater Control as shown below. <asp:Repeater ID=rptCategory runat=server> <HeaderTemplate> <h2 class=art-logo-text style=margin-bottom:
I have an image control inside a repeater. I would like to exclude/ignore a
I have a text box and a repeater control. I need to bind the
I have an asp.net repeater control with a series of asp:hyperlink's <asp:HyperLink runat=server ID=name
I have the following Image control within a repeater. I'm trying to get the
I have a repeater control and under the ItemTemplate, I have Image control. Anyway
I have an image gallery that is created using a repeater control. The repeater
I have Repeater Control and in that i have code like this <div runat=server
I have a repeater control that contains an ItemTemplate containing a databound label and
I have a Repeater control that is being bound to the result of a

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.