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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T07:21:41+00:00 2026-05-28T07:21:41+00:00

I am writing a website code but I am unable to display the border

  • 0

I am writing a website code but I am unable to display the border for the sidebar. Here it is. And below is the code,

<!DOCTYPE html >
<!--HTML WEBSITE
/*********************************************************************************************************************************************************NAME:FAHAD UDDIN*********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************
-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>The New Boston</title>
<style type="text/css">
#container
{
    padding:0px;
    margin:0px;
    background:#BFBFBF;
}
#header
{
    height:100px;
    background-color:#333;

}
#header logo
{

}
#navigation
{
    padding:0px;
    margin:0px; 
}
#navigation ul
{
        background-color:#F00;
}
#navigation ul li
{
    text-decoration:none;
    display:inline;
    color:white;
    font-size:16px;
    padding-right:40px;
    padding-top: 0px;
}
#sidebar
{
    display: inline;
    margin-left: 20px;
    width: 300px;
    height:800px;
    border-bottom-color:#666;
    border:thin;
    background-color: white;
    background-repeat:repeat;
}
#content
{
    float:left;
    height: 800px;
    width: 800px;
    background-color:#FFF;
    display:inline;

}
#footer
{
    clear:both;
    height:200px;
    background-color:#333;
}
</style>

</head>

<body>
    <div id="container">
            <div id="header">
            </div>
            <div id="navigation">
                <ul>
                    <li><a href="#"><a/>Home</li>
                    <li><a href="#"><a/>Home</li>
                    <li><a href="#"><a/>Home</li>
                    <li><a href="#"><a/>Home</li>
                    <li><a href="#"><a/>Home</li>

                </ul>
            </div><!--Header Ends-->
        <div id="content">
        <p>This is the complain area. Fill complains here</p>
        </div><!--Content ENDS-->
        <div id="sidebar">
        <p>This is a website.</p>
        </div><!--SIDEBAR ENDS-->
        <div id="footer">
        </div><!--FOOTER ENDS-->
    </div><!--CONTAINER ENds-->
</body>
</html>
  • 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-28T07:21:41+00:00Added an answer on May 28, 2026 at 7:21 am

    1) Your html has a bug- you’ve given a/ instead of /a:

    <li><a href="#"><a/>Home</li>
    

    2) float to the rescue: give this property in:

    <p style="float: left">This is a website.</p>
    

    and add float: right to #sidbar

    3) What is border: thin in #sidebar? Give border: 1px solid. Read this for allowed attributes and their values: http://www.w3schools.com/css/css_border.asp

    UPDATE

    Check here: http://jsfiddle.net/FPJTn/1/
    The sidebar was breaking to the next line because of the value given for width for content. I have changed in #content css from width: 800px to width: auto.

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

Sidebar

Related Questions

I am writing some code that connects to a website, and using C#, and
I'm writing a piece of code that requires the DOM of a website to
I'm writing a snippet of code to be put on any third party website
I often use the website www.cplusplus.com as a reference when writing C code. I
I am writing some code which will search a website and return the number
I am writing a password-reset page for my website. Here's my idea: a. User
I'm am writing a bit of python code that gets data from a website.
Writing the code for the user authentication portion of a web site (including account
I am writing code to performance test a web site. I have the following
I am writing website and i`d like to implement profile managment. Basic thing would

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.