Designer Coding Tips Archives | Online Productivity Solutions Pvt. Ltd. Fri, 12 Apr 2019 14:20:10 +0000 en-US hourly 1 Flexbox https://opspl.com/blog/flexbox/ https://opspl.com/blog/flexbox/#respond Fri, 12 Apr 2019 13:50:09 +0000 https://opspl.com/?p=8089 Most of the developers make use of CSS float and clearfix property to get a proper multi-column design layout. Developers still use these properties as they work and have great browser support among a variety of browsers. Sometimes you can run into issues like adding unnecessary containers, having absolute positioned children in relative positioned parents...

The post Flexbox appeared first on Online Productivity Solutions Pvt. Ltd..

]]>
Most of the developers make use of CSS float and clearfix property to get a proper multi-column design layout. Developers still use these properties as they work and have great browser support among a variety of browsers. Sometimes you can run into issues like adding unnecessary containers, having absolute positioned children in relative positioned parents and using float in too many places. With Flexbox, developers can solve these design layout problems with a few lines of code.

Flexbox is a new design layout provided by CSS3 to offer more control to developers who want to build responsive layouts with relatively less code. It’s steady, simple to-utilize, and well-supported.

To start using the Flexbox model, you first need to define a flex container. The flex layout consists of a parent container referred to as the flex container and its next occurring children are called flex items. The flex container then become flexible by setting the display property to flex.

Example
.flex-container {
display: flex;
}

Bugs
Flexbox is not 100% error proof, it may contain some bugs and browser support issues. The best collections of them are is by Philip Walton and Greg Whitworth’s Flexbug. It’s an open source place to search for solutions to the issues that you are facing. This repository has a list of Flexbox issues and many cross-browser workarounds for them. The goal is that if you’re building a website using Flexbox and something isn’t working as you’d expect, you can find the solution here: https://github.com/philipwalton/flexbugs.

Conclusion
As a developer, I would prefer using Flexbox CSS where I can play with different flex properties and achieve complex design layout easily.

 

Reagan Fernandes

The post Flexbox appeared first on Online Productivity Solutions Pvt. Ltd..

]]>
https://opspl.com/blog/flexbox/feed/ 0
Web Design Mistakes to Avoid When Designing Your Website https://opspl.com/blog/web-design-mistakes-to-avoid/ https://opspl.com/blog/web-design-mistakes-to-avoid/#respond Fri, 12 Oct 2018 11:18:56 +0000 https://opspl.com/?p=7488 There are millions of websites on the internet today. It takes a web user milliseconds to form a first impression of your website. If your website has design issues that are not visually appealing or user-friendly, then they might decide to move on to your competitors’ website. Web design mistakes can be made by anyone,...

The post Web Design Mistakes to Avoid When Designing Your Website appeared first on Online Productivity Solutions Pvt. Ltd..

]]>
There are millions of websites on the internet today. It takes a web user milliseconds to form a first impression of your website. If your website has design issues that are not visually appealing or user-friendly, then they might decide to move on to your competitors’ website.

Web design mistakes can be made by anyone, from a fresher to the most experienced of web designers. Any web design mistakes that have been made while working on a web page have to be fixed immediately. Here is a list of some web design mistakes that web designers often make while designing websites.

1. Same font size, too many font-styles and colors.

There should be consistency in your web design, whether it is the overall design, font or color. The use of too many font-styles or colors may confuse users. Colors are used to highlight important content on the website such as buttons, links, headings, etc.

Limit the amount of colors used to maximum 3: the main brand color and 1 or 2 secondary colors. Use the main brand color for buttons, and secondary colors for headings, texts, etc.

This web design mistake can be avoided by using similar font-styles with different font-sizes to distinguish between the various headings, subheadings, and paragraphs.

2. Poor resolution images

Images are worth a thousand words. Images add visual attractiveness to your website. They are used to engage the users. Hence having a poor resolution image on your web-page gives the user a bad impression. It implies that you don’t care about the quality of your website.

Make use of good quality, high resolution, relevant images.

3. Broken links

Broken Links are links that send visitors to a web-page that doesn’t exist anymore. They generally occur when the URL link is improper or the linked page has been removed.

This can be fixed in two ways: by regularly checking your website to make sure all the links are working properly or by using an online tool which checks and reports broken links.

4. Missing title tags and alt tags

The “title” and “alt” tags are attributes of an “img” tag in HTML. The “alt” attribute describes the function of the image. The title attribute is shown as a tooltip while hovering over any element that has a title attribute value. It offers additional information about the image.

The “alt” attribute is either displayed when the image path is improper or if the images are partially loaded. It is also helpful for SEO purposes, as search engines can’t understand the images unless they read the “alt” attribute.

If an image doesn’t have a purpose and if it is only used as a design element, then give it an empty “alt” attribute.

5. Too many tricks

Having too many design tricks such as too many animations, shadows, images, colors or plugins can distract the user from the main objective of the website and can also increase the page load time.

