Map of Japan and USA Made Using CSS Grid

Using just HTML and CSS 22 Jan 2024

I’ve seen lots of maps in Japan using a simplified minimal boxy design and I think it looks kind of nice in an elegant way and is useful for displaying information, so I thought I’d give it a try, using only HTML and CSS. Now that the need to support IE11 has decreased I think it’s safe now to use CSS grid for this kind of thing.

I also made a map of the United States using the same technique which is something I don’t think I’ve ever really seen much before.

北海道
青森
岩手
宮城
秋田
山形
福島
茨城
栃木
群馬
埼玉
千葉
東京
神奈川
山梨
長野
新潟
富山
石川
福井
岐阜
静岡
愛知
三重
滋賀
京都
大阪
兵庫
奈良
和歌山
鳥取
島根
岡山
広島
山口
徳島
香川
愛媛
高知
福岡
佐賀
長崎
熊本
大分
宮崎
鹿児島
沖縄

The map of Japan is colored based on 地方 (region) and the map of the United States is colored based on “census regions” since it seems like there isn’t as much of a standard way of dividing the US into regions compared with Japanese 地方 which are more commonly used.

AL
AK
AZ
AR
CA
CO
CT
DE
FL
GA
HI
ID
IL
IN
IA
KS
KY
LA
ME
MD
MA
MI
MN
MS
MO
MT
NE
NV
NH
NJ
NM
NY
NC
ND
OH
OK
OR
PA
RI
SC
SD
TN
TX
UT
VT
VA
WV
WI
WY

Maybe some time I’ll make this into a more popular react component or something. I think it would be cool to have an easy way to make these kinds of maps.