I'm a bit rusty on web design now since it's been a couple of years since I last touched a website, and I never got beyond the basics. Now, I'm redesigning a student group website as webmaster, and am running into some roadblocks.
Here is the site: http://sustainability.stanford.edu/c.../about1112.php
(see bottom of message for codes)
Right now the menu is part of the banner image, but I have versions of the image with no text, or with text and menu separate, or with text omitted and separate. The tables are borrowed from the old website and have been tweaked to match the color scheme of the new banner. Using tables is a bit new to me, and they make sense for the most part, but have been giving me some problems (inserting the menu as a separate image under the banner messes up the size and shifts part of the table over).
Originally, I naively assumed that it wouldn't be too painful to use an image map plus a drop down menu, but I soon discovered otherwise. The drop down is optional/would be nice, but my main priority now is for it to actually function haha.
To make the links work, I was thinking of either
-leaving the image as is and using an image map (though that isn't working at the moment either for some reason)- I'd prefer to find some way to keep the menu as an image since it looks a bit nicer, but am willing to take out the text and
-splitting the image so it can more easily be a drop down menu (tried this too and failed- where in the code should it go? new table?)
-overhauling the entire css and html entirely and switch to divs, starting again from there
Any help will really be appreciated! Thanks!
-Christina
Header (impt for nav menu)
Css
About
Here is the site: http://sustainability.stanford.edu/c.../about1112.php
(see bottom of message for codes)
Right now the menu is part of the banner image, but I have versions of the image with no text, or with text and menu separate, or with text omitted and separate. The tables are borrowed from the old website and have been tweaked to match the color scheme of the new banner. Using tables is a bit new to me, and they make sense for the most part, but have been giving me some problems (inserting the menu as a separate image under the banner messes up the size and shifts part of the table over).
Originally, I naively assumed that it wouldn't be too painful to use an image map plus a drop down menu, but I soon discovered otherwise. The drop down is optional/would be nice, but my main priority now is for it to actually function haha.
To make the links work, I was thinking of either
-leaving the image as is and using an image map (though that isn't working at the moment either for some reason)- I'd prefer to find some way to keep the menu as an image since it looks a bit nicer, but am willing to take out the text and
-splitting the image so it can more easily be a drop down menu (tried this too and failed- where in the code should it go? new table?)
-overhauling the entire css and html entirely and switch to divs, starting again from there
Any help will really be appreciated! Thanks!
-Christina
Header (impt for nav menu)
Code:
<link rel='stylesheet' type='text/css' href='csstest.css' /> <body> <table id="wrapper" cellspacing="0" cellpadding="0" valign="top"> <tr id="banner"> <td id="banner" colspan="3"> <a href="header.map"><img src='ssshead1112.jpg' ismap usemap="#ssshead1112" border="0"></a> <map name="ssshead1112"> <area shape="rect" coords="15, 216, 160, 241" href='index.php' alt="Home"> <area shape="rect" coords="161, 216, 278, 241" href="http://sustainability.stanford.edu/cgi-bin/about1112.php"> </map> </td> </tr>
Code:
/* Layout for sustainability.stanford.edu design by Christina Zhou summer 2011, Lucas Johnson Summer 2009 */ body{ /*url('strip.jpg') repeat-x scroll top left;*/margin: 0; margin-top: 0px; font: normal 100% georgia; background-color:#0f1f14 } a {text-decoration:none} img {border:0} /*Table below the banner*/ table#wrapper { margin-left:auto; margin-right:auto; width:900px; border:0px solid #000000; border-top:0px; background:#d9eae1 url("images/treebackground.jpg") no-repeat scroll bottom right; } table#wrapper td#menu { margin-left:auto; margin-right:auto; width:900px; border:0px solid #000000; border-top:0px; } table#wrapper td#main { width:100%; height:auto; vertical-align:top; margin-top:0; padding:0px 0px 0px 0px } table#wrapper td#bodyindex { width:100%; height:auto; vertical-align: top margin-top:0; padding:0px 10px 0px 10px; border:0px 0px 0px 0px } table#wrapper td#left { width:0px; background-color:#28431A; vertical-align:top; height:auto; margin-top:0; border-right:1px solid #000000 } .calendar { width:325px; height:200px; vertical-align:top; padding:10px; font-size: .9em; text-align:left } .calendar a { color:#009900} .calendar a:hover { color:#990000; text-decoration:underline } iframe#form { padding:20px; width:605px; height:1642px } /*Table for general content (not nav or banner)*/ table#inner { vertical-align:top; margin-top:0; background:transparent } table#inner td#body { background: ; padding:0px 10px 0px 10px } /*Table for splitting content into collumns*/ table#fraction { border:0; padding:0; width:100%; vertical-align:top } table#wrapper table#fraction td.half { width:50%; vertical-align:top; padding:0px 8px 0px 8px } /*Table of Officers and photos table.officers { padding:0px; border:0px; margin:0px} table.officers img { width:100px; height:150px} table.officers img#pres { width:200px; height:150px} */ .left { text-align:left} .skinny { width:400px} .top { vertical-align:top} .middle { text-align:center} /*Banner - this is for the site's banner image at the top of each webpage */ #banner img { width:1024; height:100%; background: no-repeat fixed top; margin:none; border-bottom:0px; } /*Navigation Table*/ table#nav { width:150px; } table#nav tr { text-align:left; height:2em} table#nav a { color:#CCC; border-bottom:0px solid #000000; background-color:#28431A; display:block; padding:10px 10px 10px 20px; font-family:georgia } table#nav a:hover { color:#000; background-color:#28431A; border-bottom:1px solid #000000; } /*Main Body*/ .content { background:transparent; padding:0px 0px 0px 0px } .content h1 { font-size:2em; color:#28431A; border-bottom:1px solid #28431A; padding: 0px 0px 0px 20px; font-family:georgia } .content h1 a { font-size:1em; color:#144000; padding:0px 0px 0px 0px} .content h1 a:hover { color:#00CC00; text-decoration:none } .content h2 { font-size:1.1em; color:#663333; border-top:1px dotted #663333; padding: 10px 5px 0px 10px; font-family:georgia } .content h2 a{ color:#663333} .content h2 a:hover { color:#28431A; } .content h3 { font-size:1em; color:#28431A; padding:5px 5px 5px 10px; font-family:georgia } .content h3 a{ color:#28431A} .content h3 a:hover { color:#009900} .content h4 { color:#003300; font-size:1.05em; padding:0px 0px 0px 20px } .content p { color:#222; font-size:10.8pt; padding: 0px 15px 8px 20px; text-align:top left; } .content dl { font-size:10.8pt; padding: 0px 15px 8px 20px } .content a { color:#009900} .content a:hover { color:#990000; text-decoration:underline } .content img { width:180px; float:right; padding:0px 5px 20px 5px } .clear { clear:both } #minibanner { width:440px; padding:0px 15px 10px 5px} #miniobject { padding:0px 0px 0px 35px} /*Foot*/ #foot { width:100%; background-color:#666; padding:0} #foot p { color:#DDD; font:normal; font-size:10pt; text-align:center} #foot a { color:#000000; font:normal; font-size:10pt } #foot a:hover { color:#990000; text-decoration:underline }
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <link rel='icon' href='favicon.ico' type='image/x-icon' /> <link rel='shortcut icon' href='favicon.ico' type='image/x-icon' /> <title>S S S - About</title> <?php include "header1112.php"; ?> <div id="content"> <div id="content-main"> some text </div> <div id="content-right">calendar </div> <?php include "footer.php"; ?>
Comment