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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T20:37:17+00:00 2026-06-07T20:37:17+00:00

I already found a question similar but it didn’t click. Here is my code,

  • 0

I already found a question similar but it didn’t click.

Here is my code, I want to have two backgrounds. I know how to add two backgrounds but one background image needs to be in a specific place accomplished by using divs. My code may have the most simple flaw. Please be aware I am a newbie and trying to get into web development again from what little knowledge I already knew.

<head>
<style type="text/css">
        body {
            <div id="currentpage">
                background-image: url(bgsource/contactpage.png);
                background-repeat: no-repeat;
            </div>
        }
        #currentpage{
            position: absolute;
            width:auto;
            height:auto;
            left:424px;
            top:134px;
            margin-left:0px;
            margin-top:0px; 
        }
</style>
<?php include_once("general.php"); ?>
</head>

I may want to include that I have a general.php template that loads into every page, could that also affect the background from working?

  • 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-07T20:37:19+00:00Added an answer on June 7, 2026 at 8:37 pm

    Change your code like this. Because you cannot apply html tag inside css like you where mention in your question.

     <head>
        <style type="text/css">
        #currentpage{
              position: absolute;
              width:auto; /* specify width */
              height:auto; /* specify height */
              left:424px;
              top:134px;
              margin-left:0px;
              margin-top:0px;
              background-image: url(bgsource/contactpage.png);
              background-repeat: no-repeat;
        }
        </style>
        </head>
        <body>
           <div id="currentpage"></div>
        </body>
    

    And specify the width and height for div displaying the image. otherwise you will have a white background.

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

Sidebar

Related Questions

For the record: I found a similar question here but I have to elaborate
I know there are already some similar questions here. But I do not want
Searching here I found that this question was already asked , but I think
I've already found the following question , but I was wondering if there was
The title is my question. I already found a topic related to this here
I have question regarding disabling browser caching. I have already found few solutions, and
This is my first question, but I've already found this site extremely helpful, so
I haven't found this question, feel free to close if it's already up here.
I know there are already many questions like mine but I found no answer
First of all, I've found a similar question but it does not do the

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.