Solved

getting div to expand for content

Posted on 2011-03-20
4
202 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-
  • 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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

Suggested Solutions

Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
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 …
In this tutorial viewers will learn how to embed custom externally-hosted Google Fonts using the Google Font API in CSS Go to the Google Fonts website at google.com/fonts: Browse or search based on font properties or name to find a suitable font for…

830 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