the_furious1 0 Report post Posted March 1, 2005 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
no9t9 0 Report post Posted March 1, 2005 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
beeseven 0 Report post Posted March 2, 2005 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
the_furious1 0 Report post Posted March 2, 2005 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
krap 0 Report post Posted March 2, 2005 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
cse-icons 0 Report post Posted March 2, 2005 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
the_furious1 0 Report post Posted March 3, 2005 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
HmmZ 0 Report post Posted March 3, 2005 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 Share this post Link to post Share on other sites
mizako 0 Report post Posted March 3, 2005 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
NotoriousZach 0 Report post Posted March 4, 2005 Yeh use the % that way it changes size depending on browser and other stuff. Share this post Link to post Share on other sites
alexia 0 Report post Posted March 5, 2005 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
the_furious1 0 Report post Posted March 7, 2005 Can you reccomend my some web sites where I can learn CSS and JSP (I assume that JSP is java script programing????), because I tried myself and I could not find it!!!Thank you!!! Share this post Link to post Share on other sites
canute24 0 Report post Posted March 7, 2005 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. Share this post Link to post Share on other sites
beeseven 0 Report post Posted March 9, 2005 JSP I think is Java Server Pages. I made a tutorial for CSS that people have been saying is pretty good, but most of them already knew CSS, so tell me if it teaches you anything: http://forums.xisto.com/topic/7777-a-guide-to-css-and-creating-a-stylesheet/ Share this post Link to post Share on other sites