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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T15:59:24+00:00 2026-05-25T15:59:24+00:00

Im working on a layout for a website and I’m trying to set up

  • 0

Im working on a layout for a website and I’m trying to set up my css rules for the layout in the following image:
layout

I want left & right divs to extend to the height of content div, I’m not very familiar with the clear attribute and how to use it. Here’s what I’ve done so far:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-7">
<title>Untitled Document</title>
<style type="text/css">
<!--

html, body
{
    height: 100%;
    min-height: 100%;
    margin: 0;
    padding: 0;
}
#header {
    background: url(images/header.png) no-repeat;
    margin-top: 0px;
    margin-right: auto;
    margin-bottom: 0px;
    margin-left: auto;
    clear: both;
    padding: 15px;
    width: 1013px;
    height: 46px;
}
#wrapper {
    clear: both;
    width: 1043px;
    margin-top: 10px;
    margin-right: auto;
    margin-bottom: 10px;
    margin-left: auto;
    height: 100%;
    min-height: 100%;
}
#content {
    background: #F00 url(images/fondo%20light.jpg) repeat;
    margin-top: 0px;
    margin-right: auto;
    margin-bottom: 0px;
    margin-left: auto;
    color: #333;
    z-index: 1;
    float: left;
    width: 985px;
    clear: none;
    padding: 0px;
    height: 150px;
}
#lines-left {
    background: url(images/lines-left.png) no-repeat;
    float: left;
    width: 17px;
    height: 100%;
    margin-left: 13px;
}
#lines-right {
    background: url(images/lines-right.png) no-repeat;
    float: right;
    width: 17px;
    height: 100%;
    padding: 0px;
    margin-top: 0px;
    margin-right: 11px;
    margin-bottom: 0px;
    margin-left: 0px;
}
body {
    background: url(images/dark-pattern.jpg);
    font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
    font-size: 11px;
    color: #FFF;
    margin: 0px;
}
#footer {
    background: url(images/footer.png) no-repeat;
    height: 140px;
    margin-top: 0px;
    margin-right: auto;
    margin-bottom: 0px;
    margin-left: auto;
    clear: both;
    padding: 15px;
    width: 1013px;
}
-->
</style>
</head>

<body>
<div id="wrapper">

<div id="header">Content for  id "header" Goes Here</div>
<div id="lines-left">&nbsp;</div>
<div id="content">Content for  id "content" Goes Here</div>
<div id="lines-right">&nbsp;</div>

<div id="footer">Content for  id "footer" Goes Here</div>

</div>
</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-25T15:59:25+00:00Added an answer on May 25, 2026 at 3:59 pm

    Adventures with CSS Fixed Positioning!

    http://jsfiddle.net/XTdgP/

    Since you want 100% height – which is a pain in the ass most of the time – and all your columns and rows seem to be of a fixed width/height, this becomes really easy with fixed positioning, which allows you to specify how far every edge of every container should be from the sides of the browser page.

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

Sidebar

Related Questions

I've been working on a CSS fluid layout for my website, and I am
I'm at my wits end right now trying to get a website working in
I'm working on a website with a em-based layout (so it can stretch and
Working on a rather small, and simple layout, I decided to use Meyer's CSS
I have a website I'm working on that I should have perfected the layout
I upgraded a website I've been working on ( http://barsannapolis.com ) to a CSS
Greets, I'm currently working on a website and have stumbled upon some layout difficulties.
I want to use the Blueprint CSS framework for this site I'm working on:
I am working on a website frontend and found myself constantly nesting divs for
I am building a wordpress website. I am implementing isotope for image layout and

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.