▼  Site Navigation Main Articles News Search  ▼  Anime + Manga Anime Reviews Anime Characters Gallery Screenshots Manga Reviews  ▼  Misc Links to Webcomics Bible Quotes About Older Musings
site version 7.3
older
newer

4/24/07
Tuesday 10:20pm


Date Posted:
4/24/07

For the longest time I could not figure out why IE was reading the CSS differently than Opera and Firefox.  It was even reading the same CSS differently only a few lines below.  The reason was that it was giving certain default values to empty strings.  I don't think that ie should do things like add its own default values if I don't define them.  The default values should be zero or empty otherwise cross browser compatibility becomes nearly impossible.

Here are the new things that I learned when dealing with the placement bug on the main page:  

First, the carriage returns were being read outside of the database.  I didn't take that into account when I created that paragraph function.  

Second, IE gives certain default values to empty string values.

Third, the width of the image was larger than the div space that I gave it.

The original problem was that the date reviewed was shifted upwards if the image was too large.  IE was also displaying empty strings with its own default values which distorted the summary on the main page to the right slightly.

The solution was to give the string for the image a default value, reposition the date reviewed into it's own div statement (as opposed to floating underneath the summary and up against the container for the image) and float it underneath the summary and the image whichever is lowest, enlarge the width of the container for the image to accomodate the actual width of the image, removed excess carriage returns, and one or two other things that I don't really understand yet, but they fixed certain browser problems not mentioned.

All this took 3 days to figure out and fix.

archives


TAGS: none

All Memo Tags

allegory 1, anime 1, article 6, audio 2, books 3, bug 19, code 1, commercial 1, computer 15, election 2, ereader 5, fixed 11, games 24, hard to remember 1, history 1, keyboard shortcuts 1, links 2, memo blog 1, mini-review 10, moving 2, music 1, mysql 1, news 31, none 1840, opera 69, politics 9, private 14, quotes 1, reformat hard drive 19, sgopc 1, site update 15, site version 205, sleep 3, star wars 2, story 4, swtor 1, texas 1, video 5, website 22, windows 10 1, wishlist 3

copyright 2005–2024