![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
The height has been set using min-height for for those that support it and 'height' for IE only. It works the way I want it in IE and Opera. |
|
but does anyone know how I can get it to work in Firefox also? |
#3
| ||||||
| ||||||
|
|
in comp.infosystems.www.authoring.stylesheets, Lachlan Hunt wrote: [floats in container, container has background] The height has been set using min-height for for those that support it and 'height' for IE only. It works the way I want it in IE and Opera. Not on Opera either, at least 7.6p2 |
|
but does anyone know how I can get it to work in Firefox also? 1) #language li, #language a { display: inline; } /* instead current */ Sort out problem with PDF image differently. Would be easy with display:inline-block or inline-table, but FF dont support them. You could float the pdf thing, and use inline for others. |
|
2) Set background for body, instead of ul. Then set background for #container. This has side effect of overriding users default background. |
|
3) ul:after {display:block;content:"";clear:both} Most likely don't work on FF, does in Opera. |
|
4) wrap ul in div, have <div style="clear:both"> </div> under ul. (there is bug in Gecko that it don't get empty elements) |
|
[1] http://lachy.id.au/dev/mozilla/firef...nute/challenge Well, the problem with wrapping language bar background is very minor compared to other, extreamily serious problems, when looking it in narrow eaboug window to get lan bar wrap. At least I have my text zoom at smallest (11px). |
#4
| ||||||
| ||||||
|
|
Lauri Raittila wrote: in comp.infosystems.www.authoring.stylesheets, Lachlan Hunt wrote: [floats in container, container has background] I couldn't find where to get [Opera] 7.6p2, |
|
but it's obviously an upgrade and maybe they've fixed a bug with it, which would mean Opera 7.54's current behaviour is likely to be incorrect. I had a feeling it was, but wasn't totally sure. |
|
but does anyone know how I can get it to work in Firefox also? 1) #language li, #language a { display: inline; } /* instead current */ Sort out problem with PDF image differently. Would be easy with display:inline-block or inline-table, Yes, I wanted to use inline-block. I knew it would be perfect, but had to face reality when I realised neither IE or firefox has implemented it. |
|
I considered using inline, but then it's there's spaces between each li> which get rendered as a single space. I used the floats to avoid that problem, so there is no gap. |
|
3) ul:after {display:block;content:"";clear:both} Most likely don't work on FF, does in Opera. Definately won't work in IE, and I'd prefer to have very few, if any, user-agent specific CSS. |
|
Ideally, I would be able to remove the 1 hack that's in there at the moment and use the same CSS for all. |
#5
| ||||||
| ||||||
|
|
In IE it works on inline stuff (don't ask why), so display:inline;display:inline-block;display:inline-table; |
|
I considered using inline, but then it's there's spaces between each li> which get rendered as a single space. I used the floats to avoid that problem, so there is no gap. What harm does that gap do? |
|
You need some white space between the links anyway. |
|
And you can of course get rid of that whitespace. Just remove all spaces and tabs between tags. (you can leave linebreaks) |
|
...I'd prefer to have very few, if any, user-agent specific CSS. It is not user agent specific. Some browsers just don't support it... |
|
Ideally, I would be able to remove the 1 hack that's in there at the moment and use the same CSS for all. Tricker quirks mode, and hope there is nothing that will broke? (IE had bug that does what you want...) |
#6
| ||||
| ||||
|
|
Lauri Raittila wrote: In IE it works on inline stuff (don't ask why), so display:inline;display:inline-block;display:inline-table; That could be a good idea because it uses a fallback mechansim, rather than a specific browser hack. I'll think about using something like that. I considered using inline, but then it's there's spaces between each li> which get rendered as a single space. I used the floats to avoid that problem, so there is no gap. What harm does that gap do? It creates non-clickable regions between the links, which I dislike in navigation bars. |
|
You need some white space between the links anyway. No, there just needs to be sufficient padding to make the links large enough to be easily targetted with the cursor |
|
And you can of course get rid of that whitespace. Just remove all spaces and tabs between tags. (you can leave linebreaks) That won't work since all white space characters in HTML including spaces tabs and line breaks are collapsed to a single space. |
|
Ideally, I would be able to remove the 1 hack that's in there at the moment and use the same CSS for all. Tricker quirks mode, and hope there is nothing that will broke? (IE had bug that does what you want...) I definately will not trigger quirks mode in any browser, it must be done with standards or not at all. I don't understand why you even suggested that, considering that it would just be a different kind of hack, which I said I want to avoid. |
#7
| |||||
| |||||
|
|
in comp.infosystems.www.authoring.stylesheets, Lachlan Hunt wrote: It creates non-clickable regions between the links, which I dislike in navigation bars. It is good to have non-clickable regions between links. If there aren't, it is hard to know which link you are clicking. (assume :hover is forbidden for example) |
|
There should be non-link printable characters between links http://www.w3.org/TR/WCAG10/#tech-divide-links |
|
You could do ul li>fi /li><li>se /li /ul |
|
I definately will not trigger quirks mode in any browser, it must be done with standards or not at all. I don't understand why you even suggested that, considering that it would just be a different kind of hack, which I said I want to avoid. If you don't want to use quirks mode, you have already done some decision on grounds of supporting specific browsers. |
|
In reality, something else must be done than just give correct CSS to all browsers, if you aren't willing to do lots of compromises on how things will look. |
#8
| |||||||||||
| |||||||||||
|
|
Lauri Raittila wrote: in comp.infosystems.www.authoring.stylesheets, Lachlan Hunt wrote: It creates non-clickable regions between the links, which I dislike in navigation bars. It is good to have non-clickable regions between links. If there aren't, it is hard to know which link you are clicking. (assume :hover is forbidden for example) Not when the links are large enough, and visual feedback is given appropriately. |
|
In my experience, having a space between a link makes targetting and clicking a link harder as it is too easy to slip off the link into that gap. |
|
There should be non-link printable characters between links http://www.w3.org/TR/WCAG10/#tech-divide-links That refers to having space between links in the markup. Whether or not those spaces are dispalyed visually on the screen (depending on how they are removed) is irrelevant. |
|
In this instance because the li are floated which effectively removes the spaces visually, |
|
it doesn't hurt. |
|
I definately will not trigger quirks mode in any browser, it must be done with standards or not at all. I don't understand why you even suggested that, |
|
If you don't want to use quirks mode, you have already done some decision on grounds of supporting specific browsers. Now that's the most ridiculous statement I've read in a while. |
|
Choosing to support *standards* rather than undefined quirks mode behaviours of proprietary browsers is the exact opposite of supporting specific browsers. |
|
Not only that, given the content, and the fact that part of the reason for spreading Firefox is to support *standards*, it would be extremely hypocritical to trigger quirks mode. |
|
In reality, something else must be done than just give correct CSS to all browsers, if you aren't willing to do lots of compromises on how things will look. I am far more willing to compromise on presentation than I am to compromise on the markup, |
|
especially when it comes to a decision as insane as choosing quirks mode over standards mode. |
![]() |
| Thread Tools | |
| Display Modes | |
| |