Missatges enviats per David Scotson

Replace each occurance of & (an ampersand) with it's encoded equivalent & so

<a href="help.php?file=formatgift.html&module=quiz">Mer info om "GIFT"-formatet</a>

becomes

<a href="help.php?file=formatgift.html&amp;module=quiz">Mer info om "GIFT"-formatet</a>

I think the short answer is that you can't. You can center a paragraph, but as a block element you'll need to specify a width for the arbritrary text to be flowed into as in this bluerobot example or it will simply take up the whole width available. You can specify the width in ems if it's size in relation to text is more important than in relation to the screen.

However, if you knew that the text was so short that it would never break onto another line then a span element could be used to wrap just the text, but if it spills onto a second line you'll get 2 boxes instead of one.

Some quick testing suggests that, if the box wrapping tightly to the text is essential then you could ensure it stays on one line by using a span and replacing all spaces with &nbsp; though this will almost certainly break (probably by disappearing off the side of the screen) once you go above a certain number of words or so.

p.notifyproblem {
    text-align: center;
}
span.problemtext {
    border: thin solid black;
    padding: 10px;
    background-color: #FFFFFF;
    color:#660000;
}

Moodle in English -> Themes -> Font Size Problem -> Re: Font Size Problem

per David Scotson -

The problem code is:

<font size="-1"><font size="3"><b>Adam Lowe</b></font></font>

Firefox and IE are inconsistent in their use of keyword based font sizes. In fact I believe that different versions of IE, and the same version of IE processing different pages, can be inconsistent so that's an entirely seperate problem.

putting something ugly like this in the styles should work to change the size of the user's name:

td.userinfoboxsummary font font { font-size:  } 

or, if you also want to overrule the hard-coded bold tag use this instead:

td.userinfoboxsummary font font b { font-size:  } 

Moodle in English -> Lounge -> Is anyone Podcasting? -> Re: Is anyone Podcasting?

per David Scotson -

I've never actually used a proper Podcasting application but I have been listening to the downloads of In Our Time available as part of the BBC's podcasting experiment. Fascinating stuff, this weeks is:

THE MIND AND BODY PROBLEM At the start of Descartes' Sixth Meditation he writes: "there is a great difference between mind and body, inasmuch as body is by nature always divisible, and mind is entirely indivisible. For when I consider the mind, or myself in so far as I am merely a thinking thing, I am unable to distinguish many parts within myself; I understand myself to be something quite single and complete. Although the whole mind seems to be united to the whole body, I recognize that if a foot or an arm or any other part of the body is cut off nothing has thereby been taken away from the mind". This thinking is the basis of what's known as 'Cartesian dualism', Descartes' attempt to address one of the central questions in philosophy, the mind/body problem: is the mind part of the body, or the body part of the mind? If they are distinct, then how do they interact? And which of the two is in charge? Contributors:Anthony Grayling, Reader in Philosophy at Birkbeck, University of London, Julian Baggini, editor of The Philosophers' Magazine,Sue James, Professor of Philosophy at Birkbeck, University of London. Making this MP3 available is an experiment. We value your thoughts about this trial, and would appreciate feedback at: http://www.bbc.co.uk/radio4/history/inourtime/mp3.shtml#feedback

I'll just put the direct link to the audio as text in case Moodle's flash player tries loading the full two hours:

Icons accompanying a text link (either in the flow of text or in lists) should definately use this method.

I'm not so sure about stand alone icons with no accompanying text, as with this method there is no equivalent of the alt attribute text that gets substituted in non-visual browsers for img tags.

You might be able to do some variation of the Farhner Image Replacement technique to get the background image without text on visual browsers and vice-versa for non-visual browsers but a quick tour of the likely suspects shows no similar technique in use for small (e.g. 16x16 pixel) icons rather than larger header text images.

Actually, Doug Bowman of Stop Design uses such a thing for his permalinks (the little document icon next to the date under each story blurb). However, he uses display:none to hide the link text, which I believe is the primary reason that the FIR technique is considered inaccessible. Perhaps one of the other FIR variants that don't use display:none could be adopted e.g. some use margins to push text completely off the screen. These other techniques also dispense with the semantically useless extra span that the basic FIR introduces.

(Slightly off-topic: I'm not the world's biggest fan of using Flash for it's own sake, but when I discovered the FIR-related sIFR technique , I have to admit I thought the Flash wizards here at Moodle.org could create some really whizzy themes if that was supported in the XHTML)