css3 icon

Center content inside a div in CSS

7 Sep, 2023
CSS
Center content, both horizontally and vertically, inside a div. To center text both horizontally and vertically inside a div block using Flexbox and defining both width and height, you can follow...
html5 icon

Accessibility: When to Use role="button"

4 Sep, 2023
In HTML, you should use the role="button" attribute when you want to indicate that an element on your web page acts like a button if it's not a traditional HTML element. This is particularly...
PHP

Decode HTML Entities in PHP

25 Aug, 2023
PHP
HTML entities are special codes used to represent characters that have reserved meanings or are difficult to include directly in HTML code. These entities, like & for "&" or < for "
PHP

Rotate an image to its EXIF Orientation in PHP

19 Aug, 2023
PHP
While iPhones and many modern cameras save images with orientation information in their EXIF data, the correct display of these images can sometimes be an issue on other devices or in browsers. Being...
JavaScript

CKEditor 4 allowedContent link

5 Aug, 2023
The allowedContent configuration option in CKEditor is used to define what HTML elements and attributes are allowed to be used in the editor's content. This feature helps maintain consistent and safe...
Drupal

Entity View Alter in Drupal 7

5 Aug, 2023
In Drupal 7, you can use the hook_entity_view_alter() function to alter the rendering of entities before they are displayed. This hook allows you to modify the display of entity content without...
Drupal

Create New Custom Display Drupal 7

5 Aug, 2023
To define a new custom display for an entity in Drupal 7, you'll need to create a custom module and implement hook_entity_info_alter().

When should you use git pull --rebase?

5 Aug, 2023
Git
Use "git pull --rebase" when you need to integrate changes from a remote repository into your local branch. This command not only brings in the new changes but also restructures your local commit...
css3 icon

Use CSS to add chevron right

1 Aug, 2023
CSS
To add a chevron right icon using CSS, you can use a pseudo-element like ::before or ::after to create the shape and style it accordingly. Using the content property is necessary when adding an icon...
Drupal

Executing a Single Value Query in Drupal 7

30 Jul, 2023
To retrieve a single value from the database in Drupal 7, you can use the db_query() function along with the appropriate SQL query and utilize the fetchField() method to obtain the desired result.