/* Code Samples - Ajax For Libraries: BrowseSearch - Library of Congress Subject Headings */ PHP file(s) --------------------------------------------------------------------- PHP and xHTML from /browsesearch/index.php ...

View code | Get code

IL 2006 :: Example: Library of Congress BrowseSearch

 
PHP and xHTML from /browsesearch/browsesearch.php ... Example: Library of Congress BrowseSearch Refresh Library of Congress BrowseSearch

"; //trim whitespaces, tabs and breaks from search terms $keywords = trim($keywords); //create message if search form was empty if (!$keywords) { echo "

No search term given.

"; echo $link; exit; } //pass database parameters and connect to database include_once './meta/_db_props_loc.php'; //form sql statement $query = "SELECT subject_id, label, callno FROM subject WHERE label LIKE '%$keywords%' ORDER BY callno ASC"; //store sql result as an array $result = @mysql_query($query) or die('

Error retrieving subjects from loc database!
'. 'Error: ' . mysql_error() . '

'); //create message if no rows match search terms if (mysql_num_rows($result) == 0) { echo "

Sorry, no matching results.

"; echo $link; exit; } //format sql result for display while($record = mysql_fetch_object($result)) { echo '
' . stripslashes($record->label) . '
'; echo '
Call Number Range: ' . stripslashes($record->callno) . '
'; echo '
Find Call Number on Library Floor Map
'; echo '
'; } echo $link; ?> Javascript file(s) --------------------------------------------------------------------- javascript from /scripts/preSearch.js ... SQL statement(s) or file(s) --------------------------------------------------------------------- -- -- Database create statement with character set and collation options -- CREATE DATABASE loc CHARACTER SET utf8 COLLATE utf8_general_ci; -- -- Tell which database to use when creating table -- USE loc; -- -------------------------------------------------------- -- -- Table structure for table `subject` -- CREATE TABLE `subject` ( `subject_id` int(8) NOT NULL auto_increment, `label` text NOT NULL, `callno` varchar(255) NOT NULL default '', PRIMARY KEY (`subject_id`), FULLTEXT KEY `full_index` (`label`) ) ENGINE=MyISAM; -- -- Dumping data for table `subject` -- INSERT INTO `subject` VALUES (1, 'Collections, Series, Collected Works', 'AC'); INSERT INTO `subject` VALUES (2, 'Encyclopedias (General)', 'AE'); INSERT INTO `subject` VALUES (3, 'Dictionaries and Other General Reference Works', 'AG'); INSERT INTO `subject` VALUES (4, 'Indexes (General)', 'AI'); INSERT INTO `subject` VALUES (5, 'Museums. Collectors and Collecting', 'AM'); INSERT INTO `subject` VALUES (6, 'Newspapers', 'AN'); INSERT INTO `subject` VALUES (7, 'Periodicals', 'AP'); INSERT INTO `subject` VALUES (8, 'Academies and Learned Societies (General)', 'AS'); INSERT INTO `subject` VALUES (9, 'Yearbooks. Almanacs. Directories', 'AY'); INSERT INTO `subject` VALUES (10, 'History of Scholarship and Learning. The Humanities', 'AZ'); INSERT INTO `subject` VALUES (11, 'General Works', 'A'); INSERT INTO `subject` VALUES (12, 'Logic', 'BC'); INSERT INTO `subject` VALUES (13, 'Speculative Philosophy', 'BD'); INSERT INTO `subject` VALUES (14, 'Psychology, Parapsychology, Occult Sciences', 'BF'); INSERT INTO `subject` VALUES (15, 'Aesthetics', 'BH'); INSERT INTO `subject` VALUES (16, 'Ethics. Social Usages. Etiquette', 'BJ'); INSERT INTO `subject` VALUES (17, 'Religion', 'BL'); INSERT INTO `subject` VALUES (18, 'Judaism', 'BM'); INSERT INTO `subject` VALUES (19, 'Islam, Bahaism, Theosophy', 'BP'); INSERT INTO `subject` VALUES (20, 'Buddhism', 'BQ'); INSERT INTO `subject` VALUES (21, 'Christianity', 'BR'); INSERT INTO `subject` VALUES (22, 'The Bible', 'BS'); INSERT INTO `subject` VALUES (23, 'Doctrinal Theology', 'BT'); INSERT INTO `subject` VALUES (24, 'Practical Theology', 'BV'); INSERT INTO `subject` VALUES (25, 'Christian Denominations', 'BX'); INSERT INTO `subject` VALUES (26, 'Philosophy (General)', 'B'); INSERT INTO `subject` VALUES (27, 'History of Civilization', 'CB'); INSERT INTO `subject` VALUES (28, 'Archaeology', 'CC'); INSERT INTO `subject` VALUES (29, 'Diplomatics, Archives, Seals', 'CD'); INSERT INTO `subject` VALUES (30, 'Calendar, Technical Chronology', 'CE'); INSERT INTO `subject` VALUES (31, 'Numismatics, Coins, Medals', 'CJ'); INSERT INTO `subject` VALUES (32, 'Inscriptions, Epigraphy', 'CN'); INSERT INTO `subject` VALUES (33, 'Heraldry', 'CR'); INSERT INTO `subject` VALUES (34, 'Genealogy', 'CS'); INSERT INTO `subject` VALUES (35, 'General Biography', 'CT'); INSERT INTO `subject` VALUES (36, 'Auxiliary Sciences of History (General)', 'C'); INSERT INTO `subject` VALUES (37, 'Central Europe', 'DAW'); INSERT INTO `subject` VALUES (38, 'Great Britain', 'DA'); INSERT INTO `subject` VALUES (39, 'Austria, Hungary, Czech Republic, Slovakia', 'DB'); INSERT INTO `subject` VALUES (40, 'France', 'DC'); INSERT INTO `subject` VALUES (41, 'Germany', 'DD'); INSERT INTO `subject` VALUES (42, 'The Mediterranean Region', 'DE'); INSERT INTO `subject` VALUES (43, 'Greece', 'DF'); INSERT INTO `subject` VALUES (44, 'Italy', 'DG'); INSERT INTO `subject` VALUES (45, 'Belgium, Luxembourg', 'DH'); INSERT INTO `subject` VALUES (46, 'Netherlands (Holland)', 'DJ'); INSERT INTO `subject` VALUES (47, 'Russia and former Soviet Republics', 'DK'); INSERT INTO `subject` VALUES (48, 'Northern Europe, Scandinavia', 'DL'); INSERT INTO `subject` VALUES (49, 'Spain, Portugal', 'DP'); INSERT INTO `subject` VALUES (50, 'Switzerland', 'DQ'); INSERT INTO `subject` VALUES (51, 'Balkan Peninsula', 'DR'); INSERT INTO `subject` VALUES (52, 'Asia', 'DS'); INSERT INTO `subject` VALUES (53, 'Africa', 'DT'); INSERT INTO `subject` VALUES (54, 'Oceania, Australia, New Zealand', 'DU'); INSERT INTO `subject` VALUES (55, 'Roma (Gypsies)', 'DX'); INSERT INTO `subject` VALUES (56, 'General World History', 'D'); INSERT INTO `subject` VALUES (57, 'History: America and United States', 'E'); INSERT INTO `subject` VALUES (58, 'History: United States Local and America', 'F'); INSERT INTO `subject` VALUES (59, 'Cartography, Mathematical Geography', 'GA'); INSERT INTO `subject` VALUES (60, 'Physical Geography', 'GB'); INSERT INTO `subject` VALUES (61, 'Oceanography', 'GC'); INSERT INTO `subject` VALUES (62, 'Environmental Sciences', 'GE'); INSERT INTO `subject` VALUES (63, 'Human Geography', 'GF'); INSERT INTO `subject` VALUES (64, 'Anthropology', 'GN'); INSERT INTO `subject` VALUES (65, 'Folklore', 'GR'); INSERT INTO `subject` VALUES (66, 'Manners and Customs', 'GT'); INSERT INTO `subject` VALUES (67, 'Recreation, Leisure', 'GV'); INSERT INTO `subject` VALUES (68, 'General Geography, Atlases, Maps', 'G'); INSERT INTO `subject` VALUES (69, 'Statistics', 'HA'); INSERT INTO `subject` VALUES (70, 'Economic Theory, Demography, Business Cycles', 'HB'); INSERT INTO `subject` VALUES (71, 'Economic History', 'HC'); INSERT INTO `subject` VALUES (72, 'Industries, Land use, Labor', 'HD'); INSERT INTO `subject` VALUES (73, 'Transportation and Communications', 'HE'); INSERT INTO `subject` VALUES (74, 'Commerce', 'HF'); INSERT INTO `subject` VALUES (75, 'Finance', 'HG'); INSERT INTO `subject` VALUES (76, 'Public Finance', 'HJ'); INSERT INTO `subject` VALUES (77, 'General Sociology', 'HM'); INSERT INTO `subject` VALUES (78, 'Social History, Problems, and Reform', 'HN'); INSERT INTO `subject` VALUES (79, 'Family, Marriage, Women', 'HQ'); INSERT INTO `subject` VALUES (80, 'Societies and Clubs', 'HS'); INSERT INTO `subject` VALUES (81, 'Cities, Communities, Races', 'HT'); INSERT INTO `subject` VALUES (82, 'Social Service, Welfare, Criminology', 'HV'); INSERT INTO `subject` VALUES (83, 'Socialism, Communism, Utopias, Anarchism', 'HX'); INSERT INTO `subject` VALUES (84, 'General Social Sciences', 'H'); INSERT INTO `subject` VALUES (85, 'Political Science (General)', 'JA'); INSERT INTO `subject` VALUES (86, 'Political Theory, Theory of the State', 'JC'); INSERT INTO `subject` VALUES (87, 'Political Institutions and Public Administration', 'JF'); INSERT INTO `subject` VALUES (88, 'Pol. Inst. & Public Admin.: United States', 'JK'); INSERT INTO `subject` VALUES (89, 'Pol. Inst. & Public Admin.: America Outside the U.S.', 'JL'); INSERT INTO `subject` VALUES (90, 'Pol. Inst. & Public Admin.: Europe', 'JN'); INSERT INTO `subject` VALUES (91, 'Pol. Inst. & Public Admin.: Asia, Africa, Australia, Oceania', 'JQ'); INSERT INTO `subject` VALUES (92, 'Local Government', 'JS'); INSERT INTO `subject` VALUES (93, 'Colonies and Colonization. Emigration and Immigration', 'JV'); INSERT INTO `subject` VALUES (94, 'International Relations and Law', 'JX'); INSERT INTO `subject` VALUES (95, 'General Legislative and Executive Papers', 'J'); INSERT INTO `subject` VALUES (96, 'Laws of United Kingdom, Irish Law', 'KD'); INSERT INTO `subject` VALUES (97, 'Canadian Law', 'KE'); INSERT INTO `subject` VALUES (98, 'United States Law', 'KF'); INSERT INTO `subject` VALUES (99, 'Central America Law, Caribbean Law', 'KG'); INSERT INTO `subject` VALUES (100, 'South American Law', 'KH'); INSERT INTO `subject` VALUES (101, 'European Law', 'KJ'); INSERT INTO `subject` VALUES (102, 'Law (General)', 'K'); INSERT INTO `subject` VALUES (103, 'History of Education', 'LA'); INSERT INTO `subject` VALUES (104, 'Theory and Practice of Education', 'LB'); INSERT INTO `subject` VALUES (105, 'Social Aspects of Education', 'LC'); INSERT INTO `subject` VALUES (106, 'Individual Institutions: United States', 'LD'); INSERT INTO `subject` VALUES (107, 'Individual Institutions: America except United States', 'LE'); INSERT INTO `subject` VALUES (108, 'Individual Institutions: Europe', 'LF'); INSERT INTO `subject` VALUES (109, 'Individual Institutions: Asia, Africa, Oceania', 'LG'); INSERT INTO `subject` VALUES (110, 'College and School Magazines and Papers', 'LH'); INSERT INTO `subject` VALUES (111, 'Student Fraternities and Societies in the United States', 'LJ'); INSERT INTO `subject` VALUES (112, 'Multi-Subject Textbooks', 'LT'); INSERT INTO `subject` VALUES (113, 'Education (General)', 'L'); INSERT INTO `subject` VALUES (114, 'Literature of Music', 'ML'); INSERT INTO `subject` VALUES (115, 'Musical Instruction and Study', 'MT'); INSERT INTO `subject` VALUES (116, 'Instrumental and Vocal Music', 'M'); INSERT INTO `subject` VALUES (117, 'Architecture', 'NA'); INSERT INTO `subject` VALUES (118, 'Sculpture', 'NB'); INSERT INTO `subject` VALUES (119, 'Illustration, Design, Drawing', 'NC'); INSERT INTO `subject` VALUES (120, 'Painting', 'ND'); INSERT INTO `subject` VALUES (121, 'Printing', 'NE'); INSERT INTO `subject` VALUES (122, 'Decorative Arts, Applied Arts', 'NK'); INSERT INTO `subject` VALUES (123, 'Arts in General', 'NX'); INSERT INTO `subject` VALUES (124, 'Visual Arts (General)', 'N'); INSERT INTO `subject` VALUES (125, 'Classical Languages and Literature', 'PA'); INSERT INTO `subject` VALUES (126, 'Modern European Languages, Celtic Languages and Literature', 'PB'); INSERT INTO `subject` VALUES (127, 'Romance Languages', 'PC'); INSERT INTO `subject` VALUES (128, 'Old Germanic, Scandinavian', 'PD'); INSERT INTO `subject` VALUES (129, 'English', 'PE'); INSERT INTO `subject` VALUES (130, 'Dutch, German', 'PF'); INSERT INTO `subject` VALUES (131, 'Slavic', 'PG'); INSERT INTO `subject` VALUES (132, 'Finnish', 'PH'); INSERT INTO `subject` VALUES (133, 'Oriental, Semitic', 'PJ'); INSERT INTO `subject` VALUES (134, 'Indo-Iranian', 'PK'); INSERT INTO `subject` VALUES (135, 'East Asian, African, Oceania', 'PL'); INSERT INTO `subject` VALUES (136, 'Indigenous American, Artificial Languages', 'PM'); INSERT INTO `subject` VALUES (137, 'Literary History and Collections', 'PN'); INSERT INTO `subject` VALUES (138, 'Romance Literature', 'PQ'); INSERT INTO `subject` VALUES (139, 'English Literature', 'PR'); INSERT INTO `subject` VALUES (140, 'American Literature', 'PS'); INSERT INTO `subject` VALUES (141, 'Germanic Literature', 'PT'); INSERT INTO `subject` VALUES (142, 'Childrens Literature', 'PZ'); INSERT INTO `subject` VALUES (143, 'General Linguistics', 'P'); INSERT INTO `subject` VALUES (144, 'Mathematics, Computer Science', 'QA'); INSERT INTO `subject` VALUES (145, 'Astronomy', 'QB'); INSERT INTO `subject` VALUES (146, 'Physics', 'QC'); INSERT INTO `subject` VALUES (147, 'Chemistry', 'QD'); INSERT INTO `subject` VALUES (148, 'Geology', 'QE'); INSERT INTO `subject` VALUES (149, 'Natural History, Biology', 'QH'); INSERT INTO `subject` VALUES (150, 'Botany', 'QK'); INSERT INTO `subject` VALUES (151, 'Zoology', 'QL'); INSERT INTO `subject` VALUES (152, 'Human Anatomy', 'QM'); INSERT INTO `subject` VALUES (153, 'Physiology', 'QP'); INSERT INTO `subject` VALUES (154, 'Microbiology', 'QR'); INSERT INTO `subject` VALUES (155, 'General Science', 'Q'); INSERT INTO `subject` VALUES (156, 'Public Aspects of Medicine', 'RA'); INSERT INTO `subject` VALUES (157, 'Pathology', 'RB'); INSERT INTO `subject` VALUES (158, 'Internal Medicine', 'RC'); INSERT INTO `subject` VALUES (159, 'Surgery', 'RD'); INSERT INTO `subject` VALUES (160, 'Ophthalmology', 'RE'); INSERT INTO `subject` VALUES (161, 'Ear, Nose, and Throat', 'RF'); INSERT INTO `subject` VALUES (162, 'Gynecology, Obstetrics', 'RG'); INSERT INTO `subject` VALUES (163, 'Pediatrics', 'RJ'); INSERT INTO `subject` VALUES (164, 'Dentistry', 'RK'); INSERT INTO `subject` VALUES (165, 'Dermatology', 'RL'); INSERT INTO `subject` VALUES (166, 'Therapeutics, Pharmacology', 'RM'); INSERT INTO `subject` VALUES (167, 'Pharmacy', 'RS'); INSERT INTO `subject` VALUES (168, 'Nursing', 'RT'); INSERT INTO `subject` VALUES (169, 'Botanic, Eclectic Medicine', 'RV'); INSERT INTO `subject` VALUES (170, 'Homeopathy', 'RX'); INSERT INTO `subject` VALUES (171, 'Chiropractic, Osteopathy, Mental Healing', 'RZ'); INSERT INTO `subject` VALUES (172, 'General Medicine', 'R'); INSERT INTO `subject` VALUES (173, 'Plant Culture', 'SB'); INSERT INTO `subject` VALUES (174, 'Forestry', 'SD'); INSERT INTO `subject` VALUES (175, 'Animal Culture', 'SF'); INSERT INTO `subject` VALUES (176, 'Aquaculture', 'SH'); INSERT INTO `subject` VALUES (177, 'Hunting', 'SK'); INSERT INTO `subject` VALUES (178, 'Agriculture (General)', 'S'); INSERT INTO `subject` VALUES (179, 'General Engineering, General Civil Engineering', 'TA'); INSERT INTO `subject` VALUES (180, 'Hydraulic and Ocean Engineering', 'TC'); INSERT INTO `subject` VALUES (181, 'Environmental Technology, Sanitary Engineering', 'TD'); INSERT INTO `subject` VALUES (182, 'Highway Engineering', 'TE'); INSERT INTO `subject` VALUES (183, 'Railroads', 'TF'); INSERT INTO `subject` VALUES (184, 'Bridge Engineering', 'TG'); INSERT INTO `subject` VALUES (185, 'Building Construction', 'TH'); INSERT INTO `subject` VALUES (186, 'Mechanical Engineering', 'TJ'); INSERT INTO `subject` VALUES (187, 'Electrical Engineering, Nuclear Engineering', 'TK'); INSERT INTO `subject` VALUES (188, 'Motor Vehicles, Aeronautics, Astronautics', 'TL'); INSERT INTO `subject` VALUES (189, 'Mining, Metallurgy', 'TN'); INSERT INTO `subject` VALUES (190, 'Chemical Technology', 'TP'); INSERT INTO `subject` VALUES (191, 'Photography', 'TR'); INSERT INTO `subject` VALUES (192, 'Manufactures', 'TS'); INSERT INTO `subject` VALUES (193, 'Arts and Crafts, Handicrafts', 'TT'); INSERT INTO `subject` VALUES (194, 'Home Economics', 'TX'); INSERT INTO `subject` VALUES (195, 'General Technology', 'T'); INSERT INTO `subject` VALUES (196, 'Armies: Organization, Description, Facilities, etc.', 'UA'); INSERT INTO `subject` VALUES (197, 'Military Administration', 'UB'); INSERT INTO `subject` VALUES (198, 'Maintenance and Transportation', 'UC'); INSERT INTO `subject` VALUES (199, 'Infantry', 'UD'); INSERT INTO `subject` VALUES (200, 'Cavalry, Armored and Mechanized Cavalry', 'UE'); INSERT INTO `subject` VALUES (201, 'Artillery', 'UF'); INSERT INTO `subject` VALUES (202, 'Military Engineering, Air Forces, Air Warfare', 'UG'); INSERT INTO `subject` VALUES (203, 'Other Services', 'UH'); INSERT INTO `subject` VALUES (204, 'Military Science (General)', 'U'); INSERT INTO `subject` VALUES (205, 'Navies: Organization, Description, Facilities, etc.', 'VA'); INSERT INTO `subject` VALUES (206, 'Naval Administration', 'VB'); INSERT INTO `subject` VALUES (207, 'Naval Maintenance', 'VC'); INSERT INTO `subject` VALUES (208, 'Naval Seamen', 'VD'); INSERT INTO `subject` VALUES (209, 'Marines', 'VE'); INSERT INTO `subject` VALUES (210, 'Naval Ordnance', 'VF'); INSERT INTO `subject` VALUES (211, 'Minor Services of Navies', 'VG'); INSERT INTO `subject` VALUES (212, 'Navigation, Merchant Marine', 'VK'); INSERT INTO `subject` VALUES (213, 'Naval Engineering, Shipbuilding', 'VM'); INSERT INTO `subject` VALUES (214, 'Naval Science (General)', 'V'); INSERT INTO `subject` VALUES (215, 'Library Science and Information Resources', 'Z'); CSS file(s) --------------------------------------------------------------------- CSS from /styles/master.php ... /* =global default settings ----------------------------------------------- */ html, body, form, fieldset {margin:0;padding:0;font:100%/120% Verdana,Arial,Helvetica,sans-serif;} h1, h2, h3, h4, h5, h6, p, pre, blockquote, ul, ol, dl, address {margin:1em 0;padding:0;} li, dd, blockquote {margin-left:1em;} /* =element-specific settings ----------------------------------------------- */ body {line-height:1.6em;color:#333;background:#E5E5E5 url("../img/bodystripe.gif") 0 100% repeat-x;} h1 {font:1.3em georgia,times,serif;color:#333;margin:15px 0 0 0;} h2 {font:1.1em georgia,times,serif;color:#444;margin:0 0 15px 0;} h2.mainHeading {font:1.3em georgia,times,serif;padding:15px 0 2px 0;border-bottom:1px dotted #333;} h3 {font:1.0em georgia,times,serif;color:#444;margin:0 0 15px 0;} /* =links ----------------------------------------------- */ a, a:visited {color:#2b4268;text-decoration:none;border-bottom:1px solid #2b4268;} html>body a, html>body a:visited {border-bottom-style:dotted;} a:hover, a:active {color:#933;border-color:#b55;border-bottom-style:solid;} a img {border:none;} /* =forms ----------------------------------------------- */ form label {cursor:pointer;font-size:1.3em;color:#2b4268;} fieldset {border:none;} input, select, textarea {width:25em;font:1.0em verdana,arial,sans-serif;padding:3px;margin:3px;border:1px solid gray;border-color:#AAA #DDD #DDD #AAA;} form#searchbox {margin:5px 0;border-top:1px solid #ccc;border-right:2px solid #ccc;border-bottom:2px solid #ccc;border-left:1px solid #ccc;background-color:#F2F2F2;text-align:center;} input:focus {border:1px #000 solid;} input.submit {width:10em;font-size:.90em;color:#2b4268;border:1px solid black;border-color:#aaa #333 #333 #aaa;} /* =miscellaneous and special global settings ----------------------------------------------- */ p.skipNav {position:absolute;left:-1000em;width:20em;} p.download {text-align:right;margin-right:4%;font-size:.8em;line-height:1.2em;} p.control {font-size:.8em;} .zip {width:20px;padding:0 23px 0 0;background:url("../img/zip.gif") no-repeat right;} .expand {line-height:12px;background:url("../img/expand.gif") 0 50% no-repeat;padding-left:16px;} .refresh {line-height:14px;background:url("../img/refresh.gif") 0 50% no-repeat;padding-left:18px;} /* =mastHead ----------------------------------------------- */ div#mastHead {background:#F3F3CC url("../img/mastripe.gif") 0 35px repeat-x;height:101px;} #mastHead img {position:absolute;top:28px;left:4%;margin-left:-5px;border:none} #mastHead p {background:#2b4268;color:#fff;padding:0 6% 3px 0;margin:0;font-size:0.75em;text-align:right;} #mastHead p a {background:#2b4268;color:#fff;text-decoration:underline;} /* =contain ----------------------------------------------- */ div#contain {width:65em;margin:0 auto;background:#fff;} /* =main ----------------------------------------------- */ div#main {width:63em;margin:0 auto;padding:1em .5em 2em .5em;} /* =content ----------------------------------------------- */ div#content {width:95%;margin:0 auto;} #content p.warn {color:red;} /* =result ----------------------------------------------- */ div#result {margin:23px 30px 10px 30px;padding:0;text-align:center;} #result dl {margin:5px 0;padding:0;background:#ffffdf;border:1px dotted #c5c5ad;} #result dt {margin:0;padding:5px 0;font-weight:bold;} #result dd {text-align:left;margin:0 0 5px 10px;padding:0 10px 0 50px;background:url("../img/arrow.gif") no-repeat 30px 3px;} #result h2.warn {color:red;} /* =details ----------------------------------------------- */ div#details {margin-top:30px;} /* =footer ----------------------------------------------- */ div#footer {clear:both;width:100%;padding:.5em 0;padding-bottom:33px;background:url("../img/bkgrd-footer.gif") top left repeat-x;} #footer ul {margin:0;padding:0;font:0.80em "Trebuchet MS",Verdana,sans-serif;text-align:center;} #footer ul li {display:inline;list-style:none;padding:0 0.75em;} #footer ul li a {border:none;}