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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T10:21:01+00:00 2026-05-23T10:21:01+00:00

I recently took up learning some css… and I am getting stuck on some

  • 0

I recently took up learning some css… and I am getting stuck on some very basic hurdles.

I can’t get the top and left properties to work on this basic page that I was creating.

Below is all the code for that page… all the properties work except the top and left.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html>
<head>
    <style type="text/css">
        #firstdiv {border: 2px solid red;
                    position: absolute;
                    top:15px; 
                    left:25px:}
                #seconddiv {border: 2px solid green;
                    position: absolute;
                    top:65px; 
                    left:5px:}
    </style>
</head>
<body>
<div id="firstdiv">This is my first div </div>
<div id="seconddiv">This is my second div</div>
</body>
</html>

Any help on this issue would be greatly appreciated! = D

  • 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-23T10:21:02+00:00Added an answer on May 23, 2026 at 10:21 am

    You have colons after left instead of semi-colons

    #firstdiv {
        border: 2px solid red;
        position: absolute;
        top:15px; 
        left:25px;
    } 
    #seconddiv {
        border: 2px solid green; 
        position: absolute; 
        top:65px; 
        left:5px;
    } 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I recently took my Db initiating code out of the __construct of my Page
Recently, I started changing some of our applications to support MS SQL Server as
I recently took a class at school where we had to learn Scheme to
I recently took in a small MCF C++ application, which is obviously in a
I recently took over a project and they have a SQL job setup to
I recently took over a project that has a pretty dirty database... The table
I recently took a branch with a lot of commits and merged it back
I recently took over management of a Windows 2003 server. The application log is
I recently took all my code a manually imported it into an eclipse project
I took over an iPhone project recently that was developed prior iOS4. I'm wondering

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.