Text-align class for inside a table

Bootstrap 3 v3 Text Alignment Docs <p class=”text-left”>Left aligned text.</p> <p class=”text-center”>Center aligned text.</p> <p class=”text-right”>Right aligned text.</p> <p class=”text-justify”>Justified text.</p> <p class=”text-nowrap”>No wrap text.</p> Bootstrap 4 v4 Text Alignment Docs <p class=”text-xs-left”>Left aligned text on all viewport sizes.</p> <p class=”text-xs-center”>Center aligned text on all viewport sizes.</p> <p class=”text-xs-right”>Right aligned text on all viewport sizes.</p> …

Read more

HTML-encoding lost when attribute read from input field

EDIT: This answer was posted a long ago, and the htmlDecode function introduced a XSS vulnerability. It has been modified changing the temporary element from a div to a textarea reducing the XSS chance. But nowadays, I would encourage you to use the DOMParser API as suggested in other anwswer. I use these functions: function …

Read more

Disable Auto Zoom in Input “Text” tag – Safari on iPhone

You can prevent Safari from automatically zooming in on text fields during user input without disabling the user’s ability to pinch zoom. Just add maximum-scale=1 but leave out the user-scale attribute suggested in other answers. It is a worthwhile option if you have a form in a layer that “floats” around if zoomed, which can …

Read more

Increasing nproc for processes launched by systemd on CentOS 7

systemd completely ignores /etc/security/limits*. If you are using an RPM that auto-squashes its systemd service file on update, you’ll want to file a PR to ask them to mark those files as ‘noreplace’ You need to update the .service file /usr/lib/systemd/system/<servicename>.service [Unit] Description=Some Daemon After=syslog.target network.target [Service] Type=notify LimitNOFILE=49152 ExecStart=/usr/sbin/somedaemon [Install] WantedBy=multi-user.target sickill pointed out …

Read more