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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T11:24:11+00:00 2026-05-27T11:24:11+00:00

Hello I have created a basic layout in html and css, 1) Could you

  • 0

Hello I have created a basic layout in html and css,
1) Could you tell me if I can Improve the css or html?
2) I’d like the site to work in rages of 1024×768 and up.
3) How can I remove the horizontal scroll bars.
4) What is the simple meaning of the em unit?

Thanks:

<!DOCTYPE html>
<html>
<head>
    <title>Title</title>
    <link <link rel="stylesheet" type="text/css" href="style.css" />
</head>
<body>
    <div id="center">
    <div id="header">Title</div>
    <div id="nav">
    </div>
    <div id="warp">
        <div id="slider">#slider</div>
        <div id="posts">#posts</div>
        <div id="sidebar">#sidebar</div>
    </div>
    <div id="footer">#footer</div>
    </div>
</body>
</html>

css:

body{
    margin:0;padding:0;
    background-color:#ededed;
}
#header{
    height:150px;
    width:100%;
    background-color:#666;
    /*Text*/
    font-size:24px;
    background: #2989d8;
}
#center{
    margin:0 auto;
}

#warp{
    margin-bottom:10px;
    width:70em;
    background-color:#444;/*#e3e3e3;*/
    margin: -35px auto;
    overflow: hidden;
    margin-bottom:0px;
}
#slider{
    margin: 2em auto;
    width:65em;
    height:20em;
    background-color:#555;
}
#posts{
    float:left;
    width: 50em;
    height:50em;
    background-color:#111;
}
#sidebar{
    float:left;
    height:50em;
    width:20em;
    background-color:#777;
}
#footer{
    clear:both;
    height: 60px;
    width: 40em;
    margin:1em;
    background-color: #666;
    /*Text*/
    font-size:24px;
}
  • 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-27T11:24:11+00:00Added an answer on May 27, 2026 at 11:24 am

    I unfortunately don’t think this can be considered as a useful question for others, and I’m pretty sure you are using a template you are not sure how to work around. Here are the (quick) answers to your (quick) questions:

    1) The css and html look fine, except for the missing elements in the head. You should also give #center a width to make sure it works in all browsers.

    2) as Jawad mentioned, @media. You can find lots of information on this site or others. Check this.

    3) Not sure, difficult to see without a live example or http://jsfiddle.net/. Could be the overflow/widths.

    4) em= Unit of measurement in the field of typography, equal to the currently specified point size. Google.

    But if you are new to css, I recommend you visit these questions/answers or look for other ones so you can create good-looking and good-functioning websites.

    https://stackoverflow.com/questions/500827/what-css-tips-should-every-beginning-developer-know-about

    https://stackoverflow.com/questions/132587/the-best-css-tutorial-site-blog-book

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

Sidebar

Related Questions

I have created a very basic Hello world application where I am trying to
hello i have created one windows application in c# .net and its working fine
I have created a Hello World web part. When I pressed F5 in Visual
I have created button 2 below: <input id=Button1 type=button value=Stop onclick=alert('hello world');/> <input id=Button2
Hello i am using NSOperationQueue to download images in the background. I have created
hello all I have a small dialog which I created dynamically, which has a
I have a library I created, File mylib.c: #include <mylib.h> int testlib() { printf("Hello,
Hello, I have a press archive. The press archive displays automattically created thumbnails as
I have picked a basic example of printing Hello World on screen when the
I have created a sample Hello World program in android it was working fine

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.