[PATCH] Fix XHTML validity without getting a border around the logo

Nis Martensen nis.martensen at web.de
Fri Jul 6 01:53:24 PDT 2007


Do we want borders around any images at all?
---
 src/local.css       |    4 ++++
 templates/page.tmpl |    6 +++---
 2 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/src/local.css b/src/local.css
index e34744a..a019348 100644
--- a/src/local.css
+++ b/src/local.css
@@ -15,6 +15,10 @@ h1, .header, #footer, #title {
     padding-bottom: 1em;
 }
 
+div#logo img {
+	border: none;
+}
+
 h1,h2,h3,h4,h5,h6, .header, #title {
     font-family: sans-serif;
     clear: left;
diff --git a/templates/page.tmpl b/templates/page.tmpl
index 8921b9c..ff357f8 100644
--- a/templates/page.tmpl
+++ b/templates/page.tmpl
@@ -16,7 +16,7 @@
 
 <div class="header">
 <div id="logo">
-  <a href="/"><img alt="cairo" src="/cairo-banner.png" border="0" /></a>
+  <a href="/"><img alt="cairo" src="/cairo-banner.png" /></a>
 </div>
 </div>
 
@@ -31,9 +31,9 @@
 </div>
 
 <TMPL_UNLESS NAME="TOPLEVELINDEX">
-<span id="title">
+<div id="title">
 <TMPL_VAR TITLE>
-</span>
+</div>
 </TMPL_UNLESS>
 <TMPL_IF NAME="SEARCHFORM">
 <TMPL_VAR SEARCHFORM>
-- 
1.5.2.2.g7cbf2f2


--ReaqsoxgOBHFXBhH--


More information about the cairo mailing list