Skip to main content
Blog IT Information technology

Main navigation

  • Home
  • Contact us

User account menu

  • Log in
  • Register

Blogs

  1. Home
  2. Blogs

Pagination

  • First page « First
  • Previous page ‹ Previous
  • …
  • Page 3
  • Page 4
  • Current page 5
  • Page 6
  • Page 7
  • Page 8
  • Next page Next ›
  • Last page Last »

How to Center an Image with the CSS text-align Property

In general, you cannot use the CSS text-align property to center an image, as it works only on block elements, and the <img> is an inline one. But there is a trick that will help you to center the image with the text-align property. If you need this property for some reasons, you can add a <div> element and specify the text-align property on it. Use the “center” value of this property.

Blog IT Blog IT
2 years 3 months ago
Read More

How to Align Labels Next to Inputs

When you create a web form, you’ll probably need to know how to align labels with inputs. Here, we’ll show how it’s possible to create right-aligned and left-aligned <label> elements next to inputs.

Blog IT Blog IT
2 years 3 months ago
Read More

How to Make a Back to Top Button

You've probably seen a "back-to-top" button at the bottom-right corner on many websites when you're scrolling around. Clicking on that button takes you back to the top of the page.

This is a great feature to have on any website, and today we are going to see how to build it with nothing but HTML, CSS, and JavaScript.

Blog IT Blog IT
2 years 3 months ago
Read More

How to Make Vue v-on:click Work on Component

There is a situation when you want to use the on click directive inside a component but it doesn’t work. Here we suggest a snippet that will work like a charm.

To listen to native events on the root element of a component, the .native modifier for v-on should be used like this:

<template>
  <div id="app">
    <test v-on:click.native="testFunction"></test>
  </div>
</template>

There is a shorthand version of the above snippet:

Blog IT Blog IT
2 years 3 months ago
Read More

What is the Difference Between the Created and Mounted Hooks in Vue.js

Programmers are still struggling with the created and mounted hooks in Vue.js and trying to find out what is the difference between these two. Let’s figure out together and see which method is used for real-life situations covered up in this tutorial.

Blog IT Blog IT
2 years 3 months ago
Read More

How to programmatically login/authenticate a user Symfony

Last night I was experimenting with Silex and I needed a register/login form. Silex comes with a SecurityServiceProvider which gives you the power of the symfony/security component. But I couldn’t figure out how to programmatically login the user after registration. So here’s my solution:

In order to login you have to do following steps

Blog IT Blog IT
2 years 4 months ago
Read More

How to keep symlinks in web/bundles after composer update Symfony

When updating vendor through "composer update" or "composer install", the content of "Resources/public" of each bundle is copied into web/bundles, to create symlinks you have to make a small change in composer.json.

{
    "extra": {
        "symfony-assets-install":"symlink",
    }
}

Blog IT Blog IT
2 years 4 months ago
Read More

How to Embed PDF in HTML

There are several ways to include a PDF file in your HTML document: Using the <embed> and <object> tags, which are considered to be old-fashioned ways, because they are deprecated now. And Using the <a> or the <iframe> tag.

The easiest way to put PDF in an HTML document is using the <a> tag with its href attribute. You need to add the URL or the reference link of your PDF file to the element. Your code will look like the following.

Web Developer Web Developer
2 years 4 months ago
Read More

Use the <video> tag for inserting videos in HTML

The <video> tag is added in HTML5 along with its sibling, <audio>. Before the release of HTML5, a video could only be played in a browser with a plug-in (like a flash). The HTML5 <video> element specifies a standard way to embed a video in a web page. That is to say that the video is identified by adding a video URL to a source attribute. One can use it to embed videos imported from the computer or hosted by an external website.

Web Developer Web Developer
2 years 4 months ago
Read More

Environment Configuration Laravel

Environment variables are those which provide a list of web services to your web application. All the environment variables are declared in the .env file which includes the parameters required for initializing the configuration.

By default, the .env file includes following parameters: 

Web Developer Web Developer
2 years 3 months ago
Read More

Pagination

  • First page « First
  • Previous page ‹ Previous
  • …
  • Page 3
  • Page 4
  • Current page 5
  • Page 6
  • Page 7
  • Page 8
  • Next page Next ›
  • Last page Last »

Subscribe to the Newsletter

Blog Category

Web
Mobile
Security
Design

Tags keyword

html
css
php
Sass
html5
drupal
drupal 8
drupal 9
drupal 10
laravel
symfony
vue.js
vue
js
css3
jquery
javascript
image
table
iframe
link
mail
twig
drush
module
git
gitflow
web
drupal 7

Monthly archive

  • May 2018 (1)
  • May 2019 (1)
  • November 2019 (1)
  • December 2019 (1)
  • March 2020 (2)
  • May 2020 (3)
  • June 2020 (2)
  • July 2020 (3)
  • November 2020 (1)
  • December 2021 (3)
  • October 2022 (1)
  • November 2022 (7)
  • December 2022 (15)
  • February 2023 (1)
  • April 2023 (1)
  • May 2023 (2)
  • June 2023 (3)
  • July 2023 (4)
  • August 2023 (8)
  • September 2023 (3)
  • October 2023 (9)
  • November 2023 (5)
  • September 2024 (1)

Copyright © 2025 - Blog Information technology - Sitemap