Skip to main content

Home/ Web Development, Design & Programming/ Group items tagged coding

Rss Feed Group items tagged

Vernon Fowler

Web Designer Notebook » How to use Modernizr - 1 views

  • Modernizr doesn’t actually magically enable these properties for browsers that don’t support them. It just tells the page whether that feature is supported on the browser the visitor is using or not.
  • To install Modernizr, download the file from this page. Then, on your site’s head tag, add a link to the file. For example: ?1<script src="js/modernizr-1.0.min.js"></script> The second step is to include on your html tag a class of “no-js”: ?1<html class="no-js"> Why add this tag? Because that will be the default state of the page. If JavaScript (js) isn’t on, then Modernizr won’t work at all (and probably other features of your site won’t work either…), so it’s good that we have a fallback for that case. If JavaScript is indeed enabled, once that page is loaded on the browser, that class will be replaced dynamically and it may look something like this: ?1<html class="js canvas canvastext geolocation rgba hsla no-multiplebgs borderimage borderradius boxshadow opacity no-cssanimations csscolumns no-cssgradients no-cssreflections csstransforms no-csstransforms3d no-csstransitions  video audio cufon-active fontface cufon-ready">
  •  
    "There is a tool that came to make our lives as progressive web designers a bit easier: Modernizr. In this short tutorial, learn how to apply this handy script to maximum effect on your sites."
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
madi344

Tips to Choose a Low-code Platform for Your Business - 0 views

Tips to Choose a Low-code Platform for Your Business Many businesses and developers are increasingly turning to low-code/no-code platforms. Low-code platforms allow IT businesses and empl...

low code platform business management development platforms

started by madi344 on 04 Oct 21 no follow-up yet
John L

Hosting Discount Codes - leading source for great deals from the top Web hosts - 0 views

  •  
    Discount codes, coupon codes, or promotional codes are usually a set of letters and/or number that you are given a chance to enter into a form field while you are signing up for a hosting package. The special code will give you a special bonus while you are signing up - usually a price discount, but sometimes some other goodie such as a unique or dedicated IP for life (or rather for the duration of your account). This site has many codes that people can use to save even more money on already cheap, reliable, unlimited everything Web hosts.
Vernon Fowler

Don't Use The Placeholder Attribute - Smashing Magazine - 4 views

  • To recap, the placeholder attribute: Can’t be automatically translated; Is oftentimes used in place of a label, locking out assistive technology; Can hide important information when content is entered; Can be too light-colored to be legible; Has limited styling options; May look like pre-filled information and be skipped over.
  • Move the placeholder content above the input, but below the label:
  • Development Here’s how to translate our designed example to code:
  • ...4 more annotations...
  • aria-describedby ensures that the p content will be described last, after the label’s content and the kind of input it is associated with.
  • By using aria-describedby to programmatically associate the input with the p element, we are creating a priority of information for screen readers that has parity with what a person browsing without a screen reader would experience.
  • The floating label effect, a close cousin to this phenomenon, oftentimes utilizes the placeholder attribute in place of a label, as well.
  • Content hidden by an on-screen keyboard. 3rd party keyboards with larger heights may have a greater risk of blocking important content.
  •  
    Not only argues for not using the placeholder attribute but also describes an inclusive input hint and how to code it.
  •  
    Protonmail login
mikhail-miguel

AI Code Mentor - Unlock Your Coding Potential with Artificial Intelligence Code Mentor ... - 0 views

  •  
    AI Code Mentor: Unlock Your Coding Potential with Artificial Intelligence Code Mentor (code-mentor.ai).
Attu Gautam

QR Codes - How About Embedding them in Your Web Design? - 0 views

  •  
    QR codes have become a hullabaloo in the internet realm. Over the past few years, they have been readily adopted by online merchandisers. QR code also affectionately known as quick response code is a two dimensional barcode that often contains alphanumeric text and feature URLs that direct a user to relevant sites. It's becoming a rage even with some of the best web design companies around. QR codes have brought a creative storm in the online hallways. Everything needs to have a barcode these days. They are a definite marketing vehicle in the recent times.
