Website Ideas for Beginners

Category Image 076

The creative industry and web design capitalize on your unique and original ideas. As a professional web designer, that creativity is tapped on a weekly basis with a number of projects and to keep your business rolling (and clients happy) you need to be able to generate fresh, new ideas and concepts. Knowing what you...

The post Website Ideas for Beginners appeared first on DesignrFix.

A rising prevalence of the use of items that include cannabis

Featured Imgs 23
Blogs What exactly does it imply when someone claims marijuana? There are three primary types of marijuana strains: indica, sativa, and hybrid Doing research on several strains of cannabis How marijuana is smoked or eaten affects how high one gets from using it   The number of individuals who are becoming aware of the potential […]

Multi-Value CSS Properties With Optional Custom Property Values

Category Image 052

Imagine you have an element with a multi-value CSS property, such as transform: optional custom property values:

.el {
  transform: translate(100px) scale(1.5) skew(5deg);
}

Now imagine you don’t always want all the transform values to be applied, so some are optional. You might think of CSS optional custom property values:

.el {
  /*         |-- default ---| |-- optional --| */
  transform: translate(100px) var(--transform);
}

But surprisingly using optional custom property values like this does not work as intended. If the --transform variable is not defined the whole property will not be applied. I’ve got a little “trick” to fix this and it looks like this:

.el {
  transform: translate(100px) var(--transform, );
}

Notice the difference? There is a fallback defined in there that is set to an empty value: (, )

That’s the trick, and it’s very useful! Here’s what the specification has to say:

In an exception to the usual comma elision rules, which require commas to be omitted when they’re not separating values, a bare comma, with nothing following it, must be treated as valid in var(), indicating an empty fallback value.

This is somewhat spiritually related to the The CSS Custom Property Toggle Trick that takes advantage of a custom property having the value of an empty space.

Demo

Like I said, this is useful and works for any multi-value CSS property. The following demo shows it using text-shadow, background, and filter in addition to the transform example we just discussed.

See the Pen CSS var – Fallback To Nothing by Yair Even Or (@vsync) on CodePen.

Some properties that accept multiple values, like text-shadow, require special treatment because they only work with a comma delimiter. In those cases, when the CSS custom property is defined, you (as the code author) know it is only to be used in a situation where a value is already defined where the custom property is used. Then a comma should be inserted directly in the custom property before the first value, like this:

--text-shadow: ,0 0 5px black;

This, of course, inhibits the ability to use this variable in places where it’s the only value of some property. That can be solved, though, by creating “layers” of variables for abstraction purposes, i.e. the custom property is pointing to lower level custom properties.

Beware of Sass compiler

While exploring this trick, uncovered a bug in the Sass compiler that strips away the empty value (,) fallback, which goes against the spec. I’ve reported the bug and hope it will be fixed up soon.

As a temporary workaround, a fallback that causes no rendering can be used, such as:

transform: translate(100px) var(--transform, scale(1));

Multi-Value CSS Properties With Optional Custom Property Values originally published on CSS-Tricks. You should get the newsletter and become a supporter.

Wix Review: Is Wix the Right Website Builder for You?

Fotolia Subscription Monthly 4610864 Xl Stock
Since you’re here, it means that you are considering using Wix for building your next website. It also means that you’re still undecided and want to learn more about this website platform before making the final decision. We are here to shed some light on what you should expect when you choose Wix to be your tool. This is a comprehensive Wix review that will highlight all you need to know about this platform.

15+ WordPress Features You Didn’t Know About

Featured Imgs 26

WordPress Features You Didn't Know AboutWordPress is the most powerful content management system globally, used by millions of people every day to create outstanding websites on command. It’s a feature-packed, constantly-evolving platform that anyone can use to present ideas awesomely. However, many of those features are entirely unknown to most users despite their robust use cases. In this article, we’ll […]

The post 15+ WordPress Features You Didn’t Know About appeared first on WPExplorer.

10 Popular Augmented Reality APIs

Featured Imgs 23

Augmented Reality (AR) is technology that combines real world spaces or objects with virtual spaces or objects. The practice of interlaying virtual information over real world images has the potential to greatly enhance and improve lives, whether it be helping a consumer find better deals or helping a blind person navigate a building.

Mystifly Adds New API for Global Flight Data

Featured Imgs 23

Mystifly, a Singapore-based travel technology company, has announced a new API that is intended to expose global flight data for its enterprise customers. The new Mystifly Universe API takes advantage of the company’s broad network of carrier and itineraries options, helping to provide a low-cost, robust search tool. 

Rajeev Kumar, founder & CEO of Mystifly had this to say about the state of the industry and the value that is provided by this new API:

How can i Rank keywords?

Featured Imgs 11

Hi Team, Can you suggest me how to rank keywords on particular site. now i am doing seo for one website... i create lot of backlinks but till now i can't see any improvement why? suggest me guys