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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T00:48:47+00:00 2026-05-24T00:48:47+00:00

I am trying to use CSS and HTML to insert an image into a

  • 0

I am trying to use CSS and HTML to insert an image into a webpage.

I have the following on CSS:

#eDTP {
background-image: url(eDTP.png);
background-repeat: no-repeat;
background-position: center;
padding-top:475px;
}

and in my HTML, I have:

<div id="maintext"> 
<p> my page </p>
</div>
<div id="eDTP"></div>

Although this works, I have a big white space on the top and bottom of the images, which I do not want. I tried adjusting the padding values, but that does not seem to really help.

Could anyone please point me in the right direction to get rid of these white spaces?

  • 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-24T00:48:48+00:00Added an answer on May 24, 2026 at 12:48 am

    I would remove the padding top. That should eliminate the problem. I’m not sure why you would need such a high amount of padding between them.

    EDIT – Just read that you say the padding hasn’t helped you. Any chance of a link to the url? Or a live example somewhere to see the issue in more detail?

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

Sidebar

Related Questions

i'm very new at css/html, i'm trying to use an image on my page,
I'm trying to use html and css to present some simple vector notation in
I'm trying to use the css hover, and I have it working on a
I'm trying to use a simple CSS-sprite for image-based rollovers inside a Facebook Tab
I'm learning css and trying to change background-color of all html except one div
I am learning php, html and css now and I'm trying to use a
I'm trying to use CSS ( under @media print ) and JavaScript to print
I'm trying to use the CSS word-wrap property with break-word value. I want to
I'm trying to use jquery and blueprint css to do a (so i thought)
I am trying to use jQuery to basically wrap a bunch of CSS modifications

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.