David Beroff (d4b) wrote,
David Beroff

Code cleanup

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 &copy; <?php echo date("Y"); ?>, 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; }
<input type="text" name="name" size="16" class="input-text" />
Tags: fec book, fsycs, webdev
  • Post a new comment


    default userpic

    Your reply will be screened

    Your IP address will be recorded 

    When you submit the form an invisible reCAPTCHA check will be performed.
    You must follow the Privacy Policy and Google Terms of use.