d4b

Code cleanup

Apr 30, 2012 05:47

Trying to learn more about some basic CSS philosophy, such as replacing tables with CSS constructs. Cleaning some other things up, such as (finally) using a DOCTYPE, changing the hardcoded "2012" year to
Copyright © , adding "/" to the end of tags, and moving the internal style sheet to an external one. When I did that last step, though, I found one head-scratcher: A single declaration, the input text height, was ignored.

Using internal style sheet:
    Using external style sheet:

Here's the relevant code, obviously the same in both instances:

.input-text { width:100px; height:20px; background-color:#ffff99; font-size:7pt; }
...

webdev, fec book, fsycs

Previous post Next post
Up