Posts

Showing posts with the label css

This Blog Has Moved!

Right, so yes, five years ago I moved to github pages, and never bothered to redirect any of these pages there. Now I've moved on from there, and... Finally I am using my real domain, trishagee.com . My blog is now at trishagee.com/blog .  See you there!

In my day...

Web development has changed a lot . I was aware that there have been many changes in the last few years, and I’ve seen maturity come to web platforms in the form of standardisation and common reusable libraries and frameworks - and I don’t mean reusable in the way we used to “reuse” stuff by nicking it off other people’s websites when we saw something cool. I used to be a web developer.  Sort of.  Some times I’ve been on the bleeding edge, and others… I remember using JavaScript to call back-end services with an XML payload before people were using the term AJAX, but I also remember working on an enterprise um… “classic”… JSP application only “recently” - in fact that was probably the last job where I did anything that looked like web development. So this blog post is going to chart the progress of web development through my own experience.  Of course, this doesn’t by any means cover the whole spectrum, but I think my experience has been not unusual for...

CSS for Developers: Horizontal and Vertical Centring

Image
First, an apology.  I will be using the British spelling for "centre", because, well, I'm British.  But it gets really confusing because you have to use the American spelling in the code.  And doesn't "Centring" just look wrong? Part Five: Horizontal and Vertical Centring One of the most common things you want to do with blocks of content is to centre it.  In particular, you would think that vertically centring content would be straightforward, but it turns out that in HTML/CSS it just isn't. 5.1 Horizontal Centring Centring a paragraph of text is clearly easy - all you need is text-align: center .  However, sometimes you want to centre a block, something like a div, without having all the text centred as well.  This is slightly trickier than you might expect, because the only CSS attributes you have are for centring text. <html> <head> <title>Horizontal Centering</title> <style type="text/css"> ...

CSS for Developers: Cross Browser Table Border Behaviour

Image
One of the aims of this series is to highlight some stupid gotchas in support for CSS in the different browsers. Today's gotcha is table borders. Yes, yes, I said don't use tables.  What I means is, don't use tables for layout. But you can use tables for, you know, tabular data.  Like, for examples, lists of instruments and their bid and ask prices . But you should know that even when you use strict mode, Internet Explorer has slightly... eccentric... rendering behaviour for tables.  Actually to be specific, it's IE7 only. <html> <head> <title>Table Borders</title> <style type="text/css"> table, td { border: 1px solid black; } td { height: 20px; min-width: 5px; } </style> </head> <body> <table cellpadding="0" cellspacing="0"> <tr> <td>first cell</td> <td>se...

CSS for Developers: Column Layout Using CSS

Image
This is a continuation of my series of CSS hints / tips / cheats for developers (and other technical-but-not-UI people). The screenshots are in Chrome on a Mac.  The originals were on Firefox on Ubuntu so I can tell you the behaviour is identical. Part Three: Column Layout Using CSS (or: still no excuse to use tables) Today's example is a simple one, but worth knowing all the same.  The aim is, once again, not to use HTML tables to provide any sort of layout.  In most cases not only does using a div reduce the size of your DOM (and potentially help improve the performance of your page ), it's actually a lot less complicated to organise your layout this way. 3.1 Display Elements or Text in Columns <html> <head> <title>Column layout</title> <style type="text/css"> #col1 { background-color: yellow; /**have to know the width **/ width: 30%; float: left; } #...

CSS for Developers: The Joy of Floats

Image
As promised, the Long Awaited Follow-Up to CSS for Developers Part One ! Well, long-awaited if you're as afflicted with NADD as I am. Quick recap - the aim of this series is to provide a quick and easy how-to around the magic that is CSS.  It's primarily aimed at developers, although I would hope it's comprehensible to a range of tech-savvy people. (Note: unless otherwise stated, the screenshots are in Chrome on a Mac - given an earlier version of this guide I can tell you the behaviour is identical to Firefox on Ubuntu). Part Two: The Joy of Floats (or: why they don't do what you think they should) Last time I stated that using float is a great way to position elements contained in a div.  Well, it has its downsides too.  Quite a few actually. So this post documents the ones I ran into and what we did on the  LMAX Trader UI  to get it to look the way we wanted. Disclaimer: There might be better ways to do a lot of this stuff - if you locate them via...

CSS for Developers: Horizontal Layout Using CSS

Image
I'm a Java Developer.  But I'm also a Web Developer.  Web Developers have been so badly maligned over the last decade or so that I always feel wary (and sometimes slightly ashamed) admitting this.  There's some sort of assumption that Web Developers (and Front End Developers) aren't real programmers. Similarly, "real" developers don't like to be tainted by coming into contact with that nasty "front end stuff" in case someone mistakes them for a designer. Trust me, no-one is going to mistake a Java Developer for a designer.  For a start, when designers wear geeky glasses it's ironic.  Or chic.  Or something. But developers will be forced to do something around the front end at some point in their lives.  Even if it's because they're sick of manually kicking off some process and want to give the users a big red button to press instead. So, as much to compensate for my own goldfish-like brain as anything else, I'm going to make a...

Popular posts from this blog

Dissecting the Disruptor: Writing to the ring buffer

Dissecting the Disruptor: What's so special about a ring buffer?

Dissecting the Disruptor: Demystifying Memory Barriers