Tag: css
All the articles with the tag "css".
-
Centering a Fixed-Sized Element with CSS
Updated:Learn a classic CSS trick to center a fixed-width or fixed-height element using absolute positioning and negative margins.
-
Dynamic Full Page Background Images in Rails
Updated:Learn how to set and randomize full-page background images in a Rails app using CSS3 and simple view helpers.
-
Highlighting Current Link in Rails Navigation
Updated:A look back at techniques for highlighting the active link in Rails navigation, with modern alternatives using current_page? and Stimulus.
-
Adding a Close Button to Flash Messages in Rails
Updated:Learn how to add a simple close button to dismiss Rails flash messages and a modern Rails 7+ Stimulus approach.