954,595 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Arrrgh! Please help with CSS wrapper

We are trying to create a new design for our non profit site and are having trouble with getting the content portion of our css div to expand appropriately in Firefox or Safari. Works fine in IE though. Can someone take a peek and make a recommendation?

Site is at: http://www.prominentyouth.com/new/page.php and the css is at http://www.prominentyouth.com/new/styles.css


Any help / suggestion would be greatly appreciated.

Rubik's Cube

rubik's cube
Newbie Poster
1 post since Jul 2005
Reputation Points: 10
Solved Threads: 0
 

At a look... I'd guess either you have used "height:" or are using "float:" and not clearing it.

autocrat
Posting Pro in Training
431 posts since Feb 2005
Reputation Points: 63
Solved Threads: 12
 

Hmmm, you also haev a big issue with resizing text in MozFF.


Okay... as it stands you have a Container.
Inside the Container, you have 2 independant Columns, (meaing they are not nested).

As they are not nested they have no relation to each other (so no matter the size of the Left, the right will not stretch, and vice versa).


Instead... you either want to re-order things a little...






#container
{
float: left;
clear: both;
#zoom:1; /*IE Bug Fix */
}

#contents
{
margin-left: 200px;
}

#leftcol
{
margin: 0 -1px 0 -200px;
width: 200px;
float: left;
position: relative; /* IE Bug Fix */
#display: inline; /* IE Bug Fix */
}


All of this means that basically, you hae a parent block... containg a child and grandchild.
The child is pushed from the left exactly the same distance as the width of the grandchild.
the grandchild is then pulled to the left, almost completely leaving the child, bar 1px.

You use the float: on both Parent and Grandchild interact.
(NOTE: You may want to apply Float to the Parent as well (so you float container, content and leftcol).

Also, helps if you test in other browsers as build!
Further, you may want to validate it ( though I am impressed with the coding standard and the CSS!).

autocrat
Posting Pro in Training
431 posts since Feb 2005
Reputation Points: 63
Solved Threads: 12
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You