![]() | |
![]() |
| | Thread Tools | Display Modes |
#21
| |||
| |||
|
|
On 27 Dec, 08:58, dorayme <doraymeRidT... (AT) optusnet (DOT) com.au> wrote: [...] Sorry for the mistakes in my code, but as you've given me permission to use tables for this, I think I won't spend any more time on trying to get your code to work for me - but many thanks for all the time you've put into this. I don't blame you. It was just something to have ago at, these |
|
Can you point me to a good web page that explains in detail why I should use ems rather than points, and also explains how to convert my points measurements into ems so that the results look the same as before on a default (Ctrl+0) screen? |
|
Also, what about things like table borders (which I sometimes define in points) - must they also be in ems? If so, why? |
#22
| |||
| |||
|
|
In article 6d5325e0-d37d-4a5c-9bcf-a06e81344... (AT) q77g2000hsh (DOT) googlegroups.co m>, Dave Rado <dave.r... (AT) dsl (DOT) pipex.com> wrote: On 18 Dec, 09:41, dorayme <doraymeRidT... (AT) optusnet (DOT) com.au> wrote: In Firefox, this might suit: http://netweaver.com.au/alt/rado.html and then there is the little business of how floats line up at the top, not the bottom that needs attending to for most other browsers. But that might make me have to rub a few brain cells together... <g You could also do http://netweaver.com.au/alt/rado2.html which controls a bit more... But more fun in the morning maybe... -- dorayme Thanks, dorayme; but I don't understand how your code works, or how I can make it look exactly likehttp://tinyurl.com/23xktn- could you explain how it works, so I can understand it well enough to tweak it for my needs? E.g. if I change the margin-left attribute for <p> to 4em, I can't see how to get the heading text to line up with it. Also wouldn't defining "div" like that in the css stylesheet mean you couldn't use the div tag for any other purpose? About the last question, see my reply to to your similar query in another post about span. I was playing about with a fixed relationship between font-sizes, hoping that it would help to calculate a left margin for the paragraph text. But it is difficult as different browsers do slightly different calculations. And different fonts affect things, all these things hard to control on a users computer by the author. David Trimboli's suggestion is a nice alternative to table layout as far as style is concerned. But all these attempts to help out need to come after a clearer idea of what you are doing. You know, a table is not that semantically so terrible as a layout for what I imagine *might* be your purpose (but I do not *know* your purpose). rf suggests an ordered list, maybe this is good. But you have some stylistic requirements that are easier in a table. I have argued before that an ordered list is - in its essentials - very close to a table with the numbers being in one column and relating as tabular data to a corresponding bit in the next row. In your case there are a couple of ways of interpreting things so that your number does relate to the data in the next col. More on this in a mo. Putting a 1. in <h1> is an unusual thing to do. Not wanting to be too moralistic, but think about it. An <h1> is essentially a top heading. It has the idea of Number Oneness as part of its meaning. It seems to be redundant to be putting in this number. This is for most normal uses. (Of course, there could be special cases. Perhaps you are showing students top level headings and want to mark them out to later refer to them?) Anyway, it is important to consider whether it is really a heading that is the most meaningful element for your purpose. But let us suppose some reasonable purpose for having a number to the left and a heading to the right of this number with paras under the heading all nicely lined up. You want a number, it is the start of an ordering (there will be subsequent numbers and headings and paragraphs) like this: 1. Top level heading para para para Lower level heading para para para etc. and then 2. Top level heading para para para Lower level heading para para para The ordered list *should* be perfect but is a bit tricky with your style requirement. If I am right about an ordered list being essentially equivalent to a table then the table is, after all, not something you need to be shying away from. The interpretation of what the 1 refers to also becomes clearer, it refers to the item in the adjoining cell. And the adjoining cell has all the headings and paras you want. But your original table will not do. It is not very clear semantically to use a big word). Your original athttp://www.daverado.mvps.org/temp/headings.htmhad tables within tables etc. May I suggest this is clearer: http://netweaver.com.au/alt/radoTable.html But there is a pesky problem in Safari about the numbers not looking aligned right. In my FF it looks sweet. Perhaps numbers are using one font and letters another? I dunno. I better stop! -- dorayme |
#23
| |||
| |||
|
|
Hi dorayme For some reason I've only just seen your above post and the previous one, but I'm not sure I understand it. .... |
|
As for whether or not I can get rid of the outer table and simulate the look of the "document page" in a different way that doesn't use a table, I'm investigating this in a different thread, but so far I'm not sure if it's going to be practical. |
#24
| |||
| |||
|
|
if you make a box 16em wide it's got room for probably about 8 characters, depending on the font. |
#25
| |||
| |||
|
|
On this particular issue, all I recall is that I thought you could have had a table layout in a simpler way than the one you produced. But a lot has gone under the bridge on this... Please post a fresh URl of the table you are considering using and we can take a look at it and suggest any improvements. |
|
But your original table will not do. It is not very clear semantically to use a big word). Your original at had tables within tables etc. |
#26
| |||
| |||
|
|
Dave Rado wrote: I had posted the following mcok-up: http://www.daverado.mvps.org/temp/headings.htm Is this what you are trying to do? http://k75s.home.att.net/test/rado.html It is much easier to use 21st century markup... <g |
#27
| |||
| |||
|
|
dorayme wrote: "Beauregard T. Shagnasty" <a.nony.mous (AT) example (DOT) invalid> wrote: http://k75s.home.att.net/test/rado.html It is much easier to use 21st century markup... <g We have been down this road. He won't like when it wraps. <g Heh. I guess his thinking is still in the last century, like his code. He could always set a fixed width on the content div I used... <sigh but still far less code to maintain than that table fiasco. |
#28
| |||
| |||
|
|
Ben C wrote: if you make a box 16em wide it's got room for probably about 8 characters, depending on the font. It would have to be a mighty wide font to only get 8 characters in a 16em wide box. With Arial, you get around 35 characters in that space and around 40 with TNR. Maybe you were thinking of 8 words, not characters. |
|
BTW, ems don't really relate to character width, since they're a unit of height. |
#29
| |||
| |||
|
|
dorayme wrote: But I am rushing to get out to Botany Bay to swim and walk and dine.<g Swim? "Got Icepick?" |
#30
| |||
| |||
|
|
rf wrote: "Beauregard T. Shagnasty" wrote: dorayme wrote: But I am rushing to get out to Botany Bay to swim and walk and dine.<g Swim? "Got Icepick?" Beauregard, today the max temperature at my house (30K from doraymes) was 35.4 degrees. Celsius. |
|
A swim would have been a good idea indeed. Yes it would. But I stare out my window and see a lake in which the water is just a bit above the freezing point. The temperature is hovering around 2°C this morning. Balmy, eh? The icepick reference was just a humourous reference about the weather here on the cold side of the planet. The headers give our location away, even if Botany Bay did not :-) Oh, I know where you two are located... enjoy your swim. |
![]() |
| Thread Tools | |
| Display Modes | |
| |