Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

getting div to expand for content

Posted on 2011-03-20
4
Medium Priority
?
209 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

When it comes to write a Context Sensitive Help (an online help that is obtained from a specific point in state of software to provide help with that state) ,  first we need to make the file that contains all topics, which are given exclusive IDs. …
Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

722 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