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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T03:23:19+00:00 2026-05-31T03:23:19+00:00

I am currently having a CSS problem and I hope someone can help me

  • 0

I am currently having a CSS problem and I hope someone can help me since I am a very beginner.
I am trying to overlay and image over another image.

When I use inline code it works fine, for example:

http://imageshack.us/photo/my-images/440/screenshot7cx.jpg/

    <div class="one_half">
    <div id="square_icon" style="position: absolute; top: 12%; left: 36%;"><img src="img/square_icon.png" width="77" height="76" /></div>
    <img src="img/square.jpg" width="412" height="145" />
    </div>

But if I try to insert in my CSS file direct it not work.

http://imageshack.us/photo/my-images/577/screenshot8gvh.jpg/

    <style>
    #square_icon { position: absolute; top: 12%; left: 36%; };
    </style>

Why it not working when I include in my CSS file? Again I am sorry I am very amateur but I hope someone can help me understand this issue.

Thank you alot,
Patrick

  • 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-31T03:23:20+00:00Added an answer on May 31, 2026 at 3:23 am

    if you want to style the div by id, you should give it an ID:

    <div class="one_half">
        <div id="square_icon" style="position: absolute; top: 12%; left: 36%;"><img src="img/square_icon.png" width="77" height="76" /></div>
        <img src="img/square.jpg" width="412" height="145" />
    </div>
    

    and not a class

    The corresponding styles:

    <style>
        #square_icon { 
          position: absolute;
          top: 12%;
          left: 36%; 
        }//there is no ';' here
    </style>
    

    Also you made a mistake as mentioned above.

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

Sidebar

Related Questions

Currently having this really odd problem with my layout IE7. I'm not very experienced
I'm currently having a problem with CSS styles in Webkit browswers (Chrome 4.0.249.89 &
Problem: https://postimg.cc/image/tunhwh8qj/ The trouble I am currently having is that the border around my
How to disable a textbox in CSS? Currently we are having a textbox in
We're currently having a debate whether it's better to throw faults over a WCF
I'm currently having a problem with a ShoppingCart for my customer. He wants to
I'm having a problem with CSS not displaying correctly between IE and Firefox... The
So I'm having a bit of a structure problem with my repositories. I hope
I currently have a tab image that I want to re-create in CSS, but
I use Vaadin in my project, currently i'm having a problem with it. It's

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.