Website Development

Changing the text highlight colour with CSS

If you’ve seen websites display different foreground or background colours on highlighted text and wonder how they do it, it’s actually very simple. Once part of the draft CSS Selectors Level 3 specification ::selection overrides your browser-level or system-level text highlight color with a color of your choosing. Here’s an example: [alert]Note: how the selectors are …

Changing the text highlight colour with CSS Read More »

Placeholder HTML 5 Attribute: Default text field values

Creating text fields with default values is now easy thanks to HTML 5. There is a new HTML attribute specifically just for this purpose – the placeholder attribute. As the descriptive attribute suggests, it allows you to create place holder text which is visible if the text field is empty. The attribute itself is supported …

Placeholder HTML 5 Attribute: Default text field values Read More »

CSS 3 Linear Gradients

Creating linear gradients are extremely easy thanks to CSS 3. There is no longer any need to use background images, which not only saves on unnecessary network requests, but is also so much more convenient for us Web developers. As CSS gradients are relatively new to the scene, older versions of most Web browsers provided …

CSS 3 Linear Gradients Read More »

Pin It on Pinterest