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

  • SEARCH
  • Home
  • 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 6954221
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T14:34:40+00:00 2026-05-27T14:34:40+00:00

I’m trying to stack the #Direction Div on top of the two other Divs

  • 0

I’m trying to stack the #Direction Div on top of the two other Divs #Ratedpics and #Mainpics. I want them to be centered on each other. Also when the page resizes I want them to move proportionally with the page. Is this possible?

Rated pics and Main pics need to be side by side. Directions need to be centered on top.

div#MainPics
    {
        height: 650px;
        width: 60%;
        -moz-border-radius: 35px;
        border-radius: 35px;
        background-color: Black;
        margin-left: auto;
        margin-right: auto;
    }
    #ratedpic
    {
        position: relative;
        float: left;
        width: 22%;
    }
    div#Direction
    {
        width: 20%;
        margin-left: auto;
        margin-right: auto;
    }



 <div id="Direction">
    <asp:Label ID="Label1" runat="server" Text="Here i want my directions centered on top of main pics" Font-Size="Large"
        Width="270" Font-Bold="True" ForeColor="#1B0358"></asp:Label>

</div>
<div id="ratedpic">
    <p>
        <asp:Label ID="RatedPicnameLabel" runat="server" Text=""></asp:Label>
    </p>
    <asp:ImageButton ID="RatedImage" Width="70%" runat="server" /><br />
    <asp:Label ID="RatedPicRating" runat="server" Text=""></asp:Label><br />
</div>
<div id="MainPics">
    <div id="RightPic">
        <p>
            <asp:Label ID="FirstPicMemberNameLabel" runat="server" Text="" Font-Bold="True" ForeColor="White"></asp:Label>
        </p>
        <asp:ImageButton ID="FirstPicLink" Width="90%" runat="server" />

    </div>
    <div id="LeftPic">
        <p>
            <asp:Label ID="SecondPicMemberNameLabel" runat="server" Text="" ForeColor="White" Font-Bold="True"></asp:Label>
        </p>
        <asp:ImageButton ID="SecondPicLink" Width="90%" runat="server" />

    </div>

</div>

HTml Output

  <div id="Direction">
    <span id="MainContent_Label1" style="display:inline-block;color:#1B0358;font-size:Large;font-weight:bold;width:270px;">Chose the photo you like better.</span>

</div>
<div id="ratedpic">
    <p>
        <span id="MainContent_RatedPicnameLabel">Margaret</span>
    </p>
    <input type="image" name="ctl00$MainContent$RatedImage" id="MainContent_RatedImage" src="Pictures/6f455ca0-27a0-49c3-ab61-e3f19e2e8258.jpg" onclick="javascript:WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions(&quot;ctl00$MainContent$RatedImage&quot;, &quot;&quot;, false, &quot;&quot;, &quot;Member.aspx?UserID=9&quot;, false, false))" style="width:70%;" /><br />
    <span id="MainContent_RatedPicRating">Banged: 52%</span><br />
</div>
<div id="MainPics">
    <div id="RightPic">
        <p>
            <span id="MainContent_FirstPicMemberNameLabel" style="color:White;font-weight:bold;">Jessica-Jean</span>
        </p>
        <input type="image" name="ctl00$MainContent$FirstPicLink" id="MainContent_FirstPicLink" src="Pictures/2b5c7b66-00c4-4948-aa2b-7abef2f556f3.jpg" onclick="javascript:WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions(&quot;ctl00$MainContent$FirstPicLink&quot;, &quot;&quot;, false, &quot;&quot;, &quot;default.aspx?yesId=7&amp;noId=7&quot;, false, false))" style="width:90%;" />

    </div>
    <div id="LeftPic">
        <p>
            <span id="MainContent_SecondPicMemberNameLabel" style="color:White;font-weight:bold;">Amy</span>
        </p>
        <input type="image" name="ctl00$MainContent$SecondPicLink" id="MainContent_SecondPicLink" src="Pictures/ce698138-1dfc-46f8-aab7-fd7a1d5c5f0b.jpg" onclick="javascript:WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions(&quot;ctl00$MainContent$SecondPicLink&quot;, &quot;&quot;, false, &quot;&quot;, &quot;default.aspx?yesId=12&amp;noId=7&quot;, false, false))" style="width:90%;" />

    </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-27T14:34:41+00:00Added an answer on May 27, 2026 at 2:34 pm

    If I understand your question correctly, you’ll need an extra wrapper around ratedpic and mainpic: http://jsfiddle.net/rgq4d/

    I would also strongly recommend to make your CSS ID’s all lowercase, in order to prevent typos.

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

Sidebar

Related Questions

I am trying to stack image views beside each other (with 70% overlapping). I
I'm trying to better understand what the stack trace means. I have a two
Stack: I'm trying to turn my website's user profile into more of a feed
Trying to setup a CodeIgniter based project for local development (LAMP stack), and once
I am trying to implement a Stack in java (using the list interface: Interface
I am trying to learn the technology stack behind StupeFlix and Animoto. I find
I'm trying to search the Stack Overflow questions using the php stacks app But
I'm getting stack overflow errors when I'm trying to publish() a NetStream after close()ing
Ran into an Out of Stack Space error trying to serialize an ASP.Net AJAX
I'm trying to run some statistics over the Stack Overflow data dump, and for

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.