Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

152
Views
how can i scale image according to screens with buttons on the top making responsive?

how do i make image and image select and delete buttons reponsive

I want to remove the gap after delete button, any suggestion will be appreciated??

 <div class="container mt-0">
            <div class="row">
              <div class="col-sm-12  col-md-3"><!--upload button-->
                  <a href="" class="mb-2 btn btn-outline-primary w-100 " onclick="javascript:windowOpen('@(uploadURL)?backAction=menuform&detailId=1&objId=@imageElementId&pathId=@hiddenElementId', 'menuUpload'); return false;"><span class=""></span>@wordInfo["SelectImage"]</a>
               </div>
    
            <div class="col-sm-12  col-md-3 ms-md-5"><!--delete button-->
                 <button type="submit" class="btn btn-outline-primary float-lg-end  mb-2 w-100 " id="@removeImageElementId" style="@(String.IsNullOrEmpty(Model.MenuForm.IMAGE_NAME) ? "display:none" : "")" onclick="javascript:removeImage('@(noImage)', '@imageElementId', '@hiddenElementId', '@removeImageElementId'); return false;"><span class=""></span>Delete image</button>
             </div>
           </div>
           </div>
          <div class="row mb-3 d-flex flex-column"><!---image-->
               <div class="col-md-7 mt-3">
                  <img    id="@imageElementId"  class="img-fluid" alt="Responsive image" src="@(String.IsNullOrEmpty(Model.MenuForm.IMAGE_NAME) ? noImage : menuImagePath + Model.MenuForm.IMAGE_NAME)" onload="javascript:disiplayImage('@removeImageElementId', $(this).attr('src'),'@noImage') " />
                  <input type="hidden" id="@hiddenElementId" name="hdnImageName_1" value="@Model.MenuForm.IMAGE_NAME">
               </div>
              </div>
           </div>
    
[![below is image][1]][1]


  [1]: https://i.stack.imgur.com/uhJhl.png
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Change your css as shown :

<style>
img {
  display: block;
  margin-left: auto;
  margin-right: auto;
}
</style>

in your case:

#centre{
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 50%;
}

replace centre with id of image in your html

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!