|
caz -> RE: CSS and Include Pages (3/24/2004 11:20:26)
|
I think that I can help here with the html and CSS for the first site I CSS'd. Bear in mind that this was my first go and that it is primarily tables based. I think though that you will grasp what Gorilla meant by using classes. In this case I used paragraphs to apply classes to. ( Bad grammar, I know!) Main page Page html <head> <meta HTTP-EQUIV="Content-Language" CONTENT="en-ie"> <meta HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1252"> <title>STOP PRESS</title> <link rel="stylesheet" type="text/css" href="ciigstyle.css"> <body> <table BORDER="0" WIDTH="100%"> <tr> <td WIDTH="90" VALIGN="top" ALIGN="left" HEIGHT="15%"> <a HREF="index.htm" NAME="top"> <img BORDER="0" SRC="images/ciiglogo1.gif" width="90" height="40"></a></td> <td WIDTH="85%" VALIGN="top" ALIGN="left" HEIGHT="15%"> <!--webbot bot="Include" u-include="myincludes/navbarmem.asp" tag="BODY" --> </td> </tr> </table> etc, etc. Included page html <HTML> <HEAD> </HEAD> <BODY> <P CLASS="navigation-bar"><A HREF="../news.asp">News</A><a href="../diary.asp">Diary</a> <A HREF="../committee.asp">Committee</A> <A HREF="../dirindex.asp">Directory</A> <A HREF="../serials.asp">Serials</A> <A HREF="../manual.htm">Manual</A> <A HREF="../website.asp">Website</A> <a href="../forum.asp">Forum</a></P> </BODY> </HTML> CSS ( fragment, where you style your navigation bar) p.navigation-bar { background-color: transparent; background-position: top; border: medium white none; color: white; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: smaller; font-style: normal; font-variant: normal; font-weight: normal; height: auto; line-height: normal; text-align: left; padding-bottom: 2%; max-width: 85%; margin-top: 1em; margin-bottom: 1em; margin-left: 1em; } p.navigation-bar a:link { background-color: #1c706f; border-right: thin solid; border: medium white none; color: #ffffff; font-style: normal; font-weight: normal; text-align: left; text-decoration: none; position: fixed; height: 5%; padding-left: 1em; margin: 1em; } p.navigation-bar a:visited { background-color: #1c706f; border-right: thin solid; border: medium #ffffff solid; color: white; font-weight: normal; height: 1pc; text-decoration: none; } p.navigation-bar a:active { border-right: thin solid; border: medium white solid; color: #0000ff; font-weight: normal; height: 1pc; text-decoration: none; } p.navigation-bar a:hover { border-right: thin solid; border: medium #5f0000 solid; color: #8080ff; font-weight: normal; text-decoration: none; height: 1pc; } p.footer { color: #302100; font-family: Verdana, Arial, Helvetica, sans-serif; text-align: center; border-top: 2px; } body { Hope that this helps to get the idea, Cheers Carol
|
|
|
|