On Aug 3, 2014, at 10:44 PM, Karl DeSaulniers <k...@designdrumm.com> wrote:

> On Aug 4, 2014, at 12:39 AM, Christopher Schmitt <schm...@christopher.org> 
> wrote:
> 
>> 
>> On Aug 3, 2014, at 10:28 PM, Karl DeSaulniers <k...@designdrumm.com> wrote:
>> 
>>> Can you use "in" for inches in css or is that just jQuery that does that?
>> 
>> Yes, you can use “in” for inches CSS, but it’s probably not the best for 
>> digital design.
>> 
>> An inch for print is good since it’s easy and repeatable to measure an inch 
>> on paper.
>> 
>> For the different types of screens and resolutions out there—I don’t think 
>> you would get the same distance or rely on getting the same distance from 
>> smartphone to tablet to desktop, etc.
>> 
>> 
>> Best,
>> Christopher Schmitt
> 
> Thanks Christopher. That is what I figured. Wasn't sure of a real case 
> scenario that I would do inches except maybe an online proofing website or 
> something that dealt with print pieces.
> Was more curious because I saw this code on the jQuery animate page and 
> didn't know if this was a standard with css or something jQuery was providing 
> for their user base as a convenience per se. 
> 
> <script>
> // Using multiple unit types within one animation.
> 
> $( "#go" ).click(function() {
>  $( "#block" ).animate({
>    width: "70%",
>    opacity: 0.4,
>    marginLeft: "0.6in",  <———— saw this
>    fontSize: "3em",
>    borderWidth: "10px"
>  }, 1500 );
> });
> </script>

Definitely take that demo with a grain of salt. 

:) It’s trying to tell you it can move an element, but it’s not the best unit 
to use to do that. 

Hmm… Might be worthwhile to ping them to see if they can update the example 
with a different value.

C.
______________________________________________________________________
css-discuss [css-d@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/

Reply via email to