Skip to main content

Posts

Showing posts with the label css

Food Colour Graph for Food Bloggers

In a side project I have been working on a WordPress website for a health and food blogger. There is a huge amount of food themes available for WordPress. Although this may seem like a big advantage, this large choice of themes also gives me stress. Another source of stress is me being picky about the choice of fonts and colours. Although I was given free reign, which I like, the responsibility to make the correct choices weighs heavily. Choosing colours How do you choose colours for a website? Often a client has a logo or house style, which makes the choice a little easier. Sometimes even there is no choice at all, but preconceived ideas and designs. Color circle by Ellywa at Dutch Wikipedia - downsized from 600 x 600 to 400 x 400 However, more often than not a client has not really given any serious thought to design elements. So, where to start when choosing colours? In this case I came up with the idea to work with colours linked to different food i...

Tutorial: write your own user style - pt. 2

Now that you had some time to brush up on your HTML and CSS skills and to install Stylus into your browser, it's time to go on to the serious - and fun! - stuff. This is part two of a series on how to start writing your own user style. The first part can be found here . How to start writing your own user style To know which elements of a page to change in order to apply your own style, you need to be able to examine the code of a page. These days, all modern browsers have developers tools built in, which can be used to determine which elements to change. You may ask yourself where you can find these tools and how to activate them. You may never have seen them before, but they are only two mouse clicks away: Point your mouse cursor to any element on this page. This can be the title, an image, the menu or anything else that the page is displaying, Now click your right mouse button. Every browser has its own menu here, but down towards the bottom of the menu there should be s...

Tutorial: write your own user style - pt. 1

Do not read beyond this line if you don't like puzzles and think you are not creative. You have been warned! And just to be on the safe side: you may hate me for writing this tutorial at first, but you will probably be happy I did if you make it to the end! Do not read beyond this line if you don't like puzzles and if (you think) you're not creative... Still here? Good, let's get on with it then... What is a user style? User styles let you change the way your browser displays web pages. Or better put: with user styles you can change the design of the elements of a web page. This is done by finding existing elements - selectors, IDs, classes - in the HTML code of a web page, defining your own properties and values for these elements in new CSS rules, and applying these rules to the page with an external style sheet using a browser extension like Stylus. With a user style you can enhance a page, accentuate certain parts of a page or even completely darken a pag...

Tutorial: how to display icons for external links using CSS only

In this tutorial you will learn a neat trick that allows you to display an icon after each external link with CSS only. Use case In this blog every external link is followed by an icon that indicates that it is an external link . In WordPress this is often accomplished by installing a plugin. In Blogger or other platforms admins don't get spoiled with plugins so much as in WordPress. While getting spoiled with plugins sounds nice, it has some distinct disadvantages: you tend to just search for an appropriate plugin and not consider other possibilities that may be better or faster, the more plugins you install, the more maintenance you will need to do (install security updates and check if the plugin is still maintained and does not conflict with other plugins), the more plugins you install, the slower your website will eventually get, you make your website or blog dependent on code that you have no control over other than disabling it. Don't get me wrong: plugins are a...

The Story of Ms. C and Mr. H

Mr. H and Ms. C are the heroes of this short tale. People the world over know their stories, whether they are aware of it or not. It’s a story of vision, hurt and perseverance. At the end of the tale everyone lives happily ever after. It started in Switzerland Mr. H (1991) and Ms. C (1994) were both born in Geneva, Switzerland. Their fathers knew each other well as they both worked at CERN, the European Organization for Nuclear Research. And so, the young H and C played together from an early age. H was a happy little fellow, exploring the world around him. He was greatly encouraged by his father to go out and about. As he grew up he started to travel and meet new people and challenges. He started to get interested in other cultures and languages. And since H was a handsome fellow, this resulted in quite a few romances. ...as a handsome fellow, Mr. H had quite a few romances... This made his father worry a little. He liked how his son was developing into a bright young man w...