Jump to content
xisto Community
the_furious1

Question About Tables!

Recommended Posts

How can I make tables on my web page to be static (always same size)?I want my page to always be the same size, I don't want my text to adjust to visible on the page when you make window smaller. I want horizontal scroll bar to appear!!!Help me!!!!

Share this post


Link to post
Share on other sites

you can just use the style attributes for the table to specify the size. that way the table will not adjust.example<table style="width:200px"><tr><td style="width:100px"></td><td style="width:100px"></td></tr></table>the px after the number is pixels. there are different ones but I find pixels is the easiest to work with. The other one I use (but not as often) is %.in this example, you will have a table that is 200 pixels wide with 2 columns that are 100px wide each.By the way... I hate horizontal scroll bars. They suck *bottom*. Vertical is ok...

Share this post


Link to post
Share on other sites

Vertical are fine, it can get annoying if there's so little information on a page that there isn't one. Horizontal scroll bars are really annoying though, especially when used along with vertical.

Share this post


Link to post
Share on other sites

Thanks for the tip!!!The reason why I'm doing this is that my background is different color where the menu and contents are, so when you make the window smaller my contents goes to the menu part of the page. And I don't like it!!!Thanks again!!!

Share this post


Link to post
Share on other sites

whatever you do .. dont make a horizintal scrollbar. They are annoying by themselfs but with a vertical one I really get annoyed and i think other guys do as well

Share this post


Link to post
Share on other sites

yes, the horizontal scrollbar is very annoying... use % of the screen in place of 'px' .As for ur reason or background, u can use div tags and make background to fit only that div... css is a very powerful thing.. if u can use it just right... try out... u will only be happier if u cud do it without fixing width and of course w/o horizontal scrollbar...Cheers

Share this post


Link to post
Share on other sites

People you don't understand me!!!My web page looks fine when the window is maximized!!! I just want to make sure that my tables to become smaller whenever window get smaller or when resolution is smaller that 800x600!!!btw tip that no9t9 gave does not work for some reason!

Share this post


Link to post
Share on other sites

Wait, you want the tables to adjust to the browsers resolution?So if your browser is made (by hand) smaller, the tables have to automatically adjust to the browsers height and width...and the text must stay the same, with horizontal scrollbars appearingThen you have to use % instead of px<table width="10%" height="20%"> <tr> <td style="background:..."></td> <td width="" height="">your text</td> </tr></table>That should adjust the table itself to your browsers res, while the text stays on the specified width and height.Not completely sure but it's worth a shot :D

Share this post


Link to post
Share on other sites

Please. Do not use invisible tables to provide layout. Luckily the invisible tables time is over. It is time to move to CSS. The same static effect can be provided with CSS. Please consider moving to CSS.

Share this post


Link to post
Share on other sites

you can use JSPor make one table not table in tableon table in page and when your page is resize table must resize but you can make css and jsp for change width and height of your tabel

Share this post


Link to post
Share on other sites

One place to learn is Help.com. Here you can learn a lot of things and they have a online course. You need to have an ID and can register for the courses. And one more thing it's free.Hope I could help. :D

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

×
×
  • 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.