Solved

getting div to expand for content

Posted on 2011-03-20
4
208 Views
Last Modified: 2012-05-11
Hi,

I have a simple div that has content inside of it but for some reason it does not seem to be expanding to accommodate its content, what's going on here? its the central div here:http://94.193.107.131/byr/

also I would like to float the whole page in the middle, whats the best way to do this, I've tried wrapping it up in a div like the footer but it has no effect?

Darren
0
Comment
Question by:darren-w-
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 10

Expert Comment

by:aboo_s
ID: 35175122
Please provide the correspanding css file(code)
0
 
LVL 13

Author Comment

by:darren-w-
ID: 35175131
np:
/*
    Document   : layout.css
    Created on : 19-Mar-2011, 16:56:36
    Author     : Darren Whittington
    Description:
        Controls the structural layout of he page
*/

div{
   border-style: dotted;
   border-width:1px;
}

#banner, #logo,#breadcrumbs,#links,#search,#left_cell,#middle_cell,#right_cell{
   float:left;
   margin-left:10px;
   margin-top:10px;
}
#header,#navigation,#main_content,#footer{
   width:1000px;
}
#header{
   height:200px;
}
#logo,#banner{
   height:180px;
}
#logo{
   width:180px;
}
#banner{
   width:790px;
}
#navigation{
   height:40px;
}
#breadcrumbs,#links,#search{
   height:20px;
}
#breadcrumbs{
   width:350px
}
#links{
   width:350px;
}
#search{
   width:260px;
}
#main_content{
   height:auto;
}
#left_cell,#middle_cell,#right_cell{
height:auto ;
}
#left_cell{
   width:200px;
}
#middle_cell{
   width:560px
}
#right_cell{
   width:200px;
}

#footer{
   height:50px;

}
#sub_links{
   width:500px;
   height:30px;
   margin-top:10px;
   margin-left:auto;
   margin-right: auto;
}

Open in new window

0
 
LVL 13

Accepted Solution

by:
darren-w- earned 0 total points
ID: 35175208
Ok,

all fixed now, it was not expanding to the bottom becouse of the footer, and sorted the floating too....

D
0
 
LVL 13

Author Closing Comment

by:darren-w-
ID: 35213274
Fixed myself
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article discusses four methods for overlaying images in a container on a web page
Originally, this post was published on Monitis Blog, you can check it here . Websites are getting bigger and more complicated by the day. Video, images and custom fonts are all great for showcasing your product or service. But the price to pay in…
In this tutorial viewers will learn how to style different bullet points for unordered lists in CSS. Begin with a normal unordered list; the default bullet point is a solid circle: In the CSS, create a defined class of unordered list by typing "ul.S…
In this tutorial viewers will learn how to style rounded corners for elements in CSS using the border-radius property Begin with a normal styled element such as a div: To style all four corners of the div to be the same degree of roundness, use the …

635 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question