[ros-web] Little xhtml fix for the site

Andrew Scott andrew.scott at wizzer-it.com
Sat Oct 22 09:46:41 CEST 2005


Ive got a few changes to fix consistancy on the website, but i think it'll
be rather time consuming to explain how to fix them all over the ML. If
theres another way id be able to fix them id be glad to do so, if not i
guess ill just have to have a go at explaining them over the ML :P So heres
the first which is rather easy to explain.

Note: All changes are for the xhtml v1.1 version of the page.

The Google Search (Left Menu):
This section of the menu bar is missing a bottom margin and also has the
<form> tag outside the <div class="navBox"> which makes it hard to see the
<form> tags default margin (which is different sizes on different browsers).
the <form> tags margin made it 'appear' to be aligned correctly but for some
reason in Firefox 1.5 b1 & b2 is failed to do so, so the error was quite
obviouse.

Replace:
<form method="get" action="http://www.google.com/search">
 <div class="navTitle">Search</div>   
 <div class="navBox">
  <div style="text-align:center;">
   <input name="q" value=""  size="13" maxlength="80" class="searchInput"
type="text" /><input name="domains" value="http://www.reactos.org"
type="hidden" /><input name="sitesearch" value="http://www.reactos.org"
type="hidden" />
   <input name="btnG" value="Go" type="submit" class="button" />
  </div>
 </div>
</form>


With:

<!-- CHANGE STARTS HERE -->
<div class="navTitle">Search</div>
 <div class="navBox">
  <div style="text-align: center;">
   <form method="get" action="http://www.google.com/search">
    <fieldset>
     <input name="q" value="" size="13" maxlength="80" class="searchInput"
type="text" /><input name="domains" value="http://www.reactos.org"
type="hidden" /><input name="sitesearch" value="http://www.reactos.org"
type="hidden" />
     <input name="btnG" value="Go" class="button" type="submit" />
    </fieldset>
   </form>
  </div>
</div>
<p></p>
<!-- CHANGE FINISHES HERE -->

Also add the following to style.css:
/* CHANGE STARTS HERE */
form, fieldset {
	margin: 0;
	border: 0;
	padding: 0;
}
/* CHANGE FINISHES HERE */

On a site note since the page was launched 11 new errors have appeared,
though they are all quite easy to fix.
http://validator.w3.org/check?verbose=1&uri=http%3A//www.reactos.org/xhtml/e
n/index.html




More information about the Ros-web mailing list