HTML Question for those inclined

Dec 14, 2003 23:14

I'm creating a table that keeps all its text within a border on either side. I'm sizing the table by percent, not pixels.

The problem is that 1% is too wide of a border, is there any way to make it smaller?

I don't want to size it by pixels because it seems really limiting, is there a workaround?


Read more... )

Leave a comment

Comments 8

skyvillain December 14 2003, 23:32:10 UTC
Well you probably don't want the border to be elastic, especially since that usually looks different on every browser. You can still have the main body column set at 100% and it will just push out as far as possible as long as there is something in the cell. You should make the border 1 or 2 pixels wide with a bgcolor, drop a 1x1 blank spacer,gif in there, and drop the rowspan down so it is consistent throughout all the rows.

Reply

Thanks beeudoublez December 15 2003, 09:19:33 UTC
I knew you would know, I'll try that later, thanks!

Reply

Hmmm beeudoublez January 1 2004, 14:48:09 UTC
So, are you saying that I should make the whole table at 100%, but then set that cell width = "1"? That doesn't seem to work.

- Perhaps I'm looking at this wrong, but I just wanted to have a page with a border all around (instead of open sides), and it looks odd if I set it to a pixel width, because you'd either have white space all around, or the browswer would have to be resized.

I've got a 1x1 spacer gif in there, but can't get the width to automatically fit to that. Grr

Reply


grindnbassline December 15 2003, 03:34:27 UTC
never underestimate the power of 101%-width cells :P

Reply


gba December 15 2003, 11:32:01 UTC
tables are depreciated btw, the new methods are to use div's and span's for body elements, and dl dt/dd for intrabody elements.

just fyi :).

Reply


underxmyxskin December 28 2003, 00:04:59 UTC
Hey I was just browsing the Sonoma community posts and noticed you mentioned home is Grass Valley...what high school did you go to?

Reply

Heh beeudoublez December 28 2003, 15:56:16 UTC
Actually, home is Paso Robles, but my grandparents live up in Nevada City, and I've got three cousins that went to NU, one is still there, one two years ago, and the other three. Might you know them?

Reply

Re: Heh underxmyxskin December 31 2003, 22:43:05 UTC
Ah I see...I didn't go to NU, I went to Bear River, so I most likely don't know your cousins :)

Reply


Leave a comment

Up