![]() | |
![]() |
| | Thread Tools | Display Modes |
#11
| ||||||
| ||||||
|
|
In article Michael Rozdoba wrote: |
|
IE 6.0 messes it up ... It requires a height of 34em on the floated div, rather than 23em. Was that only problem? Then it was surprisingly easy ;-) |
|
How does one reduce the spacing in IE on list items? line-height will do it, but only with silly small values which don't work in other browsers. I looked, and it was this good old white space bug. |
|
It works now in IE5.5, not pixel perfectly, but that could be fixed using Tantek hack. I wouldn't bother though, as it doesn't break. (after I changed it a bit...) |
|
Margin & padding don't seem to be the problem. Furthermore, adding a border to see what's going on really confuses things, as the added spacing then vanishes :/ Try background color or outline |

|
instead border next time, they work even when border changes relations. |

#12
| |||||
| |||||
|
|
Lauri Raittila wrote: In article Michael Rozdoba wrote: [snip] IE 6.0 messes it up ... It requires a height of 34em on the floated div, rather than 23em. Was that only problem? Then it was surprisingly easy ;-) g [snip] How does one reduce the spacing in IE on list items? line-height will do it, but only with silly small values which don't work in other browsers. I looked, and it was this good old white space bug. [looks up ominous sounding white space bug] :-/ Eeugh, oh dear, not seen that before. Something else to keep an eye out for. |
|
It works now in IE5.5, not pixel perfectly, but that could be fixed using Tantek hack. I wouldn't bother though, as it doesn't break. (after I changed it a bit...) Now fine in IE6.0 too; alas not in Firebird 0.7 anymore - the footer top border lies at about the same height as the baseline of the "Menu 3.4.1" text. |
|
Try background color or outline [Looks up outline -> http://www.w3.org/TR/REC-CSS2/ui.html#dynamic-outlines] Ah, I didn't know that existed. Very handy ![]() |
|
I wasn't keen on using border due to positional shifts - is that what you mean by relations[*] , however I didn't know about outline. |
|
Thanks for bringing all these problems to my awareness. Seems like reading this group is even more of an aid to learning CSS than I expected ![]() |
#13
| |||||||
| |||||||
|
|
In article Michael Rozdoba wrote: |
|
Then you must be new. |
|
White space bug is like margin collapsing - last thing people understand to check. Difference is that white space bug is actually bug, not correct behaviour ;-) |
|
Need to check that. I can't understand reason, as I don't think I changed anythig that could change something. |
|
OTOH, they only work on Opera AFAIK. |
|
Borders also affect on margin collapsing. |
|
Thanks for bringing all these problems to my awareness. Seems like reading this group is even more of an aid to learning CSS than I expected ![]() I don't think there is any other way to learn CSS well exept try and error and serious spec reading. Much easier to read this group. |
#14
| |||||||
| |||||||
|
|
Lauri Raittila wrote: In article Michael Rozdoba wrote: [white space bug] Then you must be new. Very. Been meaning to learn HTML for years, but just got into it a few weeks ago when I had to write an assignment for a basic HTML introductory course. I got a bit carried away & when I discovered CSS, couldn't resist using it, even though it wasn't part of the course (hope I don't get marked down). |
|
The result's at http://osiris.sunderland.ac.uk/~cd2mro/. I'm still tinkering with it, so the latest version is at http://osiris.sunderland.ac.uk/~cd2mro/final/ |
|
Make plentiful use of whitespace. Narrower columns of text, clearly delimited with empty space, either side, are much easier to read. |
|
White space bug is like margin collapsing - last thing people understand to check. Difference is that white space bug is actually bug, not correct behaviour ;-) Easy to tell them apart - if it's in IE there seems to be a 99% chance it's a bug; if it's Gecko & Opera, almost certainly is the spec. |
|
Need to check that. I can't understand reason, as I don't think I changed anythig that could change something. Sorry I can't help - could it be anything to do with differing default values for something that's not been specified explicitly? I'm afraid when I said it previously worked in Firebird, I just meant it looked okay (ie no overlap & not an overly large gap between navigation bar & footer) - I didn't do a comparison of positioning down to the pixel level (that doesn't usually bother me, so I don't look or aim for it). I reckon I would have noticed a difference of over an em, mind you. |
|
If you have the original version & put it back on the server, I'll have another look, if you don't have the time or a gecko based browser handy. |
|
Ah, okay. I do read the spec, but only as & when I have time or a problem. Bits of it are sinking in, but I'm not yet familiar with much of it. It is a surprisingly easy to read document though. |
#15
| |||
| |||
|
|
In article Michael Rozdoba wrote: Lauri Raittila wrote: Try background color or outline [Looks up outline -> http://www.w3.org/TR/REC-CSS2/ui.html#dynamic-outlines] Ah, I didn't know that existed. Very handy ![]() OTOH, they only work on Opera AFAIK. |
#16
| |||||||||||||
| |||||||||||||
|
|
In article Michael Rozdoba wrote: |
|
It really don't make sence to tech HTML whitout CSS. |
|
After all, it takes 4 hours to tech basics of html to 13 year old newbie. If that 13 year old is interested, he'll learn it by himself. |
|
(it is harder to tech to someone older, they want to make webpages just like all others in net unfortunately). |

|
The result's at http://osiris.sunderland.ac.uk/~cd2mro/. I'm still tinkering with it, so the latest version is at http://osiris.sunderland.ac.uk/~cd2mro/final/ You should em unit for navigation bar width. Now it breaks on small window sizes... At least min-width. |
|
| Make plentiful use of whitespace. Narrower columns of text, clearly | delimited with empty space, either side, are much easier to read. There is a limit. If it goes under 40-50 chars, it starts to be too short. |
|
Max-width is better than big margins (but don't work on IE). |
|
Big margins should be done using percentages, so that they dont take overly much space on smaller window. And if window is bigger, they take more space. |
|
White space bug is like margin collapsing - last thing people understand to check. Difference is that white space bug is actually bug, not correct behaviour ;-) Easy to tell them apart - if it's in IE there seems to be a 99% chance it's a bug; if it's Gecko & Opera, almost certainly is the spec. White space bug also applies to Opera and Gecko, |
|
but less often (and even more hard to think times). And sometimes something that look like white space bug is really white space feature... |
|
I don't care pixel perfectness much either, but it is challenge. That layout would have been much easier to do whiout being pixel perfect. I can imagine |
|
Well, I checked it now and noticed that I had but margin between footer and other content to wrong place. Also happened in Opera, I just didn't notice as my content was too long. It was on margin-top on footer, and of course it doesn't affect to space between float and cleared element. |

|
I do read the spec, but only as & when I have time or a problem. Bits of it are sinking in, but I'm not yet familiar with much of it. It is a surprisingly easy to read document though. Yes, especially compared to HTML spec. I have not seen any CSS tutorial etc that I would think is clearer than spec. Even if, or maybe just because there is lots of totally undefined things. |
#17
| |||
| |||
|
|
Example (that is not tested on IE, propably needs some tweaking): http://www.student.oulu.fi/~laurirai/www/css/splitmenu/ |
|
Rather make your footer narrower. I'm not big fan of over long navigation menus, but this seems good way to do one. Me neither, but the point is that this solution provides many |
![]() |
| Thread Tools | |
| Display Modes | |
| |