Serverguide HTML not centered

Bug #1159171 reported by Doug Smythies
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu Server Guide
Fix Released
Undecided
Doug Smythies

Bug Description

The serverguide HTML is not centered on the web page, and therefore is inconsistent with all other Ubuntu official help web pages.
It is on the left of the page. I thought is might be related to differences between C.css (used by the dekstop help) and en.css (used by the serverguide), but so far haven't been able to figure it out.

The older "brown" theme (changed about a year ago) was centered.

Any hints as to where to look?

Revision history for this message
Doug Smythies (dsmythies) wrote :

The web pages that are properly centered start with these lines:

<!DOCTYPE html>
<html lang=en>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

The serverguide html pages start with these lines:

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

If I manually add the line:

<!DOCTYPE html>

to the start of a serverguide HTML page, then it centers properly, both for a new load and a refresh type load.
However, if I then take that line back out, loading the page via refresh will stay centered whereas a new load will go back to uncentered and to the left. (???)

I have yet to figure out the root location that leads to what is written here. The desktop ubuntu.xsl and serverguide ubuntu.xsl are identical in the <html> area.

Possibly, rendering and interpretation of <!DOCTYPE> is brwoser dependent.

Revision history for this message
Doug Smythies (dsmythies) wrote :

In the case of the desktop help, the lines in question seem to be added to the html pages as a post process after the yelp build step. An excerpt from the Makefile is attached.

Changed in serverguide:
assignee: nobody → Doug Smythies (dsmythies)
status: New → In Progress
Changed in serverguide:
status: In Progress → Fix Committed
Changed in serverguide:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.