Skip to content

Curly Braces

Golden nuggets where no entry is longer than my expected attention span

  • Articles
  • Contact Me!
  • Policy
  • Internal

Category: HTML and CSS

Massuploading pictures using ActiveStorage

Posted on December 1, 2020 by Peter Andersson

ActiveStorage is a gem, I really think so. Before AS, whenevener I needed to attach a “blob” (image or other document) to a model it […]

Continue reading »
0
Development, HTML and CSS, Ruby, Ruby on Rails

A simple but complete Highcharts example

Posted on October 19, 2019 by Peter Andersson

This is how you can test the excellent Highcharts library. Make sure you have JQuery added first. <link rel=”stylesheet” href=”https://cdnjs.cloudflare.com/ajax/libs/highstock/6.0.2/css/highcharts.css” integrity=”sha256-ji+33kRPEXS0+FM/AbApEs8n5kT2UBiGyk36zs1F9gE=” crossorigin=”anonymous” /> Also include […]

Continue reading »
0
Ajax, Development, HTML and CSS, Javascript

Creating a child theme in WordPress

Posted on April 6, 2019 by Peter Andersson

This is a no-nonsense instruction of how to create a child theme in WordPress. We create it from the existing theme “twentynineteen” 1. Create a […]

Continue reading »
0
Development, HTML and CSS, PHP, Wordpress

Elegant menu transition in Bootstrap

Posted on March 27, 2019 by Peter Andersson

I like the fixed menu, that stays in place when your scroll the content, but I have seen a few websites do a cool transition […]

Continue reading »
0
Development, HTML and CSS, Javascript

A standard HTML header

Posted on February 28, 2019 by Peter Andersson

You should specify a lot of things in your HTML header nowadays. Previously it was enough with some CSS and JS script includes. Now we […]

Continue reading »
0
Development, HTML and CSS, Wordpress

Make your own Rails View helpers

Posted on November 14, 2018 by Peter Andersson

Rails helpers like image_url, link_to, form_with, fields_for etc are nifty little “macros” that makes your Rails code smaller and clearer. I mean, who doesn’t prefer […]

Continue reading »
0
Development, HTML and CSS, Ruby on Rails

Roadmap for 2018/2019

Posted on September 25, 2018 by Peter Andersson

Too many frameworks? Check. Too many tools? Check. Too many crossroads? Then use this roadmap. It will help you decide which path to take in […]

Continue reading »
0
Ajax, Development, Git, HTML and CSS, Javascript, React, Tankar, Thoughts, Vue

The best CSS Grid reference page!

Posted on July 22, 2018 by Peter Andersson

A Complete Guide to Grid A great example of how to use Grid CSS to show thumbnails https://codepen.io/SitePoint/pen/JBqgGm

Continue reading »
0
Development, HTML and CSS

Pimp your Rails site with some Vue.js

Posted on June 7, 2018 by Peter Andersson

Rails is great, but nowadays a full page refresh is as unpopular as  male ponytails or shoulder pads. Some write full-stack SPA sites, which is […]

Continue reading »
0
Ajax, Development, HTML and CSS, Javascript

Gulp or Grunt?

Posted on June 7, 2018 by Peter Andersson

OK, let’s have it, are you a Gulper or a Grunter? To some, build systems are a major issue. To me, not so much. In […]

Continue reading »
0
Development, HTML and CSS, Javascript, Thoughts

CSS and SASS in Rails

Posted on January 1, 2018 by Peter Andersson

A good article about organising CSS/SASS in Rails http://www.mattboldt.com/organizing-css-and-sass-rails/ Basically you have this in yourapp/assets/stylesheets/application.css /* NOTE: Not Application.scss */ /* *= require_self *= require […]

Continue reading »
0
Development, HTML and CSS, Ruby on Rails

CSS Tips

Posted on December 27, 2017 by Peter Andersson

To center an image, use margin: auto; and make it into a block element: img { display: block; margin: auto; width: 40%; } Highlight alla länkar som inte länkar nånstans! a[href=”#”], a[href=””], a:not([href]) […]

Continue reading »
0
Development, HTML and CSS

Från bloggen

AI Ajax Apache bash Development Docker Git Google Gradle Heroku HTML and CSS Imaging IOS Java Javascript Linux Math MIcroservices Microsoft MySQL Network Node OSX Palmemordet Patterns Photo PHP Python Raspberry Pi React Ruby Ruby on Rails Samba Spring Boot Tankar Thoughts Trading Uncategorized Video Visual Studio Code Vue Web Wordpress XCode
May 2025
M T W T F S S
 1234
567891011
12131415161718
19202122232425
262728293031  
« Mar    

Articles

Favourite Links

  • A Rock Solid Rails 5 API App with a React Frontend
  • Rails 5.1's form_with tag
  • Complex Rails forms
  • Rails is scalable

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
Powered by WordPress and Momentous.