Improve Programming Skills and User Experience

Every CSS Developer must know about the CSS Padding and Margins. CSS Padding: Definition Padding is the space within the element, and margin is the space outside boundaries of the element As i said Padding is the space withing the element, so we need one element to explain it. Lets take an element DIV with … [Read more…]

What are CSS Selectors When we write a CSS Rule, we write it for some elements which we define using CSS Selectors. CSS selector defines the element(s) for which that rule will be applied. See some examples: Here we have used different types of selectors. We mainly have these three kinds of css selectors 1) … [Read more…]

HTML stands for Hyper Text Markup Language. Wikipedia defines HTML as: HTML is the main markup language for displaying web pages and other information that can be displayed in a web browser. A HTML Web page is written with HTML Elements. HTML Elements are tags enclosed in brackets. A basic html page structure is as follows Each line … [Read more…]

How to use CSS in your webpages As discussed in post on defining css there are three ways we can define the styles for html elements. inline styles on page/internal styles external style sheets We will see examples of each of these above ways in detail. Inline Styles Inline styles are defined by an style … [Read more…]

What is CSS CSS stands for Cascading Style Sheet. Wikipedia defines CSS as: Cascading Style Sheets (CSS) is a style sheet language used for describing the presentation semantics (the look and formatting) of a document written in a markup language. Its most common application is to style web pages written in HTML and XHTML You … [Read more…]

Few days ago, i came across a website zoomin.com, they were giving away a 20 page free photo book for every new signup. Without a delay, i clicked on signup button, and guess what.. i see the following error page Obviously, soon enough i realized that the error was coming because i was not allowed … [Read more…]

Sometimes new Megento users keep wondering how to add Category Navigation Links/Tree on the homepage. For this you have to add atleast one subcategory in “default root category” Select Catalog->Manage Categories Click on “default category” Select Add Subcategory button on top Make sure to select “Yes” for isActive and “Include in Navigation Menu”

You might notice these errors often if you are working with large size objects:- Fatal error: Allowed memory size of 33554432 bytes exhausted Fatal error: Allowed memory size of 134217728 bytes exhausted You can try to increase the memory_limit by adding this statement in your php.ini file:- ini_set(“memory_limit”, “256M”); However you can still get the … [Read more…]

To Fix this error you most probably have to install mbstring extension for php. From your server command line as root: yum install php-mbstring And restart apache: service httpd restart Things should be fine then, if it still does not work then you might need to enable mbstring extension in your php.ini file(generally found in … [Read more…]

While using preg_match_all function in php, i came across this issue of Compilation Failed. On executing preg_match_all(‘/<div>(?<product>.*)</li>/sU’, $body, $matches) I got the following error: PHP Warning: preg_match_all(): Compilation failed: unrecognized character after (?< at offset 32 in … This is probably you are having old version of pcre (for me it was 6.6-6) which needs … [Read more…]