[css-d] Combining :only-of-type with :before?
Hello, I'm trying to style XML with CSS. I have successfully used the :only-of-type pseudo-class to let single instances of an element become inline, and multiple instances of the same be block elements. What I am NOT able to do is to combine this pseudo-class with the :before pseudo-class. What I want to achieve is: * multiple children of the same type should be displayed as a numbered list * lone children of the above type should be displayed as inline text, *without* any numbering Since i'm not able to combine the :before element with any variant of pseudo selectors that would differentiate between the two cases, I'm not able to remove the numbering from the single child case (or add it only to the multiple children case). The present state can be seen at: https://victorio.uit.no/langtech/trunk/words/dicts/nobfkv/src/adv_nobfkv.xml (NB. self-signed certificate) The present setup works in Safari 4, Opera 10.10, and Firefox 3.5 (all Mac). I have no intention to support older browsers beyond reasonable degradation. Any suggestion for how I could achieve what I want would be very much apprechiated. Best regards, Sjur N. Moshagen __ css-discuss [cs...@lists.css-discuss.org] 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] Funeral for IE6
David McGlone wrote: By the way David, did I ever thank you for the help? If not, then I thank you. If so, then I just thanked you again. :-) Give credit where credit is due. on having layout http://www.satzansatz.de/cssd/onhavinglayout.html position is every thing http://www.positioniseverything.net/ I also used to be in the mindset that Microsoft was the correct was to go. I believed they could do no wrong and everybody else didn't know what they were doing. It wasn't until I learned that everybody else was following standards and IE wasn't. This made me realized IE was the culprit all along. So don't get me wrong, everybody here has taken time to help me and has taught me something and I'm thankful for that, but with this particular subject, you did bring haslayout to my attention and showed me how to use it in my style sheets. So yes you do deserve a thank you from me, because you cleared up a whole lot of confusion for me. -- Blessings David M. I have been driven to my knees many times by the overwhelming conviction that I had nowhere else to go. __ css-discuss [cs...@lists.css-discuss.org] 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] Combining :only-of-type with :before?
On Mar 5, 2010, at 7:18 PM, Sjur Moshagen wrote: I'm trying to style XML with CSS. I have successfully used the :only-of-type pseudo-class to let single instances of an element become inline, and multiple instances of the same be block elements. What I am NOT able to do is to combine this pseudo-class with the :before pseudo-class. What I want to achieve is: * multiple children of the same type should be displayed as a numbered list * lone children of the above type should be displayed as inline text, *without* any numbering Since i'm not able to combine the :before element with any variant of pseudo selectors that would differentiate between the two cases, I'm not able to remove the numbering from the single child case (or add it only to the multiple children case). The present state can be seen at: https://victorio.uit.no/langtech/trunk/words/dicts/nobfkv/src/adv_nobfkv.xml E:only-of-type::before {content: none; content:''; } should work correctly. In Safari 4,Chrome 4, Opera 10.5, Gecko 1.9.2. Forget about IE, it doesn't understand 'only-of-type'. I don't think working with counters() would produce different results. testcase: http://dev.l-c-n.com/_temp/only-of-type-cssD220305.html note: neither WebKit nor Opera support 'content: none', hence the double declaration. otherwise you could also do E:not(only-of-type)::before {content:'something'} I don't have time to wade through your whole stylesheet / page. A simplified test case please ? Philippe --- Philippe Wittenbergh http://l-c-n.com/ __ css-discuss [cs...@lists.css-discuss.org] 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] ADMIN: Web Development Conference in Raleigh, NC NCDevCon
At 7:46 PM -0500 3/4/10, Roger Austin wrote: We are having another free web development conference this year in Raleigh, NC at the NC State University Centennial Campus. I just want to pop in here to say that this post has the Chaperone's blessing, and to include a reminder that anyone with similar posts should seek said blessing before posting. Thanks! -- Eric A. Meyer (http://meyerweb.com/eric/), List Chaperone CSS is much too interesting and elegant to be not taken seriously. -- Martina Kosloff (http://mako4css.com/) __ css-discuss [cs...@lists.css-discuss.org] 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] Combining :only-of-type with :before?
Den 5. mar. 2010 kl. 15.52 skrev Philippe Wittenbergh: What I want to achieve is: * multiple children of the same type should be displayed as a numbered list * lone children of the above type should be displayed as inline text, *without* any numbering Since i'm not able to combine the :before element with any variant of pseudo selectors that would differentiate between the two cases, I'm not able to remove the numbering from the single child case (or add it only to the multiple children case). The present state can be seen at: https://victorio.uit.no/langtech/trunk/words/dicts/nobfkv/src/adv_nobfkv.xml E:only-of-type::before {content: none; content:''; } should work correctly. Thanks a lot! That made it:) In Safari 4,Chrome 4, Opera 10.5, Gecko 1.9.2. Forget about IE, it doesn't understand 'only-of-type'. That's ok. I don't think working with counters() would produce different results. testcase: http://dev.l-c-n.com/_temp/only-of-type-cssD220305.html Thanks, I didn't find that one. note: neither WebKit nor Opera support 'content: none', hence the double declaration. Ok, that one put me off - didn't know about that. The other thing i missed was the need to use double colons, like ::before - I tried only ':before'. What's the reason? When used directly with an element only a single colon (like :before) is needed. otherwise you could also do E:not(only-of-type)::before {content:'something'} I tried variants of that as well, but again missed out on the double colon :: part. I don't have time to wade through your whole stylesheet / page. A simplified test case please ? I will try to simplify it next time. Thanks a lot for your help! Best regards, Sjur N. Moshagen __ css-discuss [cs...@lists.css-discuss.org] 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] A fonts, font-replacement, standards, and accessibility question
Thank you for the URLs David, Philippe, and Thierry. I'm wondering why I haven't encountered @font-face sooner. Reese __ css-discuss [cs...@lists.css-discuss.org] 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] Combining :only-of-type with :before?
The other thing i missed was the need to use double colons, like ::before - I tried only ':before'. What's the reason? :before is CSS2. ::before is CSS3. In CSS3, double colons go before pseudo-elements (first-line, first-letter, before, after), while single colons go before pseudo-classes (first-child, only-of-type, nth-child, etc). Since only-of-type is a CSS3 pseudo class, it's enforcing the CSS3 syntax. The spec: http://www.w3.org/TR/2009/WD-css3-selectors-20090310/#pseudo-elements (pseudo-classes are the ---Tim __ css-discuss [cs...@lists.css-discuss.org] 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/
[css-d] NiceForms CSS Issues in FF / Chrome / IE8, but not IE7
I am using the NiceForms JavaScript library to style the form fields on a basic contact form. All of the form fields are working correctly except for the textarea field. I have done this in the past and had it work, but in this case I have run into a wall. In IE7 and IE8 Compatibility mode, everything works fine. In FireFox, Chrome, or IE8, the placement of the corner images is incorrect. I am using the latest version of the script, which according to the web site should support most major browsers. Can somebody take a look and see if you can find anything off in my CSS because I know I have had this working on other sites. http://www2.admentus.com/contact-us/ Thanks -- Jeff __ css-discuss [cs...@lists.css-discuss.org] 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/
[css-d] bemstrongi tags
I know these tags are considered to be Presentational in type and there for avoided in semantic markup but I still like to use them in a semantic way. To me it seems practical is some content is important or different from content around it it should have different markup around it regardless of how it looks. There are tags for acronyms and abbreviations, but what if something is just more important or different? Granted they are not perfect for every situation. You can style them in the CSS however you want... In fact I use Myer's reset CSS which pretty much removes default styles from them. Usually I just flip back and forth between the em and b. I like the em because it makes since if something is more important then it has Emphasis. But I also like the b because I'm very lazy and like 1 letter tags. __ css-discuss [cs...@lists.css-discuss.org] 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] bemstrongi tags
I use i regularly to italicize foreign words and phrases. I guess to be technically correct I should embed the Latin language code as well as a span that is styled to use italics, but that's just too danged much work. I do consistently use em for emphasis and reserve i for foreign language words. And cite for book titles. But since this is a CSS list, all I'll say is that CSS offers little here unless you decide you prefer to boldface book titles or something like that. This really is about markup not appearance. Skip Knox Boise State University On Fri, Mar 5, 2010 at 1:20 PM, Atkinson, Sarah sarah.atkin...@cookmedical.com wrote: I know these tags are considered to be Presentational in type and there for avoided in semantic markup but I still like to use them in a semantic way. To me it seems practical is some content is important or different from content around it it should have different markup around it regardless of how it looks. There are tags for acronyms and abbreviations, but what if something is just more important or different? Granted they are not perfect for every situation. You can style them in the CSS however you want... In fact I use Myer's reset CSS which pretty much removes default styles from them. Usually I just flip back and forth between the em and b. I like the em because it makes since if something is more important then it has Emphasis. But I also like the b because I'm very lazy and like 1 letter tags. __ css-discuss [cs...@lists.css-discuss.org] 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/ __ css-discuss [cs...@lists.css-discuss.org] 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] bemstrongi tags
i and b are deprecated tags. em is for emphasis and strong is for strong emphasis typically an em is styled with css as italic and strong is styled as bold. Emphasis(em) and strong emphasis(strong) are not presentational markup. On Fri, Mar 5, 2010 at 3:26 PM, Skip Knox sk...@boisestate.edu wrote: I use i regularly to italicize foreign words and phrases. I guess to be technically correct I should embed the Latin language code as well as a span that is styled to use italics, but that's just too danged much work. I do consistently use em for emphasis and reserve i for foreign language words. And cite for book titles. But since this is a CSS list, all I'll say is that CSS offers little here unless you decide you prefer to boldface book titles or something like that. This really is about markup not appearance. Skip Knox Boise State University On Fri, Mar 5, 2010 at 1:20 PM, Atkinson, Sarah sarah.atkin...@cookmedical.com wrote: I know these tags are considered to be Presentational in type and there for avoided in semantic markup but I still like to use them in a semantic way. To me it seems practical is some content is important or different from content around it it should have different markup around it regardless of how it looks. There are tags for acronyms and abbreviations, but what if something is just more important or different? Granted they are not perfect for every situation. You can style them in the CSS however you want... In fact I use Myer's reset CSS which pretty much removes default styles from them. Usually I just flip back and forth between the em and b. I like the em because it makes since if something is more important then it has Emphasis. But I also like the b because I'm very lazy and like 1 letter tags. __ css-discuss [cs...@lists.css-discuss.org] 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/ __ css-discuss [cs...@lists.css-discuss.org] 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/ -- -Jonathan Finnegan http://haveboard.com/ http://twitter.com/haveboard/ http://jonathanfinnegan.com/ ***Disclaimer This message and any attachments may contain confidential information and are only for the use of the intended recipient of this message. If you are not the intended recipient, please notify the sender by return mail, and delete or destroy this and all copies of this message and all attachments. Any unauthorized disclosure, use, distribution, or reproduction of this message or any attachments is prohibited and may be unlawful. __ css-discuss [cs...@lists.css-discuss.org] 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] bemstrongi tags
Skip after Sarah: I do consistently use em for emphasis and reserve i for foreign language words. And cite for book titles. But since this is a CSS list, all I'll say is that CSS offers little here unless you decide you prefer to boldface book titles or something like that. This really is about markup not appearance. But if you ever wanted to change the appearance of all foreign words, you're now on a search-and-replace mission where if you mark it up to begin with, you can change it in one line. Even if you have two versions of em, you can add a class to make them the same or different. em vs. em class=veryImportant FWIW, Mark W. __ css-discuss [cs...@lists.css-discuss.org] 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/
[css-d] How to set equal widths on an unknown number of items?
I have an interesting CSS challenge. I am making a set of tabs that will go across the top of a web page, but they're going to be used in a CMS so I don't know how many tabs there will be. I would like to have all of the tabs be of equal width, and fill their container. If I knew how many tabs to expect I could set widths as percentages, but since I don't know how many tabs to expect I can't really do that. So is there a pure-CSS way, (as opposed to having the CMS calculate widths and set them inline), that we all know of to get this done? John __ css-discuss [cs...@lists.css-discuss.org] 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] bemstrongi tags
So is presentation of a foreign language phrase strictly presentational? I don't think so. And if not, then I argue that i is the best markup choice available to us. But let's hold here, lest we rouse ListMom, who must surely have a standard library of Scold messages by now. Skip Knox Boise State University On Fri, Mar 5, 2010 at 1:49 PM, haveboard.com jonathan.finne...@gmail.comwrote: i and b are deprecated tags. em is for emphasis and strong is for strong emphasis typically an em is styled with css as italic and strong is styled as bold. Emphasis(em) and strong emphasis(strong) are not presentational markup. On Fri, Mar 5, 2010 at 3:26 PM, Skip Knox sk...@boisestate.edu wrote: I use i regularly to italicize foreign words and phrases. I guess to be technically correct I should embed the Latin language code as well as a span that is styled to use italics, but that's just too danged much work. I do consistently use em for emphasis and reserve i for foreign language words. And cite for book titles. But since this is a CSS list, all I'll say is that CSS offers little here unless you decide you prefer to boldface book titles or something like that. This really is about markup not appearance. Skip Knox Boise State University On Fri, Mar 5, 2010 at 1:20 PM, Atkinson, Sarah sarah.atkin...@cookmedical.com wrote: I know these tags are considered to be Presentational in type and there for avoided in semantic markup but I still like to use them in a semantic way. To me it seems practical is some content is important or different from content around it it should have different markup around it regardless of how it looks. There are tags for acronyms and abbreviations, but what if something is just more important or different? Granted they are not perfect for every situation. You can style them in the CSS however you want... In fact I use Myer's reset CSS which pretty much removes default styles from them. Usually I just flip back and forth between the em and b. I like the em because it makes since if something is more important then it has Emphasis. But I also like the b because I'm very lazy and like 1 letter tags. __ css-discuss [cs...@lists.css-discuss.org] 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/ __ css-discuss [cs...@lists.css-discuss.org] 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/ -- -Jonathan Finnegan http://haveboard.com/ http://twitter.com/haveboard/ http://jonathanfinnegan.com/ ***Disclaimer This message and any attachments may contain confidential information and are only for the use of the intended recipient of this message. If you are not the intended recipient, please notify the sender by return mail, and delete or destroy this and all copies of this message and all attachments. Any unauthorized disclosure, use, distribution, or reproduction of this message or any attachments is prohibited and may be unlawful. __ css-discuss [cs...@lists.css-discuss.org] 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] bemstrongi tags
haveboard.com wrote: i and b are deprecated tags. i and b are *not* deprecated. And they are also alive and well in html5. Best, ~ -- desktop http://chelseacreekstudio.com/ mobile http://chelseacreekstudio.mobi/ __ css-discuss [cs...@lists.css-discuss.org] 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] css-sound joomla templates?
Can anyone recommend some sound css-layoutoriented Joomla templates out there? I'd rather buy something sound than learn Joomla template editing. Being a Java guy myself I'd rather spend my time doing that, but it seems I might have to do this one. Naturally I want to be able to swiftly edit the layout via CSS. /MB I'm currently using one based on a template from http://www.joomlart.com called ja_rochea. I moved around, eliminated, and added divs, and redid most of the css, so it's not much like the original. But at least it wasn't based on tables, if that's what you mean. Nancy __ css-discuss [cs...@lists.css-discuss.org] 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] bemstrongi tags
When I use the em the idea is that I would never want to just change some of their appearance. I would want all of them to appear different in the same manner unless maybe they were inside something else that conflicted with that style. So my CSS just looks like Em{ some-property: something; } Or .some class em{ some-property: something; } On 3/5/10 3:51 PM, Mark Wonsil won...@4m-ent.com wrote: Skip after Sarah: I do consistently use em for emphasis and reserve i for foreign language words. And cite for book titles. But since this is a CSS list, all I'll say is that CSS offers little here unless you decide you prefer to boldface book titles or something like that. This really is about markup not appearance. But if you ever wanted to change the appearance of all foreign words, you're now on a search-and-replace mission where if you mark it up to begin with, you can change it in one line. Even if you have two versions of em, you can add a class to make them the same or different. em vs. em class=veryImportant FWIW, Mark W. __ css-discuss [cs...@lists.css-discuss.org] 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/ __ css-discuss [cs...@lists.css-discuss.org] 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] How to set equal widths on an unknown number of items?
John Beales wrote: I have an interesting CSS challenge. I am making a set of tabs that will go across the top of a web page, but they're going to be used in a CMS so I don't know how many tabs there will be. I would like to have all of the tabs be of equal width, and fill their container. If I knew how many tabs to expect I could set widths as percentages, but since I don't know how many tabs to expect I can't really do that. So is there a pure-CSS way, (as opposed to having the CMS calculate widths and set them inline), that we all know of to get this done? John I don't think so. CSS controls look and feel. I think you'll need a scripting language to control behavior. Best, ~d -- desktop http://chelseacreekstudio.com/ mobile http://chelseacreekstudio.mobi/ __ css-discuss [cs...@lists.css-discuss.org] 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] css-sound joomla templates?
Templates from Joomlashack (among others) are css-based and standards compliant. Something to be aware of is that some of the joomla core output is table-based so check out this in the documentation: http://docs.joomla.org/How_to_override_the_output_from_the_Joomla!_core. Beyond that I think would be off-topic for this list. HTH Bill On Fri, Mar 5, 2010 at 1:06 PM, na...@thesmudge.com wrote: Can anyone recommend some sound css-layoutoriented Joomla templates out there? I'd rather buy something sound than learn Joomla template editing. Being a Java guy myself I'd rather spend my time doing that, but it seems I might have to do this one. Naturally I want to be able to swiftly edit the layout via CSS. /MB I'm currently using one based on a template from http://www.joomlart.com called ja_rochea. I moved around, eliminated, and added divs, and redid most of the css, so it's not much like the original. But at least it wasn't based on tables, if that's what you mean. Nancy __ css-discuss [cs...@lists.css-discuss.org] 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/ __ css-discuss [cs...@lists.css-discuss.org] 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] Combining :only-of-type with :before?
On Mar 6, 2010, at 12:04 AM, Sjur Moshagen wrote: The other thing i missed was the need to use double colons, like ::before - I tried only ':before'. What's the reason? When used directly with an element only a single colon (like :before) is needed. CSS2.1 vs CSS3 notation as Tim pointed out. Functionally there is no difference (my test case works equally well with either one of them). Note that IE 8 only supports css2.1 notation. http://www.w3.org/TR/css3-selectors/#pseudo-elements Note also this sentence: [quote] Only one pseudo-element may appear per selector, and if present it **must appear after** the sequence of simple selectors that represents the subjects of the selector. [/quote] Philippe --- Philippe Wittenbergh http://l-c-n.com/ __ css-discuss [cs...@lists.css-discuss.org] 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] How to set equal widths on an unknown number of items?
On Mar 6, 2010, at 6:16 AM, John Beales wrote: So is there a pure-CSS way, (as opposed to having the CMS calculate widths and set them inline), that we all know of to get this done? Assuming you are using an unordered list, you can try display:table ul {display: table, table-layout:fixed;} li {display:table-cell;} (but forget about IE 7...) Philippe --- Philippe Wittenbergh http://l-c-n.com/ __ css-discuss [cs...@lists.css-discuss.org] 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] bemstrongi tags
Atkinson, Sarah wrote: I know these tags are considered to be Presentational in type and there for avoided in semantic markup but I still like to use them in a semantic way. To me it seems practical is some content is important or different from content around it it should have different markup around it regardless of how it looks. There are tags for acronyms and abbreviations, but what if something is just more important or different? Granted they are not perfect for every situation. b is presentational. It says, Make this bold. em and strong aren't presentational. They say emphasize/strongly emphasize this. They don't say HOW to emphasize/strongly emphasize it. They're just saying that this text is more important than surrounding text, so emphasize it. We shouldn't confuse browser designers' decisions (make emphasized text look the same as italic, and strongly emphasized text the same as bold) with non-semantic markup. -- David gn...@hawaii.rr.com authenticity, honesty, community __ css-discuss [cs...@lists.css-discuss.org] 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/