Re: [css-d] named anchors in IE
On Wed, 12 Sep 2007, Ross Hulford wrote: > This code works > > some text What is the URL that illustrates the problem, and how does it relate to CSS? > The problem is not that it uses 'id 'or 'name' but that it is empty. It is not empty. Do you mean that it _should_ be empty, as in your original posting? There is really no need for that. If you don't have a h2 heading, don't write one; assign an id="..." attribute to some other element instead. (Headings are just _natural_ targets for links.) Besides, IE can handle empty anchors. As I mentioned, your markup, expanded trivially to an HTML document, works on IE. Some browsers have had problems with empty anchors, but this depends on complex issues and isn't really a CSS issue (except perhaps fairly indirectly: such problems mostly emerge when tables are used, and switching from a layout table to CSS-based layout may remove the problem). > How do > I use the haslayout property, like this? Does it validate? No, it's an internal IE thing. And _it_ is a CSS issue, but why do you think it relates to the problem at all? -- Jukka "Yucca" Korpela, http://www.cs.tut.fi/~jkorpela/ __ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Re: [css-d] named anchors in IE
Ross Hulford wrote: > The problem is not that it uses 'id 'or 'name' but that it is empty. > How do I use the haslayout property, like this? Does it validate? Your example will neither work nor validate. An empty element can be "spaced out" simply by adding 'width: (some value)' and 'height: (some value)', and 'display: block' if necessary. Not a good solution though, since it relies entirely on CSS support. Also, some versions of IE tend to ignore empty anchors completely, no matter what you do through CSS. Normally this shouldn't be an issue, as the part one wants to link to must surely contain /something/ if it should be worth linking to. Linking to a place that contains /nothing/ doesn't sound realistic. Adding an 'id' to, or using an existing 'id' on, a container-div, paragraph or whatever element contains what one wants to link to, is how it's done in all cases I can think of. No browser that I know of should have a problem with that. regards Georg -- http://www.gunlaug.no __ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Re: [css-d] named anchors in IE
This code works some text The problem is not that it uses 'id 'or 'name' but that it is empty. How do I use the haslayout property, like this? Does it validate? h2 { hasProperty = True; } __ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Re: [css-d] named anchors in IE
On 12/9/07 (11:30) Ian said: >If I read you right you are using as anchor. > >Should read > >Then wherever you need to go there : >Go to CAD Oh, I was under the impression that id was the way forward for identifying document fragments, with name being used for legacy support of older browsers. I do recall reading advice that said to use both to be on the safe side, eg: CAD Operators -- Rick Lecoat __ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Re: [css-d] named anchors in IE
On Wed, 12 Sep 2007, Ross Hulford wrote: > I have a css menu > > CAD Operators > > > when I try to link to a named anchor in ie it does not work what am I doing > wrong? Is there some reason to think that the problem is related to CSS? Hint: disable CSS and test the page. (On IE, you can't disable CSS using the browser's basic controls, but you can test with a page version that has CSS code stripped away.) The markup above works on IE, but it is _imaginable_ (though not probable) that some CSS code could prevent this. For analyzing this, the URL is needed. The markup is somewhat odd, though. Using CAD Operators would be more natural. ObCSS: You can use CSS to prevent an h2 element from being too prominent; set e.g. h2 { font-size: 100%; margin: 0; padding: 0; }, which might suit the design better than default rendering of h2. -- Jukka "Yucca" Korpela, http://www.cs.tut.fi/~jkorpela/ __ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Re: [css-d] named anchors in IE
> To: css-d@lists.css-discuss.org > Subject: [css-d] named anchors in IE > > > I have a css menu > > CAD Operators > > > when I try to link to a named anchor in ie it does not work what > am I doing > wrong? > If I read you right you are using as anchor. Should read Then wherever you need to go there : Go to CAD HTH Ian IY e-Solutions http://www.iyesolutions.co.uk No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.485 / Virus Database: 269.13.14/999 - Release Date: 10/09/2007 17:43 __ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/