Re: [css-d] webkit text size adjust

2015-01-29 Thread Jukka K. Korpela
2015-01-29, 23:10, Tom Livingston wrote: Anyone know if this: -webkit-text-size-adjust: 100%; is obsolete or no longer works in latest ios? My page doesn't seem to be impacted one way or another, no matter what I set it to (auto, none or 100%). According to

Re: [css-d] Element style not allowed as child of element div in this context.

2015-01-19 Thread Jukka K. Korpela
2015-01-20, 2:55, John wrote: I got this error while running my contact page through the validator. The contact form works fine, but I don’t know what this error means. Validator cites line 230, yet the style.css is called on line 13! – – http://pastebin.com/B9zSx0ew

Re: [css-d] Background-Image overrides background color

2015-01-11 Thread Jukka K. Korpela
2015-01-11, 9:48, Karl DeSaulniers wrote: I would suggest a little trip to WC3. I wonder what that means. See here: http://www.w3schools.com/css/css_background.asp The w3schools site, unreliable and with rather low information/noise ratio, intentionally wants to be confused with the Word

Re: [css-d] Background-Image overrides background color

2015-01-10 Thread Jukka K. Korpela
2015-01-11, 6:59, Crest Christopher wrote: The background image should sit on-top of the background color, Yes, if both are specified. instead the background color is overriding my background image ? background-color:#343630;/*#b7b7b7;*/ background:url(/wdp/wip/overlay_bg.png);

Re: [css-d] Odd rule bug or am I just doing something wrong?

2015-01-02 Thread Jukka K. Korpela
2015-01-02, 18:56, Tom Livingston wrote: [...] body class=foo div class=main div class=constrained/div div class=twodiv class=constrained/div/div div class=twodiv class=constrained/div/div div class=twodiv class=constrained/div/div div class=constrained/div /div /body and these styles: .foo

Re: [css-d] Changing Visibility on Just One Element

2014-12-18 Thread Jukka K. Korpela
2014-12-18, 16:26, Gates, Jeff wrote: Yucca, question: when you used the Firefox Web Developer Extension, did you notice if every legend disappeared or just the very first one (Your Shopping Cart)? There is no other legend element on the page. Second, I am not allowed access to either the

Re: [css-d] NOT centering text in the center!

2014-12-17 Thread Jukka K. Korpela
2014-12-17, 15:00, FARAMINEUX wrote: My goal is to write a haiku or a poem in the center on the page, but I do not want the text to be centered but align left in the center of the page. How can I achieve that? Do I have to use a centered column? The simplest approach is to put your poetry in

Re: [css-d] NOT centering text in the center!

2014-12-17 Thread Jukka K. Korpela
2014-12-17, 15:53, Barney Carroll wrote: You can use display inline-block, left 50% (relative to offset parent) and transform translateX( -50% ) (relative to self) to achieve this effect with variable width: http://jsbin.com/ruwada/1/edit?css,output Nice. Here’s a different idea, with even

Re: [css-d] Changing Visibility on Just One Element

2014-12-17 Thread Jukka K. Korpela
2014-12-17, 22:24, Gates, Jeff wrote: I only want to hide one headline. Here is the code for that headline: fieldset id=cart-contents legend accesskey=yYour Shopping Cart/legend /fieldset If that is the entire element, you can hide it with #cart-contents { visibility: hidden; } If it

Re: [css-d] Changing Visibility on Just One Element

2014-12-17 Thread Jukka K. Korpela
2014-12-17, 23:34, Gates, Jeff wrote: I’ve already tried #cart-contents legend { visibility: hidden; } and it didn’t work. Actually, that was the first thing I tried. Where did you put that rule? Does *anything* work where you placed it? To see the entire code go to

Re: [css-d] Numbered lists with unique numbers per line

2014-11-28 Thread Jukka K. Korpela
2014-11-28 18:23, Ken Robinson wrote: This is not a CSS related question -- it's just HTML There is a CSS related issue here, too. pAn ordered list:/p ol li value=92Coffee/li li value=91Tea/li li value=84Milk/li /ol Will do what you want (but without leading zeros). The CSS

Re: [css-d] What is a properly tag for button

2014-10-30 Thread Jukka K. Korpela
2014-10-30 8:53, Артур Истомин wrote: I am writing POS (point of sale) software. There are two buttons: Check out and Cancel. What is the properly tag for them: button or a? Most of the tutorials use a and very rarely button. So what I should to choose? This is off-topic for this list, which

Re: [css-d] Why there is a space between two div