Use either one or two design tricks. Keep the design consistent and unified. Don’t use irrelevant images and plugins. Only use them if they are necessary.

6. Poorly optimized pages

Web users expect a site to load within 3 seconds, if not then they tend to leave. Page load time generally increases due to large sized images, uncompressed files, too many plugins, etc.

To reduce page load time we need to use optimized images as well as minify HTML, CSS and JavaScript files. Use plugins that are required for the functionality of the website and not for design.

7. Non-responsive design

As the number of mobile users increase day by day, the need to have a responsive website design is also increasing. If the website is not responsive, then users will be discouraged to use it and will leave your site, since it takes a lot of effort to view a non-responsive website on a small screen. Hence, it is important to have a website that is displayed properly on all popular screen sizes.

The practice is to either have a responsive website, a dedicated mobile site, or an app so you can give the users a mobile-friendly experience.

8. No call-to-action button

Every website has a purpose to serve. You want users to perform some action when they visit your site. A call to action button is a clickable button that grabs the user’s attention. It urges them to click it and leads them to additional information.

Keep the size of this button relatively larger than other less important buttons. A call-to-action button should be the first thing that grabs the user’s attention. Use a contrasting color to ensure that the user notices this button.

Conveying an emotion is the hardest part of web design, but it’s also one of the most important parts. The appeal of a website determines whether a user will stay or leave.

A well-designed website will attract more visitors and will stand out from the countless other websites. So remember these common web design mistakes and avoid making them when you are designing your next website.

Vijata Redkar

The post Web Design Mistakes to Avoid When Designing Your Website appeared first on Online Productivity Solutions Pvt. Ltd..

]]>
https://opspl.com/blog/web-design-mistakes-to-avoid/feed/ 0
The Smart Way to Write CSS https://opspl.com/blog/smart-way-write-css/ https://opspl.com/blog/smart-way-write-css/#respond Fri, 19 Jan 2018 11:32:49 +0000 https://opspl.com/?p=6609 CSS is one of the important skills every web designer must have. Understanding CSS is the initial challenge as CSS is not easy. One needs to understand how to use CSS selectors, properties, pseudo-code, etc. While you learn the basic way to write down a CSS code, it is very important to understand the way...

The post The Smart Way to Write CSS appeared first on Online Productivity Solutions Pvt. Ltd..

]]>
CSS is one of the important skills every web designer must have.

Understanding CSS is the initial challenge as CSS is not easy. One needs to understand how to use CSS selectors, properties, pseudo-code, etc. While you learn the basic way to write down a CSS code, it is very important to understand the way to organize it. While basic coding practices focus on keeping the code well organized and nicely indented, a couple of changes in the way of writing the CSS code file can have a huge impact on the output.

Here are a few tips to write quick, clean and non-redundant CSS code:

Writing CSS Reset
Always use a CSS reset file at the start of the code. If you don’t define any element style, then the browser will apply its own CSS style which might create a mismatch in the design as browsers have their own styles. Use of CSS reset will override browser-default-styles, allowing you to write a clean code base. If you don’t know how to write a reset file, then you can also download it, as it is available on the internet.

Organizing styles in blocks
Organizing code into blocks is important as it will not only help you but also your colleagues to understand the flow of your code, instead of spending hours understanding which code is placed where. So, group your code properly, divide it into blocks or sections. There are many ways to organize your code into blocks. The first is where you can create blocks of elements of the design, for example, blocks of images, buttons, links, etc. And the second would be organizing them according to the parts or sections of the design, for example, header, menu, main body, sidebar, footer, etc. Organizing also helps in writing a non-redundant code. Sometimes we might end up repeating some of the CSS properties, so organizing your code into blocks will prevent redundancy.

Organizing CSS with comments
Assume one day you are told to work on an old project of yours, and it’s been a long time you haven’t touched that code and now you don’t remember which style is placed where since unfamiliarity will result in you not remembering the locations of specific styles. CSS files are quite long, having many lines. So it’s always important to comment your code properly, you may save a lot of time that you just would have spent on the code searching for a style. And it will also help your colleagues to understand your code with much ease.

Use CSS shorthand
Using shorthand, we can write a multiple line code on a single line. The code looks neater, cleaner and short if we use shorthand. For example, for use of a border, you can set the border-width, border-style and border-color property of an element by using just one ‘border’ property. It also makes writing easy. However, if you just have to change the colour of the border, then using longhand will be better, instead of setting all 3 properties.

Quick CSS classes
If you use a property over and over in a code, then writing a separate class for that specific property would be beneficial. So you can use that class in your HTML file whenever you would want that style property to be applied instead of defining it again and again.

These are not the only tips to write CSS smartly, there are many more. These are a few basic tips I personally follow to write better CSS.

Vijata Redkar

The post The Smart Way to Write CSS appeared first on Online Productivity Solutions Pvt. Ltd..

]]>
https://opspl.com/blog/smart-way-write-css/feed/ 0