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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T21:54:09+00:00 2026-06-16T21:54:09+00:00

Consider a web page consisting in a background part that holds an image on

  • 0

Consider a web page consisting in a background part that holds an image on top of which I would like to create an animation (for example image=sky and animation=moving-clouds). This thing is 100% width.

On this “canvas”, a 100% content part should be placed.

The reason why I am asking this question is because I can simply achieve something like this working with divs and absolute positioning. But I do not know how to make something like this when divs have a 100% width!

I would be able to write something like this:

<div id='canvas' style='width:100%;background-image:...'>
  <div id='cloud1' style='...'></div>
  <div id='cloud2' style='...'></div>
  <div id='cloud3' style='...'></div>
</div>
<div id='cont' style='width:100%'>
  my content here
</div>

Styling canvas and cont so that cont appears on canvas and elements like clousx are moved by javascript but they live behind cont.

How to achieve this?

  • 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-16T21:54:10+00:00Added an answer on June 16, 2026 at 9:54 pm

    I don’t know if I got you right, but you can do it exactly the way you want it. So this is a combination of width: 100%; and position: absolute;.

    Demo

    Try before buy

    The demo uses for demonstration purposes the background-property with a CSS3 rgba-value.

    CSS

    div.outer {
      position: absolute;
      width: 100%;
      height: 100%;
      border:1px solid red;
    }
    
    div.text {
      background: rgba(255,255,255,0.5);
    }
    
    div.cloud {
      position: absolute;
      top: 20px;
      left: 20px;
      height: 50px;
      width: 50px;
      border: 1px solid red;
    }
    

    HTML

    <div class="outer">
        <div class="cloud"></div>
    </div>
    
    <div class="outer text">
      Content goes here
    </div>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to create a web page that allows the user to initiate a
I've got, what I would consider, a simple test web site. A single page
Consider a part of a web page: <script> function fun() { alert(Link won't work);
please consider this scenario: we have two web page. a simple page that contains
Consider a few web server instances running in parallel. Each server holds a reference
Consider a web page having grid-view connected to SqlDataSource having all permission to insert
consider this code: Partial Public Class MyAspNETClass Inherits System.Web.UI.Page Protected Shared MyVariable As String
I am preparing a web page with more data that can possibly be shown
I have written an ASP.NET web page with C# behind that runs an existing
I want a WYSIWYG html editor to create a static web page. After some

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.