Skip to main content

Home/ Web Development, Design & Programming/ Group items matching "calculator" in title, tags, annotations or url

Group items matching
in title, tags, annotations or url

Sort By: Relevance | Date Filter: All | Bookmarks | Topics Simple Middle
Maxim Djuliy

20 stunning examples of CSS 3D transforms - 0 views

  •  
    Rounded corners, gradients and drop shadows are well known features of CSS3, but beyond these there lie CSS transitions, transforms and animations. In combination they create effects never before achievable. CSS 3D transforms are smooth, hardware accelerated and simple to implement, with browsers taking on what would be very difficult perspective calculations.
Soul Book

The Incredible Em & Elastic Layouts with CSS - 0 views

  • Elastic design uses em values for all elements. Ems are a relative size, written like this: 1em, 0.5em, 1.5em etc. Ems can be specified to three decimal places like so: 1.063em. “Relative” means: They are calculated based on the font size of the parent element. E.g. If a <div> has a computed font size of 16px then any element inside that layer —a child— inherits the same font size unless it is changed. If the child font size is changed to 0.75em then the computed size would be 0.75 × 16px = 12px. If the user increases (or decreases) text size in their browser, the whole interface stretches (or shrinks.)
  • All popular browsers have a default font size of 16px. Therefore, at the default browser setting, 1em = 16px.
  • The <body> inherits it unless styled otherwise using CSS. Therefore 1em = 16px, 0.5em = 8px, 10em = 160px and so on. We can now specify any element size we need to using ems!
  • ...9 more annotations...
  • However, (gasp) IE has a problem with ems. Resizing text from medium (default) to large in IE5/6 would lead to a huge increase in font size rather than the gradual one expected. So another selector is needed to get IE to behave: html{ font-size:100%; }
  • Let’s give our <body> some more style, and center everything in the viewport (this will be important later for our content wrapper.) Our initial CSS ends up like this: html{ font-size: 100%; } body{ font-size: 1em; font-family: georgia, serif; text-align: center; color: #444; background: #e6e6e6; padding: 0; margin: 0; }
  • 1 ÷ 16 × 740 = 46.25em (1 ÷ parent font-size × required pixel value = em value)
  • While we're here, we might as well add some typographic goodness by selecting a basic leading and adding some vertical rhythm, with everything expressed in ems.
  • Set a 12px font size with 18px line height and margin for paragraphs
  • Dividing the desired line height (18px) by the element font size (12px) gives us the em value for line height. In this example, the line height is 1 and a half times the font size: 1.5em. Add line height and margin properties to the CSS: p{ font-size: 0.750em; line-height: 1.5em; margin: 1.5em; } Now the browser will say to itself, “Oh, line height and margin is set to 1.5em, so that should be 1.5 times the font size. What’s the font size, again? 12px? OK, cool, make line height and margin 1.5 times that, so 18px.”
  • To retain our vertical rhythm we want to set an 18px line height and margin. Easy: If the font size is 18px then 18px in ems is 1em! Let’s add the properties to the CSS (and make the font weight light:) h1{ font-size: 1.125em; line-height: 1em; margin: 1em; font-weight: 300; }
  • Jon, good article and very useful chartm but your text sizing method has one major drawback. If elements with font-sizes set in em’s are nested, i.e with lists, these elements inherit the font size. Therefore each child element will be 0.75em (or 75%) of the previous one: See an example here. (Would have posted the code put it was coming out really ugly!) I would recommend against using that method and setting the global font size in the body tag i.e. 'font-size:75%' for 12px. Then only setting different font-sizes where necessary.
  • Thanks Will, interesting point, but that is solved with a simple font-size:1em on the first child. Retaining the default ensures that even images are sized correctly in ems. IE (surprise) will compute incorrectly against a parent length equivalent to 12px. My preference born out by some minor but painful computed size errors in complex layouts is not to adjust the body, and only set font size where necessary for specific elements.
  •  
    A nice and simple explanation of using EMs to make elastic layouts
nanoarchmlm

Get best advantages with us through mlm repurchase plan - 0 views

  •  
    Nanoarch software solutions is one of the best software service provider which used to built intuitive kinds of software in comparison tom others network marketing companies. We create tremendous software for the mlm repurchase plan which permits you to sell products directly to the consumers and get incentive and bonus from the network marketing companies.
Fadsan Technologies Private Limited

Responsible Use of Technology - 0 views

According to the best digital marketing company here, technology has become an important part of life. People while knowing the importance of having the privilege to use the technology at...

Software Development Company in Noida best software development company in noida Website Design and Development Company Best Digital Marketing Services Company best it product design company software company

started by Fadsan Technologies Private Limited on 04 May 21 no follow-up yet
olafyang

is it possible to accumulate databases during testing - 4 views

I'll try to help you, but still I advise you to contact https://8allocate.com/ they already work with big data. And so all calculations are carried out at the time of the absence of open orders (al...

Stuart Spindlow

If You Are Dedicated, Surely Will Get Affordable Seo Services - 3 views

  •  
    The following step is to do off-page SEO, where you impact calculates outside of your site to expand your web crawler rankings. This may incorporate connections from articles, press discharges, index postings and more.
bibahrayeq

Make your business visible to get targeted audience and beat the competition in marketing - 59 views

Does anyone have an idea How we can implement SEO for different ext of the same site? I have two different ext https://applicontech.com & https://applicontech.ae

web development website webdesign programming tools web design company

‹ Previous 21 - 33 of 33
Showing 20 items per page