Quote:
Originally Posted by mnkhaki
|
This is not a correctly written HTML file.
When you import HTML from 01-january.php, you need to make sure the
<link href="../css/maincss.css" rel="stylesheet" type="text/css">
<link href="../css/prayer.css" rel="stylesheet" type="text/css"> code is imported into the
head element of the document. Right now, you're improperly importing those
link elements into the middle of the document source code.
01-january.php also contains
body and
html element tags that are being improperly imported into the middle of the document resulting in multiple
body elements being present in the document (when there should be one) and extraneous end tags.
Your code has other major problems too. For example:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> appears in the middle of the document when it should appear at the beginning of it.
Another issue is that you're incorrectly using
div,
a, and
span elements in place of table elements to represent your calendar.
I'd suggest fixing the placement of the document type declaration, running your code through the W3C Validator (
http://validator.w3.org/), fixing all of the errors the validator points out, and converting your calendar to use HTML table elements before trying further to troubleshoot your code.
Quote:
Originally Posted by mnkhaki
1. While we're on this topic - when I use the HOVER effect to highlight specific line, with a BG Color of FF3300 and text color of FFFFFF it won't work!
|
This may be related to the
link element problem mentioned above. The first style sheet, maincss.css, is linked (a second time) within the
head element as it should be, but the second style sheet, prayer.css, is only referenced from an incorrect location, so that style sheet may be being totally ignored.
Quote:
Originally Posted by mnkhaki
2. Also, the header (in blue) wont vertically align despite adding "vertical-align:middle;", how come?
|
The
vertical-align property has no effect on block-level elements such as
div. It only has the effect you're thinking of when applied to table cell elements (i.e.,
th elements,
td elements, and elements with
display: table-cell;).