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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T05:55:14+00:00 2026-05-23T05:55:14+00:00

I have to create a div that should look like <div id=1> <img></img> <div

  • 0

I have to create a div that should look like

<div id=1>
<img></img>
<div id=2></div>
</div>

the div with id 2 should appear at bottom-right corner of image, and the size of image is not fixed what should be the css applied to div with id=2

div with id =1 has no position defined so uses default and same is with image and i cannot change these
only div with id=2 is editable to me. Please suggest something

  • 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-23T05:55:15+00:00Added an answer on May 23, 2026 at 5:55 am

    If you cannot edit the CSS for div #1, you’re sort of screwed.

    If you could just add {position:relative} to that div, you’d be in business. Absolute positioning will target the first parent with ‘Relative’ positioning. Since the default of div 1 is ‘Static’…Positioning won’t work.

    ‘Float’ might work, div 2 would technically need to come before div 1 – thus causing div 1 to inherit the float of div 2; however, that would also stack your image atop div 2 rather than below it. … So Float is out as well.

    IF you can add CSS to div 1 and div 1 img, then an easy fix is this:

    * { margin:0; padding:0 }
    
    #one {position:relative; text-align:right;}
    #two {position:absolute; bottom:0; right:0}
    

    Good luck…

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

Sidebar

Related Questions

I am trying to create some div (that should be buttons) that have rounded
I have a script that create a new div element. Then, I want to
I have a big div with a big background-image. Now I want to create
i have this code that should create a dialog with the page google inside
I have created a div there are two childs of that div one is
I have a div that is created by Ajax with .append(html) function, I'm trying
I have created some JQuery that will expand a div 'popup' on hover and
In my extension, I have a content script that creates a <div> containing an
I have a menu bar and I want to create a div for each
In my rails view(index.html.erb), i have following structure <div> <%= render :partial => create

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.