Thu, 2 May 2024


Category: CSS


How to make text in <pre> tag wrap automatically on new lines?

To do that, you could addthe following CSS styles for your <pre> tags - <style> pre { white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; white-space: pre-wrap; word-wrap: break-word; } </style> This ...
Sat, 13 November 2021

How to set minimum width of a div for all browsers?

The example below will set the minimum width of the "example-div" element to 200px. It works in all major browsers (Internet Explorer, FireFox, Chrome, Safari etc.). <style> .example-div { min-width:200px; ...
Sat, 13 February 2021

How to make a div or image with rounded borders with css in all browsers?

To make a html element - div, image, table etc. have rounded borders (in all recent browsers like Internet Exmplorer, FireFox, Chrome, Safari etc.), you may use the following CSS ...
Fri, 12 June 2020



See All Scripts




Subscribe for our newsletter

Receive the latest blog posts direct in your mailbox