Picture format in Moodle?

Picture format in Moodle?

by E Max -
Number of replies: 3

Hello, I would like to ad a Picture to my theme,

I can do it like this:

.divone {background-image:url([[pix:theme|image1]]);}

 

But what about format of the picture now?

How canI let say insert this terms : background-repeat:repeat-x,

background-repeat:no-repeat



Average of ratings: -
In reply to E Max

Re: Picture format in Moodle?

by Richard Oelmann -
Picture of Core developers Picture of Plugin developers Picture of Testers

Hi

Below is an example line from Mary's aardvark makeover theme

    background: #fff url([[pix:theme|core/overlay-rose]]) center top repeat-x;

The css for the image is identical to normal, it's just that moodle uses the [[pix:theme|imagename]] to put the location/name of the image into the css. If you want to use the rules as separate rules such as background-repeat: you can do that as normal too.

HTH

Richard

In reply to E Max

Re: Picture format in Moodle?

by Mary Evans -
Picture of Core developers Picture of Documentation writers Picture of Peer reviewers Picture of Plugin developers Picture of Testers

Hi,

The NORMAL way as Richard points out is to add the styles one under the other like so...

.divone {
background-image:url([[pix:theme|image1]]);
background-repeat
:repeat-x;
background-color
: transparent);
}


Or you can do this using CSS shorthand...

.divone {
background-image: transparent url([[pix:theme|image1]])repeat-x;
}

HTH
Mary

In reply to Mary Evans

Re: Picture format in Moodle?

by E Max -

Oh I overlooked it, now I see.. smile

Thank you both. this is good news ;)

Best Regards

Max