Jump to content
xisto Community
Sign in to follow this  
fffanatics

Table Width Help table width=100% goes off screen

Recommended Posts

Hey everyone. My problem is that current i have a left menu and a right menu which are created using a div the properties listed below. Then i have a center section to my website where i have a table that i need to fill the remaining space on the screen (aka the space from the right side of the left menu to the left side of the right menu). However, when i set the table's width to 100%, it goes of the screen. Can anyone help me with this? If you look at my main page, the news section works but only because the text forces the table to its largest size and then wraps. I need the table on the My Account page (only accessible by users that are logged in) to be the same size even though it does not have enough text in it to force it to that size. Feel free to register and check it out if needed. The link to my site is located in my sig. Here is the properties of my left, right, and center area divs:

#leftMenu {	background: url('./images/sidebar.jpg');	position : absolute;	left : 10px;	width: 150px;	z-index : 2;		background-color : #000066;		border-right: 1px solid white;	border-bottom: 1px solid white;}#rightMenu {	background: url('./images/sidebar.jpg');	position : absolute;	right : 9px;	width: 150px;	z-index : 1;		background-color : #000066;		border-left: 1px solid white;	border-bottom: 1px solid white;}.centerTable{	background : url("images/tableBg.jpg");	border : 1px solid white;}

Share this post


Link to post
Share on other sites

Instead of using absoultue positioning you could try the float attribute, something like this may do it.

#leftMenu {background: url('./images/sidebar.jpg');float : left;left : 10px;width: 150px;z-index : 2;background-color : #000066;border-right: 1px solid white;border-bottom: 1px solid white;}#rightMenu {float : right;right : 9px;width: 150px;z-index : 1;background-color : #000066;border-left: 1px solid white;border-bottom: 1px solid white;}

however when I did this I did not use a table for the center portion, i just used another div element. You should be able to get something close to the desired effect if you tweak that until it is close to how you want it. this was a while ago I did this so it may not be entirely accurate.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.