Jochen Burkhard

20+ Tools for Quick and Clean Code Development | Web Design Ledger - 0 views

  •  
    Developing websites is much more than just a pretty face, and depending on what typed of features you'd like to implement on the site, there's a lot of coding that goes into it. Many times designers turn to a WYSIWYG tool, however tools of that sort are more limited to advanced code. Being able to code a site using a variety of tools lets you simplify the coding process while you take a big bite out of saving time.
Vernon Fowler

@font-face gotchas « Paul Irish - 1 views

  • There are a few reasons why smiley is a better solution: Webkit+Font Management software can mess up local references, like turning glyphs into A blocks.  (crbug.com/33173) On OS X, Font Management software may alter system settings to show a dialog when trying to access a local() font that's accessible outside of Library/Fonts. More detail on my bulletproof post. (crbug.com/29729) Font Explorer X is also known to mess up other stuff in Firefox: bugzil.la/531771 Although it's unlikely, you could reference a local() font which is completely different than what you think it is. (Typophile post on different fonts, same name) At the very least its a risk, and you're ceding control of the type to both the browser and host machine. This risk may not be worth the benefit of avoiding the font download. These are all pretty edge case issues, but it's worth considering. FontSquirrel has already made the smiley syntax the new default in the Generator, and you should use it going forward as well.
  • And.. regarding @font-face syntax I now recommend the bulletproof smiley variation over the original bulletproof syntax.
  • @font-face { font-family: 'Graublau Web'; src: url('GraublauWeb.eot'); src: local('?'), url('GraublauWeb.woff') format('woff'), url('GraublauWeb.ttf') format('truetype'); }
  • ...5 more annotations...
  • in Webkit (Chrome/Safari), applying font-weight:bold to faux-bold some @font-face'd text will not succeed. Same applies for font-style:italic.
  • text-transform doesn't play well with @font-face in current implementations.
  • @font-face doesnt play nice with css transitions.
  • If a @font-face declaration is within a media query @media screen { ..., it will fail in Firefox.
  • SVG Fonts - Currently SVG is the only way to get webfonts working on iPhone and iPad.
  •  
    "There are a few reasons why smiley is a better solution: Webkit+Font Management software can mess up local references, like turning glyphs into A blocks.  (crbug.com/33173) On OS X, Font Management software may alter system settings to show a dialog when trying to access a local() font that's accessible outside of Library/Fonts. More detail on my bulletproof post. (crbug.com/29729) Font Explorer X is also known to mess up other stuff in Firefox: bugzil.la/531771 Although it's unlikely, you could reference a local() font which is completely different than what you think it is. (Typophile post on different fonts, same name) At the very least its a risk, and you're ceding control of the type to both the browser and host machine. This risk may not be worth the benefit of avoiding the font download. These are all pretty edge case issues, but it's worth considering. FontSquirrel has already made the smiley syntax the new default in the Generator, and you should use it going forward as well. "
pr getxhtml

PSD To CSS Coding - A Great Way To Have Unique And Successful Websites - 0 views

  •  
    CSS is a basically a coding language that helps you demonstrate the presentation texture of a file written in mark up languages like HTML or XHTML. PSD to CSS coding is all about separating the document content with elements of document presentation like color, font, style and layout.
mikhail-miguel

JIT.codes - Converts text to code in many languages (jit.codes). - 0 views

  •  
    JIT.codes: Converts text to code in many languages (jit.codes).
htmlslicemate.com

Useful and Stylish Code Editors - 0 views

  •  
    A perfect code editor is the only thing a developer needs for joy. When it comes to code editors, developers mainly care about usability and functionality of the tool they're working with, but the era of plain, old, ugly code editors is gone.
  •  
    A perfect code editor is the only thing a developer needs for joy. When it comes to code editors, developers mainly care about usability and functionality of the tool they're working with, but the era of plain, old, ugly code editors is gone.
simplykreative

How to start coding? - 0 views

  •  
    With the rise of big internet coded applications like the Google brothers, Mark Zuckerberg coding seems to interest everybody. Learning how to code opens up a whole new world of opportunity were your imagination is the only limit.
archers

Fix Epson Error Code 0x97 - Fix it by Following Steps - 0 views

  •  
    Epson Error Code 0x97 is may be internal Software or Hardware issue which can arise Because of motherboard failure. Call +1-888-633-7151 To Fix Epson Error Code 0x97, Epson WF-4630 Error Code 0x97, etc. by Epson Printer Support Team. Epson printer tech support services available here any problem related epson printer error code to visit my site. and very affordable prize no you have time taken just few minute. here are well expert technician available on time 24/7 hours any quire than contact toll free number
mikhail-miguel

What does this code do? - Rapidly grasp new code with a VS Code extension (whatdoesthis... - 0 views

  •  
    What does this code do?: Rapidly grasp new code with a VS Code extension (whatdoesthiscodedo.com).
lowkode

Certified Low-Code Developers Outsourcing Company is Live Now - Hire from the Top 5% of... - 0 views

shared by lowkode on 18 Mar 22 - No Cached
  •  
    From here onwards, looking for the right low-code developer is never going to be a hassle for your organization, for we're going live! Low-Kode is a one-stop platform of low-code developers specializing in Mendix, OutSystems, PowerBI, PowerApps, Snowflake, and Power Automate. Hire top low-code developers to build faster apps with the best low-code experts outsourcing company. Visit www.low-kode.com for more details and to witness its launch!
Vernon Fowler

Font sizing with rem - Snook.ca - 0 views

  • The problem with em-based font sizing is that the font size compounds. A list within a list isn't 14px, it's 20px. Go another level deeper and it's 27px!
  • The rem unit is relative to the root—or the html—element. That means that we can define a single font size on the html element and define all rem units to be a percentage of that. html { font-size: 62.5%; } body { font-size: 1.4rem; } /* =14px */ h1 { font-size: 2.4rem; } /* =24px */
  • We can specify the fall-back using px, if you don't mind users of older versions of Internet Explorer still being unable to resize the text (well, there's still page zoom in IE7 and IE8). To do so, we specify the font-size using px units first and then define it again using rem units. html { font-size: 62.5%; } body { font-size: 14px; font-size: 1.4rem; } /* =14px */ h1 { font-size: 24px; font-size: 2.4rem; } /* =24px */
  • ...3 more annotations...
  • I'm defining a base font-size of 62.5% to have the convenience of sizing rems in a way that is similar to using px.
  • consistent and predictable sizing in all browsers, and resizable text in the current versions of all major browsers
  • The compounding nature of em-based font-sizing can be frustrating so what else can we do?
Quality Web Solutions

Incorporate User-Friendly Alternatives to CAPTCHA Code in Your Shopping Cart Solutions - 0 views

  •  
    Some designers prefer to incorporate CAPTCHA code in shopping cart solutions for preventing spam attacks. However, using complicated codes can affect conversion rate of the website. To stay on the safe side, opt for user-friendly alternatives to CAPCHA code.
Jochen Burkhard

Max Design - Web standards checklist - 0 views

  •  
    Web standards - more than just 'table-free sites' The term web standards can mean different things to different people. For some, it is 'table-free sites', for others it is 'using valid code'. However, web standards are much broader than that. A site built to web standards should adhere to standards (HTML, XHTML, XML, CSS, XSLT, DOM, MathML, SVG etc) and pursue best practices (valid code, accessible code, semantically correct code, user-friendly URLs etc). In other words, a site built to web standards should ideally be lean, clean, CSS-based, accessible, usable and search engine friendly.
emileybrown89

Exploit Kaspersky Support +1-855-676-2448 security solution - 0 views

  •  
    If you are activating Kaspersky lab product and encounter the Key Blocked error then this means that the code was blocked by Kaspersky Lab engineers due to its illegal use. In this case, you can activate the application with a new activation code. To get a new activation code, contact Kaspersky help and support number via +1-855-676-2448. Please provide the following information like purchase date and place, activation code or license key, license owner information once you get connected with our certified engineer.
1 - 20 of 788 Next › Last »
Showing 20 items per page