[PATCH] XHTML validity fixes: remove border attribute, span->div

Nis Martensen nis.martensen at web.de
Thu Nov 15 12:46:29 PST 2007


Use the style sheet to remove the border around image links.

The title is outside any block level element. Therefore span
is not valid here, use div instead.
---
 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 9242c47..793721f 100644
--- a/src/local.css
+++ b/src/local.css
@@ -15,6 +15,10 @@ h1, .header, #footer, #title {
     padding-bottom: 1em;
 }
 
+img {
+	border: none;
+}
+
 h1,h2,h3,h4,h5,h6, .header, #title {
     font-family: sans-serif;
     clear: both;
diff --git a/templates/page.tmpl b/templates/page.tmpl
index ad3b3c3..f62233f 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.3.4.206.g58ba4


--9amGYk9869ThD9tj
Content-Type: text/x-diff; charset=us-ascii
Content-Disposition: attachment; filename="0003-Use-pagetemplate-plugin-and-a-new-template-for-the-i.patch"



More information about the cairo mailing list