Could You Pleas Tell Me How Yahoo Does This?

They have: 26 posts

Joined: Apr 2000

Hi,

I've been looking at fixed pixel size of different computers and CSS really isn't the right solution.

As usual, when you use regular font size and it is adjusted larger or smaller, you can have wrapping in the tables.

Yahoo uses scaleable font sizes but their tables do not get out of line.

Could you please tell me how?

In short, I want to make the page scaleable, but to maintain structure.

Thanks

Suzanne's picture

She has: 5,507 posts

Joined: Feb 2000

1. CSS has nothing to do with table wrapping or not wrapping.
2. Their tables are coded properly. They don't rely on nested tables for layout. All tables hold their form if they are basic tables.
3. You can view source to see how their tables are put together.
4. CSS can make the font a fixed pixel size, but that is one of 4 font sizing options. You can also use small, medium, et cetera, smaller, et cetera, and points. Those options are resizeable by the viewer. Pixels are not.

Suzanne

------------------
Zero Cattle
Suzanne
Tables DeMystified

They have: 231 posts

Joined: Feb 2000

To avoid wrapping in table cells, you must avoid using spaces in text. If you want to type "Two Words" then you should put a " " where the space is.

:: Lloyd Hassell :: http://www14.brinkster.com/lloydh ::

They have: 26 posts

Joined: Apr 2000

Suzanne,

Thanks for the reply.
I know CSS doesn't have to do with table wrapping, but you can control it with CSS if you define the text size by pixels, then set your tables to a certain size. Then text wrapping is prevented because the font size can't get any larger and cause text wrapping.
The problem is that it doesn't let users define text size.

Lloyd,

Thank you,

THAT is what I was looking for.
I have been avoiding the text wrap without spaces, but have been using "." or "_" between the words, like "My_Home_Page".

Changing the font color of the periods or dashes just clutters the html or becomes apparent in certain browsers.

I'll give the &nbsp a try.

Suzanne's picture

She has: 5,507 posts

Joined: Feb 2000

So you only want the words to not wrap? If the user chooses a larger font size, and your tables are a set size, and your words won't wrap, the table will stretch.

If they choose a smaller font size, it won't, of course.

While   resolves some issues at a micro-managed level in the text, it will break your tables if someone pumps up the font-size.

just fyi.

Suzanne

------------------
Zero Cattle
Suzanne
Tables DeMystified

They have: 26 posts

Joined: Apr 2000

Suzanne,

Good point about the tables stretching. I stack my tables instead of embedding, but since this would make the lower tables stretch, but not the top, it will look off centered.
Will have to experiment and see what works best, might be back with another Q

Nice info on the tables demystified link in your sig.

Thanks

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.