Solved

getting div to expand for content

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

Enroll in May's Course of the Month

May’s Course of the Month is now available! Experts Exchange’s Premium Members and Team Accounts have access to a complimentary course each month as part of their membership—an extra way to increase training and boost professional development.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Send email using HTML and PHP in separate file 5 60
center text in div with CSS3 2 30
Page link not showing on Mobile Device 3 54
Sticking text to shapes in Raphael.js 6 41
Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
Find out what you should include to make the best professional email signature for your organization.
In this tutorial viewers will learn how to code links for mobile sites that, once clicked, send a call or text to a specified number. For a telephone link (once clicked, calls a number), begin with a normal "<a href=" link tag. For the href, specify…
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…

739 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