<div>
tags with the display attribute alternating between block;
and inline-block;
along with differing call outs for the background-color
attribute.
.png
out of any text and center the image, instead.
'\n'
) between div
tags counts as white space, unless the div
's are all jumbled together on one line, white gaps will appear between the vertical bars (but not the horizontal ones) throwing off the spacing.CSS
is on the same page as the HTML
, both of which are easy enough to read if the page is opened in a text editor.
px
), as a percentage of the screen(%
, vw
, or vh
: the later two standing for view-width and view-height). However, the border lines can only be defined in terms of pixels (px
) and occur at the edge of the box. This means if two side by side divisions have width: 50%;
with border: 1px solid;
the second division will overrun the screen, which typically means it falls further down the page. Couple this with different screen sizes and the fact that the frame rotates from phones to desktop environments (phone layouts stretch vertically, while computer screens are typically wider horizontally); and suddenly, making those border lines play nice for all devices quickly becomes a problem I have no interest in solving.
<ul><li></li></ul>
PINK | ORANGE | LIME | PLUM |
WHITE | TEAL | RED | BROWN |
BEIGE | AZURE | SILVER | INDIGO |
BLUE | CYAN | YELLOW | BLACK |
visibility: hidden;
tag. However, inserting the tags where needed can get tedious...
div
's with radius borders.