Hi Amy,
if the blocks use lists, then cell-specific padding could be possible too. If you are interested please look at the Discussion about Blocks.
Urs
Hi Amy,
if the blocks use lists, then cell-specific padding could be possible too. If you are interested please look at the Discussion about Blocks.
Urs
Hi David,
will you accept the challange? You will build a door to advanced CSS and XHTML for Moodle and I can't wait to go through this door to see how Moodle will look behind it
Martin, you write "every browser that supports CSS" - what browsers do we have to focus on and which have to just be able to display the pages? Can you please show us an actual browser statistic from moodle.org and perhaps an average of your hosted Moodle installations? Can others who host Moodle please show their browser statistics too. This would give a base to decide which way to go.
Martin, what would you propose? Is this kind of "experiment" easy to handle in the main branch of the CVS or should it be better done in a separate branch of the CVS?
Urs
Hi David,
when I wrote my posting I stumbled over the same question. I searched for "Is zero an even numer?" and found this article at Dr. Math.
I liked the simmilarity of two states in how computers work with 0 and 1 and the two states of emphasize on an off in rows in the tables. In the Skype pages "r1" is used for all odd lines and "r0" for all even lines as it is mathematically correct.
Best wishes
Urs
Hi,
yes, Martin, with the page ID and the group CLASS for all Moodle pages addressing the objects on the pages is much easier.
As I see it in the moment the standard layout tables could have an ID. For example just class="layout-table" to make them individually addressable with for example ".forum .layout-table td {padding:1em}" to define the distances of the objects on all the forum pages.
A big advantage in addressing data tables would be to give them an ID and CLASSes (for example if you deal with simmilar types of tables on different pages you can change the layout for all in one step via the CLASS and layout only one via the ID).
One example for the challenge to work with pages with very few IDs or CLASSes as hooks are the glossary pages. You need to code the CSS to address the background color of certain cells like:
.glossary center center td table td,
.glossary-edit center center td table td {
background-color:#FFFFFF;
}
Can you guess which parts of the page will be colored? I can't without documentation in the code.
Daryl, could you please take this aspect into your considerations for the blog. Specially because you give the blogger the chance to change blog themes as Dan posted in another thread. I like your interesting approach and am quite curious how your going to implement it.
Urs
Hi,
I just looked at the code at the skype website, where they use alternating colored rows in lists. They use:
<tr class="r1"> and <tr class="r0">
This is quite short and ok for me.
Urs