CSS

0 views
Skip to first unread message

Stephanie Jarvais

unread,
Feb 27, 2012, 9:49:19 PM2/27/12
to lbsc690-spring12-0101
Hey,
I am having major issues with the .shtml coding - on safari it
recognizes the background and not the border around the navigation,
and then on internet explorer it only recognizes the border and not
the color. It is homepage2.shtml on terp connect. terpconnect.umd.edu/
~sjarvais/homepage2.shtml

Thanks!

William Webber

unread,
Feb 28, 2012, 11:21:57 AM2/28/12
to lbsc690-sp...@googlegroups.com
Stephanie,

Hi! I'm not sure exactly what's going wrong (the background color also
doesn't show up under Firefox). There are a couple of errors that might be
causing it:

- The background color in the CSS file has 5 hexadecimal digits, when
it should have 6.
- The page is wrapped in <?xml> ... </?xml> tags, rather than <html> </html>
plus <!DOCTYPE> (what standard are you following here?)

Try changing these. If it still doesn't work, come and see me.

William

Ashley Moser

unread,
Feb 28, 2012, 2:14:58 PM2/28/12
to lbsc690-sp...@googlegroups.com
Dr. Webber, Here is my main page http://terpconnect.umd.edu/~amoser07/home.shtml

William Webber

unread,
Feb 29, 2012, 1:11:42 PM2/29/12
to lbsc690-sp...@googlegroups.com
Nice design!

Most CSS is in a separate style sheet file, but some (specifically,
p.navbar) is done in the header of the HTML file.  Since the latter
is in fact the same on each page, it would be better also in your
separate CSS file.

Incorrect use of <head> and <body>.  <head></head> should
contain only <link>, <title>, and <style>, not content tags
like <p> and <h2>.  All actual content should go in <body> </body>.
There should be nothing inside <html> </html> but outside
<head></head> or <body></body>.  Similarly, the CSS file
should not have any HTML tags in it (remove the <html>, <head>,
and <style> tags).

OK, all that aside, correctly separated into three page, with
nav taken from SSI, and styling of nav and background using
CSS.  CSS goes beyond minimum requirements; interesting
use of "link" and "visited" virtual targets.  Course codes on
classes.shtml not in monospace font.

2/3.

William
Reply all
Reply to author
Forward
0 new messages