473,786 Members | 2,578 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Why container body won't expand fully

77 New Member
Hiya guys.

The problem Im having is basically that I have a backgound image set with position: absolute and z-index: -1.

Then there's a table in which the main content is inside.

The error is that the table wont auto expand so that any content fits inside.

It expands to say 500px, then stops no matter how much is inside.

There are divs inside of the table with position absolute and relative, but is this keeping the table from expanding?

The table width has been set to both 100% and *, without any luck.

Setting a height: 700px; does work, but it isn't dynamic as each page has different content.

I hope this made sense and someone can tell me what's wrong.

The page is a 'pretend' community based off a school project and is at a temporarily site
here: http://afl-clan.com/haven
By clicking Account -> Create new, you will see some text overflowing
That text is inside the table and doesn't have any Position properties set.

The white frame which surrounds most of the site is the #container (which should surround the whole site really).
Oct 18 '10 #1
4 2331
Death Slaught
1,137 Top Contributor
I don't have time to play with it right now, but try removing the height property from your account-create division. I'll play with it with it a bit when I get time.


Thanks, Death
Oct 18 '10 #2
PHPstarter
77 New Member
It really does the trick!

Thank you.

However, how can I keep that object forced to a height without making the body incapable of expanding?

Edit:

I solved it now :)
I did some CSS tweaking and had to resort to the use of a table in order to seperate the logo on the left and the content to the right, I hope that isn't bad coding conduct.
Oct 19 '10 #3
Death Slaught
1,137 Top Contributor
I'm glad it worked. Yes, that is bad coding. You should never use tables for layout. I'm at school right now, but I should be able to play with this more during my second period.

Thanks, Death
Oct 19 '10 #4
Death Slaught
1,137 Top Contributor
You removed the example, I don't have IE, and you should never use tables for layout. That's all I can do right now.


Thanks, Death
Oct 19 '10 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

7
15471
by: red | last post by:
This page shows 3 divs side by side surrounded by a wrapper, but the wrapper thinks there's nothing in it, so its collapsed at the top. How do I get the wrapper to expand around the divs ? http://www.cardini.tv/test/test.htm #p1{float:left;width:25%;border:solid 1px;} #p2{float:left;width:25%;border:solid 1px;} #p3{float:left;width:40%;border:solid 1px;} #w{border:solid;width:90%; margin:auto;}
2
1478
by: Prikkie | last post by:
I'm making a photoblog for a friend. In Opera and IE it looks like I want it to, but in Firefox I can't seem to get it right. On http://www.groothoek.nl you can see what happens: the columns on the left and on the right are supposed to end at the end of the page, but end where the text ends. Also there's a bit of white above the right column, where I'd expect green like the rest of the background. Finally, there should be a 2 px border...
2
1533
by: Deano | last post by:
I have a textbox on a report that show the contents of a note field which stores Memo data. Quite alot of text can be typed by the user here but if it exceeds a certain amount the textbox does not expand fully to show what was typed in. CanGrow is set to Yes. What else am I missing? thanks
2
1781
by: Patient Guy | last post by:
I don't think I have ever encountered something like this before. On a Windows XP running Apache 2.0.53 I do my page development (XP machine). I then upload the stuff to a Linux/Redhat/Fedora running Apache 2.0.54 (Linux machine) I have a page that features an external stylesheet, as well as styling in the <style> element area of the document head, as well as element-specific
1
5935
by: Miked | last post by:
Hello: I'm relatively new to CSS, and I'm doing a site where I don't want to use any tables. I've gotten pretty far, and the site has the layout I want. My only problem is that I'm using the flot positional paremter a lot on containers, and it really seems to do what I want. Except when I put other containers in these containers, they don't expand vertically like I want. Here's the stylesheet:
11
2883
by: Nospam | last post by:
I don't know what it is I am doing wrong, I am trying to get the menus to either expand or contract based on their previous states, i.e if already expanded if clicked again contract, and if contracted, expand, so far it doesn't work for the about and services link(but works for the expand all and contract all links), any help would be greatly appreciated: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"...
15
9571
by: raknin | last post by:
Hi, I am new to the javascript and the ajax. I want to create a text and expand and collapsonly part of it . Something similar to what is done in youtube., I have this code. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <title></title> <script type="text/javascript">
6
12822
by: AJM Project | last post by:
Hello, I see this is a well known thing and have seen many answers but none have worked for me. It's just a test page I'm making and I've ran into this so I thought I'd ask how to fix it - inline & embedded CSS just now as It's just a quick test page I'm working on. Basically I've got my container div, two other div columns inside with fixed widths. In the 2nd column I have 2 divs, one is under the other, which exceeds the size of the...
2
2286
by: chotu99 | last post by:
I have a table in which there are several rows , I would like to know how to expand a row when mouse moves over that particular row and give some description about and gets back to normal when mouse out. this is my table <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>css table</title> <meta...
0
2521
by: anrod | last post by:
i run a report in oracle 6, show me an error, rep-1212 object 'body' is not fully enclosed by its enclosing object
0
9647
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9496
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10363
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10164
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10110
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8989
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6745
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5534
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3669
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.