2014-10-13 Thread Jukka K. Korpela
2014-10-13 20:49, Артур Истомин wrote: I don't understand, why there is a space between two div? There is no margin, no padding (besides body's 8px paddings). Why and how to get rid of them? http://jsfiddle.net/s8jyxsdr/2/ You have two div elements set to have display: inline-block. An

Re: [css-d] rem units and %

2014-09-18 Thread Jukka K. Korpela
2014-09-18 1:44, Felix Miata wrote: One of the rem unit's important features, if not its most important, is that size cascade is ignored. Indeed the very point of the rem unit is to set the size of something using Cascading Style Sheets so that the cascade is avoided. Opinions disagree on

Re: [css-d] rem units and %

2014-09-16 Thread Jukka K. Korpela
2014-09-17 0:11, John wrote: If rem units are for font size and margins and padding get % values, does it get fairly hairy knowing what % you need for your margin/padding? Yes. Or, rather, impossible. You would need to make a guess and go wrong often. I guess through the use of descendent

Re: [css-d] CSS inch?

2014-08-04 Thread Jukka K. Korpela
2014-08-04 8:28, Karl DeSaulniers wrote: Can you use in for inches in css or is that just jQuery that does that? Yes, in has been a unit defined in CSS from the very beginning. Current spec: http://www.w3.org/TR/CSS2/syndata.html#length-units 1in equals 2.54cm (exactly). This corresponds

Re: [css-d] Section Lacks Heading ?

2014-07-30 Thread Jukka K. Korpela
2014-07-31 3:59, Crest Christopher wrote: The W3C Validator is handing me this error; It is a warning, not an error message. But HTML validation in general is off-topic for this list, which is about practical use of CSS. For issues related to the W3C Markup Validation Service, consider

Re: [css-d] why are ems rendering large?

2014-07-25 Thread Jukka K. Korpela
2014-07-25 9:06, John wrote: Is there a way to tell the browser…*any* browser: 1em = 16px and that’s that? No. Or is body { font-size:100%; } —with the underlying hope and assumption that 100% is understood to mean 16px and from there the leap that 1em equals the 16pixels — all

Re: [css-d] why are ems rendering large?

2014-07-24 Thread Jukka K. Korpela
2014-07-25 6:50, Felix Miata wrote: OTOH, the em unit at the document root, where it's equal to 1rem, is also equal to the user's definition of optimal text size, as reflected by the browser's default size setting. The downside of the rem is lack of support in some old browsers. We need to

Re: [css-d] Placeholder fontsize in FireFox !

2014-07-16 Thread Jukka K. Korpela
2014-07-17 6:58, Crest Christopher wrote: Your example; didn't show a difference, the font-size in FireFox continues to be larger. Christopher ! Jukka K. Korpela wrote: I have a vendor prefix for a placeholder for both Chrome and FireFox, the same values for both, except FireFox displays

Re: [css-d] Placeholder fontsize in FireFox !

2014-07-16 Thread Jukka K. Korpela
2014-07-17 7:51, Philippe Wittenbergh wrote: Le 17 juil. 2014 à 13:35, Crest Christopher crestchristop...@gmail.com a écrit : I'll provide the site; scroll to the bottom. Compare in Chrome and FireFox. [Link

Re: [css-d] Placeholder fontsize in FireFox !

