From b1951121a0b5a63463e7bb82c0429a19085def90 Mon Sep 17 00:00:00 2001 From: Dan Dascalescu Date: Mon, 30 Apr 2012 02:38:28 -0700 Subject: [PATCH] Fix issue #254. Make Galleria run out of the box. --- docs/getting_started/beginners_guide.rst | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/docs/getting_started/beginners_guide.rst b/docs/getting_started/beginners_guide.rst index 123a1430..4e860b55 100644 --- a/docs/getting_started/beginners_guide.rst +++ b/docs/getting_started/beginners_guide.rst @@ -107,12 +107,14 @@ but the simplest one is probably to just add images as HTML. Add the following markup inside the ```` tag:: -
+
+Note that we set a height for the ``
``. This is necessary for Galleria to work properly, +and you can set it via CSS rules if you'd like. If a Galleria Load a theme ============ @@ -132,7 +134,7 @@ Activate the gallery All we need to do now is to activate Galleria. Add the following script after the loadTheme function we just inserted:: - Galleria.run('#galleria'); + Galleria.run('.galleria'); As you can see, we just applied galleria to the '#gallery' container where the images are. That’s it! @@ -151,14 +153,14 @@ The complete code example: -
+