2014-07-14 Thread Jukka K. Korpela
2014-07-15 5:21, Crest Christopher wrote: I have a vendor prefix for a placeholder for both Chrome and FireFox, the same values for both, except FireFox displays a font-size of 3em larger then Chrome ? Please share your HTML and CSS code. I tested with just ::-webkit-input-placeholder {

Re: [css-d] W3C errors. in application....

2014-07-09 Thread Jukka K. Korpela
2014-07-09 15:32, Nancy Johnson wrote: I do application development and the W3C throws an error: These issues have nothing to do with CSS, so they are off-topic in this list. I'll send you privately an explanation of them. Generally, in problems with HTML validation, check

Re: [css-d] P tag can't be child of label ?

2014-07-09 Thread Jukka K. Korpela
2014-07-09 20:58, Crest Christopher wrote: I've had to restyle my form and it has caused the validator to inform me I'm not allowed to use p as a child element of a label tag ? The information is correct, see e.g. http://www.w3.org/TR/REC-html40/interact/forms.html#edef-LABEL

Re: [css-d] P tag can't be child of label ?

2014-07-09 Thread Jukka K. Korpela
2014-07-09 21:30, Crest Christopher wrote: * What you should depends on the context and purpose, like what you are using label for, why it should contain a paragraph, and how do you wish to style things. I didn't understand your last paragraph ? Well I meant to write What you

Re: [css-d] font-variant:small-caps;

2014-06-21 Thread Jukka K. Korpela
2014-06-21 7:38, Robert A. Rosenberg wrote: At 14:01 -0500 on 06/16/2014, Richard Wendrock Forum wrote about Re: [css-d] font-variant:small-caps;: I used David's suggestion to solve the problem. Assuming Arial does not have small-caps variants, I switched to font-family: Verdana, Geneva,

Re: [css-d] font-variant:small-caps;

2014-06-16 Thread Jukka K. Korpela
2014-06-16 22:01, Richard Wendrock Forum wrote: I used David's suggestion to solve the problem. I don't think he made any suggestion. He wrote Not using Arial. Assuming Arial does not have small-caps variants, There is no reason to assume such things; it is a fact that can be checked. I

Re: [css-d] font-variant:small-caps;

2014-06-13 Thread Jukka K. Korpela
2014-06-13 17:14, Philippe Wittenbergh wrote: Le 13 juin 2014 à 13:57, Jukka K. Korpela jkorp...@cs.tut.fi a écrit : t does that (well, browsers do that) even if the font contains small-caps glyphs. This can be seen e.g. by testing the following on IE 11 (in a system that has the Calibri

Re: [css-d] font-variant:small-caps;

2014-06-12 Thread Jukka K. Korpela
2014-06-13 2:31, Philippe Wittenbergh wrote: Le 13 juin 2014 à 06:42, Richard Wendrock Forum fo...@thehomepagestore.com a écrit : It appears there is an optical illusion when using font-variant:small-caps; The first letter of each word appears more bold than the other letters in the word.

Re: [css-d] Is the em dash really one em?

2014-04-19 Thread Jukka K. Korpela
2014-04-19 18:03, Freelance Traveller wrote: If I set a width on an element - or a max-width or min-width - in ems, is it correct to assume that the actual size will be based on the font size OF THE PARENT ELEMENT? No, by definition, the em unit equals the font size of the element itself,

Re: [css-d] Google font use

2014-03-27 Thread Jukka K. Korpela
2014-03-27 18:34, Tom Livingston wrote: I was doing this simple test with google fonts (via @import method). body{ font-family: $roboto; } .bold{ font-weight: 500; } I suppose you are using some special tools that convert that $roboto to a real name. But how do you refer to the

Re: [css-d] Will the unsemantic HTML elements B and I be soon phased out?

2014-02-17 Thread Jukka K. Korpela
2014-02-17 19:35, Richard Grevers wrote: It must be remembered that the presentation layer is optional, and CSS isn't always available. It might be due to a server error or timeout (i experience that on maybe 1% of page loads), or, as HTML rendering capability extends to ever-smaller devices, a

Re: [css-d] font-weight rules?

2014-02-16 Thread Jukka K. Korpela
2014-02-16 21:25, John Johnson wrote: Something I recall in a post here makes me think that for some fonts, a font-weight of 800 is ineffectual, as that font doesn’t “recognize” that weight, while other fonts do. For most fonts, font-weight: 800 has the same effect as font-weight: bold or,

Re: [css-d] Make all link border-bottom of equal length?

2014-01-31 Thread Jukka K. Korpela
2014-01-31 16:42, John Johnson wrote: in a ul/li set of links/nav, is it possible to make all of the border-bottoms of equal length, regardless of how long the linked word(s) are? [...] So, the border-bottom would have to be as long as the longest thing, so all would need to be that long.

Re: [css-d] Make all link border-bottom of equal length?

2014-01-31 Thread Jukka K. Korpela
2014-01-31 20:07, Tom Livingston wrote: [...] ul a{ display: block; /* - Add this */ [...] Ha ha. As always, I can't see the forest for the trees. Such a simple solution David... :-/ But to a problem different from the one asked, which was about setting the width of underlines to

Re: [css-d] Make all link border-bottom of equal length?

2014-01-31 Thread Jukka K. Korpela
2014-01-31 22:53, Tom Livingston wrote: [...] won't the longest link push out the width of the lis? In which case setting display: block; on the as will cause them to always be as wise as the widest one? And this will result in what the OP wanted, no? No, the li elements too have width: auto

Re: [css-d] Make all link border-bottom of equal length?

2014-01-31 Thread Jukka K. Korpela
2014-01-31 22:58, Rod Castello wrote: It seems like this Jukka's solution actually puts the underline across 100% of the display area which can carry it past the end of the longest line. Pardon? That was not my solution but a solution that I commented on (as being a solution to a different

Re: [css-d] How to align one word left and another word right in a select list without giving each its own class, div or style (and without using a monospace font)

2014-01-19 Thread Jukka K. Korpela
2014-01-19 22:47, Philip Taylor wrote: Larry Martell wrote : In my example, in the first option, I would need 12S left justified and by_target right justified. Ah, more complex, and somewhat harder (perhaps impossible); in the absence of any distinguishing markup around 12S and by_target,

Re: [css-d] HTML5 CSS3 Table border question

2013-10-15 Thread Jukka K. Korpela
2013-10-15 17:31, Tedd Sperling wrote: On Oct 15, 2013, at 10:06 AM, The Doctor doc...@doctor.nl2k.ab.ca wrote: Question 1 in css how d oyou tell the table to have a visible border? Google is your friend. The question is elementary, but a good one, and Google can mislead as well as point

Re: [css-d] Bad web font display in Chrome and Opera?

2013-09-19 Thread Jukka K. Korpela
2013-09-19 23:06, Markus Ernst wrote: In my new website http://www.markusernst.ch I use web fonts. Now I found that the appearance of these fonts is good in Firefox and IE, but quite poor in Chrome and Opera (on Windows 7). The copy text font looks basically similar in Chrome and Firefox on

Re: [css-d] JavaScript fallback for CSS grid layout module?

2013-08-28 Thread Jukka K. Korpela
2013-08-28 21:10, Chris Rockwell wrote: has anyone come across a JavaScript fallback (Poly?) that will suffice until browser adoption is better? The only polyfill for the Grid Layout Module mentioned at https://github.com/Modernizr/Modernizr/wiki/HTML5-Cross-Browser-Polyfills is

Re: [css-d] Selectivizr

2013-08-27 Thread Jukka K. Korpela
2013-08-26 22:18, Tom Livingston wrote: Anyone (still) use this? Is there something better? http://selectivizr.com/ I use it regularly as nth-of type and first/last-of-type is so handy and I have to support back to IE7 usually. Since Selectivzr handles such things nicely (and I think it

Re: [css-d] what should go in html{ } ?

2013-06-28 Thread Jukka K. Korpela
2013-06-28 19:34, Eric A. Meyer wrote: In CSS terms, the user agent applies a style of 'a:link {color: blue;}'. (Where 'blue' really means $USER_PREFERENCE but CSS doesn't have variables. Yet. We'll stick with blue since that's the most common $USER_PREFERENCE.) Modern browsers apply

Re: [css-d] what should go in html{ } ?

2013-06-27 Thread Jukka K. Korpela
2013-06-27 9:15, Philippe Wittenbergh wrote: Technically, if you wish to have such settings as a global default for your pages, setting them on body rather than html is the way to go. Again, Why? Because it sets the properties directly on the highest-level element where they might have

Re: [css-d] what should go in html{ } ?

2013-06-27 Thread Jukka K. Korpela
2013-06-27 9:52, Philippe Wittenbergh wrote: HTML is the highest level where (some) properties will have an effect that matter for inheritance. The html element is the root element, so it cannot inherit anything. Its properties may be inherited by its children. Consider this snippet:

Re: [css-d] what should go in html{ } ?

2013-06-27 Thread Jukka K. Korpela
2013-06-27 16:01, Tom Livingston wrote: Whenever you use the em unit or the % unit on font-size, you need to take into consideration that it is relative to the parent font size. This has nothing to do with inheritance. Here you *prevent* body from inheriting font size from its parent, html.

Re: [css-d] what should go in html{ } ?

2013-06-27 Thread Jukka K. Korpela
2013-06-27 21:02, John A. Johnson wrote: On Jun 27, 2013, at 10:54 AM, Philip Taylor p.tay...@rhul.ac.uk wrote: As the browser is not an element in the document tree, the html element cannot inherit any properties from it. It may well acquire them in some other way, but this is not

Re: [css-d] what should go in html{ } ?

2013-06-26 Thread Jukka K. Korpela
2013-06-27 0:29, COM wrote: my css all begin like what's pasted below. A somewhat odd piece of a stylesheet, but let's fovus on this pary: I have no idea what things ought to be inside the html selector. The html element consists of the head element and the body element, and head

Re: [css-d] can last child be spec'd?

2013-06-20 Thread Jukka K. Korpela
On 21.6.2013 2:05, Angela French wrote: Let's say you have N-number of paragraphs in an article, and you want the last paragraph to have some different attributes as the otherp, such as a greater margin-bottom. Is there a way to describe that in css? Thank you! John You mean like this:

Re: [css-d] display:table-cell;

2013-06-17 Thread Jukka K. Korpela
2013-06-17 19:25, Tom Livingston wrote: Given this structure: div class=sidebar a href= class=grey-button icon-infoInfographics/a a href= class=grey-button icon-calcTax Credit Calculator/a a href= class=grey-button icon-faqFrequently Asked Questions/a /div It's not really much of a

Re: [css-d] unfamiliar url reference

2013-06-07 Thread Jukka K. Korpela
2013-06-07 11:13, Philippe Wittenbergh wrote: The '#' is a perfectly valid url so any decent browser will recognise the rule block. That exactly is the problem with it. It passes CSS validation, but it will not work. Something like this: .a { background: url(#) 20px 20px no-repeat; }

Re: [css-d] unfamiliar url reference

2013-06-07 Thread Jukka K. Korpela
2013-06-07 11:49, Philippe Wittenbergh wrote: Hmm, you're missing something: in both your examples the whole rule block will be ignored (being invalid, e.a. Whereas in my example, the other parameters (position/size/color/repeat/...) are applied and remembered. The examples referred to

Re: [css-d] Flex Box Code

2013-05-11 Thread Jukka K. Korpela
2013-05-11 13:18, Dez Glidden wrote: Have a look at caniuse.com. Support is currently low between browsers and those that do support it, mainly require a browser prefix. What's even worse, there does not seem to be any polyfill that implements the current Flexible Box module. There's

Re: [css-d] font-sizing bug in generated content in IE 10 ?

2013-04-25 Thread Jukka K. Korpela
2013-04-25 18:17, Gabriele Romanato wrote: You wrote: font-size: 0.5rem. Is it a typo? I’m pretty sure Philip intentionally tested both with em and with rem. The bug manifests itself when em is used, not when rem is used, suggesting that IE 10 indeed calculates em wrong, when there is a

Re: [css-d] font-size in body selector?

2013-04-18 Thread Jukka K. Korpela
2013-04-19 0:54, COM wrote: My understanding of font-size spec is: 100% = 1 em = the size of an M and that this is 16px high. No, in the value of the font-size property, the em unit denotes the font size of the parent element. The font size is the height of the font. It is easy to see that

Re: [css-d] ul bullets: change color?

2013-04-14 Thread Jukka K. Korpela
2013-04-15 2:41, Philippe Wittenbergh wrote: The suggestion by Tom Livingstone to wrap the contents of the li in a span is one option, but not necessarily easy, depending on how the content is generated (CMS ?). It's somewhat clumsy, and sometimes the added markup might cause problems with

Re: [css-d] trying to remove outline off of image map areas

2013-04-01 Thread Jukka K. Korpela
2013-04-01 21:27, Angela French wrote: I can't get area hidefocus=true .. to work and it certainly won't validate. Is there a way to style the outline property applied to the area tag? I thought maybe I could make it very light gray dotted, but that didn't have any effect in any browser.

Re: [css-d] trying to remove outline off of image map areas

2013-03-30 Thread Jukka K. Korpela
On 30.3.2013 1:40, Angela French wrote: Shouldn't the following work to remove the focus outline from an image map's areas? It does not work in IE. It works in other browsers. map area:focus, map area:active {outline:none; border:0; It should work, but IE has its oddities. It has for

Re: [css-d] vertical-align

2013-03-16 Thread Jukka K. Korpela
2013-03-16 16:29, Larry Martell wrote: I have 2 buttons I want to be aligned. When I use vertical-align it moves the text within the button, not the button itself. How can I get the 2 buttons to be aligned? See http://jsfiddle.net/YkHsL/ You have an input type=file element with float: left

Re: [css-d] prevent widows/orphans in columns

2013-02-28 Thread Jukka K. Korpela
2013-02-28 18:26, Chip at Caliber Communications wrote: http://shootata2-com.cccg-inc.com/AboutUs/ATABylaws,Rulebook,Forms.aspx I would like to use a 2-column layout in this dl, but need the individual dt/dd groups to wrap as a unit (all or nothing). I am using some column classes, but is

Re: [css-d] prevent widows/orphans in columns

2013-02-28 Thread Jukka K. Korpela
2013-03-01 1:43, Rick Gordon wrote: I believe that adding -webkit-column-break-after: avoid; -webkit-column-break-before: avoid; -webkit-column-break-inside: avoid; ... will cover for Webkit browsers. Ah, I forgot those nonstandard properties. It's difficult to find

Re: [css-d] trouble getting email icon to display with attribute selector

2013-02-27 Thread Jukka K. Korpela
2013-02-28 3:49, Jon Reece wrote: On Wed, Feb 27, 2013 at 7:17 PM, Angela French afre...@sbctc.edu wrote: Am I correct that this selector does NOT work in IE 7 ? IE9 in compatibility mode isn't displaying the icon. No, attribute selectors are supported in IE7 (CSS 2.1) -

Re: [css-d] what is h1 small syntax?

2013-02-22 Thread Jukka K. Korpela
2013-02-22 21:55, Angela French wrote: Could someone please explain the small in the example below: h1 small { font-size: 24.5px; } I would understand h1.small, but am confused by the syntax h1 small The selector h1 small matches any small element nested inside an h1 element. A

Re: [css-d] what is h1 small syntax?

2013-02-22 Thread Jukka K. Korpela
2013-02-22 22:44, Angela French wrote: What puzzles me more is 24.5px. Apart from the issue whether it is a good ideas to size fonts in pixels, the question arises why one would use fractions of a pixel, in 24.5px, which might get rounded to 24px or 25px (or dealt with in some other way).

Re: [css-d] The 'all' propert

2013-01-14 Thread Jukka K. Korpela
2013-01-14 22:00, Tom Livingston wrote: Anyone have more info on this: http://www.w3.org/TR/2013/WD-css3-cascade-20130103/#all specifically the bit in Example 4 where it mentions setting 'all:default' on an element. This looks interesting but I can't find anything more about it. It's an

Re: [css-d] The 'all' propert

2013-01-14 Thread Jukka K. Korpela
2013-01-14 22:44, Tom Livingston wrote: Any idea how this would be used? For example, the widget example mentioned on that page: .widget{ all: default; color: blue; font-weight: bold; } So, over riding any inheritance, then setting the isolated styles for this widget? That

Re: [css-d] REM units

2013-01-14 Thread Jukka K. Korpela
2013-01-14 23:18, Tom Livingston wrote: I've been looking into rem units and noticed that the only fallback i've seen written about is px. Can you not fallback to em? The fallback is generally going to be for IE 9, and they can't resize things set in px, if need be, so will em work instead?

Re: [css-d] no space between p tags

2012-12-20 Thread Jukka K. Korpela
2012-12-20 22:09, Brian M. Curran wrote: Sorry, I don't have a link to share. I'm working off my desktop. This makes things rather difficult to analyze. I've written paragraphs using p/p tags. However, there is no space between the sets of p tags. Anyone know what would cause the space

Re: [css-d] Media Query Not Working

2012-12-19 Thread Jukka K. Korpela
2012-12-19 21:11, Gates, Jeff wrote: Firebug is showing that when it's resized it's still applying the regular style for the caption [...] @media only screen and (max-device-width: 480px) { The rule tests for device width, not viewport width. For the latter, you would use max-width.

Re: [css-d] image width in CSS?

2012-12-17 Thread Jukka K. Korpela
2012-12-17 9:54, Jan Erik Moström wrote: One thing I've always wanted to do is to get the image width so I can use it in my declaration but I've never found a CSS-only solution. It isn't quite clear what you mean here. There's no way to get anything in CSS in the sense of making some

Re: [css-d] Problem with margins

2012-11-01 Thread Jukka K. Korpela
2012-11-01 22:32, Mike Breiding - Morgantown WV wrote: I cannot get this declaration to work: p.date {margin-bottom:-10px; margin-top: 40px} It would in general be useful to specify what to work means, i.e. what is the expected effect and how the rendering differs from it. However, in this

Re: [css-d] way to style list item number?

2012-10-30 Thread Jukka K. Korpela
2012-10-30 18:36, Angela French wrote: Is there a way (excluding using images for bullets) to style the bullet when it is a number or a letter? Yes. The simplest solution is to wrap it inside a span element. Of course, you cannot do that if you use ol to generate the list, but as soon as we

Re: [css-d] CSS footnotes

2012-10-30 Thread Jukka K. Korpela
2012-10-30 20:08, Philip TAYLOR wrote: When an HTML link references an on-page fragment that is near the bottom of the page, the browser (when the link is followed) will display that page fragment as close to the top of the page as it can subject to the more important constraint that the last

Re: [css-d] CSS content attribute.

2012-10-22 Thread Jukka K. Korpela
2012-10-22 19:50, Philip TAYLOR wrote: SPAN class=Apparatus referentium style=content: 'Set: 1; parts: 2' I use it because (a) it is permitted (i.e., it is in accordance with the specification and therefore validates, yet has no effect on the rendered output in any conforming browser),

Re: [css-d] CSS content attribute.

2012-10-22 Thread Jukka K. Korpela
2012-10-22 20:31, Philip TAYLOR wrote: You are effectively using the 'style' attribute as a carrier for application-specific data, not for making presentational suggestions. [...] But no better option appeared to present itself; title was an option, but there was a distinct risk that a

Re: [css-d] CSS content attribute.

2012-10-22 Thread Jukka K. Korpela
2012-10-22 20:58, Philip TAYLOR wrote: What is somewhat odd is that when I use the validator to confirm that it is indeed valid, and then use the CSS link- through to validate the CSS, it (a) validates against the CSS 3 specification (why ?), They decided the default to CSS3 a while ago. Some

Re: [css-d] Change the color of list markers

2012-10-03 Thread Jukka K. Korpela
2012-10-03 20:14, Markus Ernst wrote: Trying to change the color of list markers, I came across the ::marker pseudo element. The CSS 2.0 specification (now virtually wiped off from the table and of historical value only) had a section on list markers, but it was never implemented and it was

Re: [css-d] Word wrap, white space and related - The Whole Email

2012-08-03 Thread Jukka K. Korpela
2012-08-03 21:38, Tom Livingston wrote: Corrected paragraph: Instead of repeated corrections, please post a URL demonstrating your best effort so far and a description of what you regard as undesirable. Yucca __

Re: [css-d] on html and css versions

2012-08-02 Thread Jukka K. Korpela
2012-08-02 12:31, Hakan Kirkan wrote: Using !DOCTYPE HTML breaks Canvas in IE8 If it does, that would not be a CSS issue, would it? Jukka __ css-discuss [css-d@lists.css-discuss.org]

Re: [css-d] on html and css versions

2012-08-02 Thread Jukka K. Korpela
2012-08-02 4:11, Philippe Wittenbergh wrote: Le 2 août 2012 à 06:03, Josh Rehman a écrit : And, actually the uppercase DOCTYPE is important as I've run into problems with the lowercase version in some browsers. That sounds weird. Can you clarify which browsers are affected ? By XML rules,

Re: [css-d] font-size: 62.5% revisited

2012-07-31 Thread Jukka K. Korpela
2012-07-31 3:32, Josh Rehman wrote: The screen resolution thing is a non-issue because the CSS px is defined to be an angular measure: The reality is different from the spec, as one can see from the discussion of the topic in the relevant CSS3 draft:

Re: [css-d] font-size: 62.5% revisited

2012-07-31 Thread Jukka K. Korpela
2012-07-31 20:43, Josh Rehman wrote: The reality is different from the spec, as one can see from the discussion of the topic in the relevant CSS3 draft: http://www.w3.org/TR/css3-values/#absolute-lengths The px unit may relate to the so-called reference pixel, or it may be anchored to a

Re: [css-d] font-size: 62.5% revisited

2012-07-31 Thread Jukka K. Korpela
2012-07-31 21:04, Josh Rehman wrote: Well, I honestly don't understand where you see an ambiguity. So, you're either using physical units like cm or mm or pixels, in which case you're using an angular measure. No, in situations where these dimensions (all so-called absolute length units,

Re: [css-d] on html and css versions

2012-07-31 Thread Jukka K. Korpela
2012-08-01 4:16, Georg wrote: On 01.08.2012 00:14, Tedd Sperling wrote: This works for me, my students, and W3C validation: --- !doctype html html lang=en-us head meta charset=utf-8 Since that only contains an HTML5 standards mode trigger (for better than v.5.5 CSS support in

Re: [css-d] collapsed border table issue

2012-07-31 Thread Jukka K. Korpela
2012-08-01 4:38, John wrote: Given this code: table, th, td{ border:1px dotted black; border-collapse:collapse; } I find that when I use colspan=x, some of the borders are solid as a result, perhaps because they're doubled up as cells are widened by colspan. 1px dotted

Re: [css-d] Font shorthand errors

2012-07-29 Thread Jukka K. Korpela
2012-07-29 17:34, Mike Manley wrote: The W3C CSS Validation Service gives me these errors. After reading the CSS3 standards for the font short hand I can not understand why I am getting the errors. 45 #content Value Error : font / is not a font-family value : 1em / 1.5em

Re: [css-d] Food menus and definitions

2012-07-27 Thread Jukka K. Korpela
2012-07-27 0:22, Jay Tanna wrote: I am trying to achieve, in CSS and HTML, a menu structure like the one pictured here: http://coffeeonmars.com/testing/menu.png [...] In certain situation you have to use Tables I would rather say that in many situations, a table element is the most

Re: [css-d] Removing text

2012-07-09 Thread Jukka K. Korpela
2012-07-10 1:20, Mark Weiss wrote: The code below is in our Moodle site. the h2Is this your first time here?/h2 somehow is placed on the page automatically. I need to know how to remove it using HTML. It is generally much better to find out and fix the reason of a problem than to hide its

Re: [css-d] Use of the i tag

2012-04-28 Thread Jukka K. Korpela
2012-04-28 20:38, David Laakso wrote: It may be that the page dropped the float because IE6 and lower have problems in computing/honoring the width of block elements that contain italic text. There are many potential formatting problems with text appearing in an italic font (or in a slanted

Re: [css-d] what does !important mean?

2012-04-19 Thread Jukka K. Korpela
2012-04-19 16:12, Paceaux wrote: one of the major reasons you see !important in these major corporate websites is Internet Explorer. Internet Explorer 7 will ignore !important, No, it does not. It has some bugs in its support, but it would be all wrong to say that IE 7 ignores !important.

Re: [css-d] Browser support for block links

2012-04-18 Thread Jukka K. Korpela
2012-04-18 20:39, Tom Livingston wrote: Does anyone know what the browser support is for block links? Google isn't helping - probably because of my choice in search criteria. For example: a href=img src=myimg.jpg alt= /pAll of this and that image is a single link/p/a Functionally, browser

Re: [css-d] css table or is there a different method to lay out this info?

2012-03-20 Thread Jukka K. Korpela
2012-03-20 7:51, Lisa Frost wrote: I need to lay out some information in two columns. So for example: caption1 A sentence or two here. caption 2 Next sentence here and it must line up. caption 3 Number 3 sentence here but if it wraps it needs to be

Re: [css-d] Finding fallback fonts (for Calibri)

2012-03-05 Thread Jukka K. Korpela
2012-03-05 13:08, Barney Carroll wrote: FWIW I recently discovered Open Sans, which has the same nice hinting, relative lightness, and pleasant rounded glyphs as Calibri — but you can embed everywhere with no legal repercussions: http://www.google.com/webfonts/specimen/Open+Sans Thanks, it

Re: [css-d] Finding fallback fonts (for Calibri)

2012-03-05 Thread Jukka K. Korpela
2012-03-06 5:22, Alan Gresley wrote: Some results that are close: aspect line-h span-h w Pristina 0.460 1.312 1.312 3277 KaiTi 0.461 1.142 1.001 3328 Calibri 0.464 1.222 1.222 3346 Candara 0.464 1.222 1.222 3558 Corbel 0.464 1.222 1.222 3581 Cambria 0.467 1.174 1.174 3611 Book Antiqua 0.467

Re: [css-d] linked current page help

2012-02-25 Thread Jukka K. Korpela
2012-02-26 0:54, Stuart King wrote: http://skingdesign.com/rc_site/pages/rec_lemony.html I cannot figure out how to make the current page underlined and with a darker color (#6B382B) so it stands out. Change the markup for it to contain a suitable inline container, e.g. instead of pimg

Re: [css-d] Rounded corners do not apply to child elements

2012-02-09 Thread Jukka K. Korpela
2012-02-09 11:54, Markus Ernst wrote: I encountered that rounded corners do not seem to apply to child elements: Right. Is this the expected behavior? I did not find anything on the behavior of child elements in the spec:

Re: [css-d] current page on #sidenav

2012-01-26 Thread Jukka K. Korpela
2012-01-27 7:55, Stuart King wrote: http://skingdesign.com/todd/pages/pairings.html now the current page on #sidenav needs to be red. I have tried to do this - not successful. Add #sidenav ul li a#current { color: red; } You have tried a simpler selector, just #current, but such a rule

Re: [css-d] Class working everywhere but IE

2012-01-25 Thread Jukka K. Korpela
2012-01-25 2:21, Russ Peters wrote: The problem is that when you go to our site: http://www.redcanoecu.com then try and login to Online Banking the tagline your dreams our passion image doesn't pad right 12em. It's ends up next to the logo. I can't explain that (IE generally honors

Re: [css-d] I Have a Really Big 'm'

2012-01-23 Thread Jukka K. Korpela
2012-01-24 8:23, Ghodmode wrote: So, how big is an ‘em’? I set up a small experiment to tell me just that. I don’t see the point of the blog entry or the experiment. http://www.ghodmode.com/blog/2012/01/i-have-a-really-big-m/ The text says ‘Letters aren’t all 1em wide.’ I find that

Re: [css-d] Nesting problem in html code

2012-01-04 Thread Jukka K. Korpela
2012-01-05 0:54, Christian Kirchhoff wrote: A friend of mine has a Wordpress blog: http://run-united.com He told me that after he changed something, there was a problem in the start page: The right column containing certain widgets was suddenly pushed down below the main column with the recent

  1   2   3   4   5   6   >