Tiling background (all pages)

Tali / 2009-05-19 00:07:45   

hey guys, css newbie here.
is there a way to create a background tile that is on every page (not just the homepage), with a white nav and white content area over the top? Like 2 containers?
Please see this image i've mocked up to see what i mean...

my test site: taligalon.com/indexhibit

any help much appreciated, thanks! :)

Tali / 2009-05-19 02:49:44   

oops - this was meant to go under customize

Tali / 2009-05-19 02:50:30   

oops - this was meant to go under customize

arsondpi / 2009-05-19 05:15:05   

yes there is...

body#section_id_1 { background: url( dotted_little_image_url )
body#section_id_2 { background: url( polka_dotted_little_image_url )
body#section_id_3 { background: url( image_with_naked_people_running_around_url )
etc.

...and this will affect the background of each of your sections...

Try something like this:

  1. body { background: url( image_with_naked_people_running_around_url ); }

...which will make all your pages have the same background image.
Delete background-color: #fff; from your #menu and add:

  1. .container {
  2. background: #fff;
  3. margin-bottom:25px;
  4. padding:20px;
  5. }

Tali / 2009-05-19 12:18:43   

Thanks for your help arsondpi!

I can't seem to figure it out tho...
i do want the same dotty img on all pages.
so i added:
1. background: myurl.gif;

inside the body tag in the style.css... but it seemed to make no difference. any idea where i went wrong?
pardon my total newbiness :|

Tali / 2009-05-19 12:22:53   

PS. my CSS file is here

lemathieu A / 2009-05-19 13:42:31   

add "repeat" to your code

Tali / 2009-05-19 14:48:28   

of course! d'oh. thanks lemathieu :)

Tali / 2009-05-19 15:00:11   

thanks for your help guys,
I'm still trying to figure out this bit here:

1. .container {
2. background: #fff;
3. margin-bottom:25px;
4. padding:20px;
5. }

...and how to get my menu and my content area into white blocks.
any more tips?

arsondpi / 2009-05-19 15:25:02   

...didn't that do the trick? It ought to... I hope you deleted the background colour from your #menu...

Tali / 2009-05-20 00:05:02   

Hey arsondpi, it kind of worked
However, if you look at any of of my exhibits which contain just a header and an image (any under 'illustration' for instance), the white container doesn't stretch down to encompass the image.
any ideas?? What do i need to change?

by the way - thanks so much for all your help so far, you guys are awesome! :)

arsondpi / 2009-05-20 08:59:46   

...try this out...

Open exhibit.no_thumbs_no_captions.php (if you're using the no captions plugin) find line 75-76 and change them to:

  1. return ".nothumb { padding: 0 1px 1px 0;  }
  2. .nothumb img { margin: 0; }";

Save the plugin as exhibit.no_thumbs_no_captions_no_float.php and reupload.

Tell us how it goes...

[Note: you're losing the float: left; capability - search the web for what his does or enlarge/shrink the window using the normal plugin with a couple of images in your exhibit, to undestand what sort of behaviour you get with float:left;...]

Tali / 2009-05-20 13:48:38   

it worked! thanks arsondpi!
I'm going to use slideshow exhibition format as well, so i'm guessing i'll have to alter it in the same way?

thanks for your help guys. you're great! :)

Tali / 2009-05-20 23:56:55   

ok, i've had a look at exhibit.slideshow.php
but i can't figure out what to change, so that the white area is long enough to contain the slideshow images... it seems to only expand around the text.
any ideas?

Tali / 2009-05-22 08:10:36   

still can't figure it out.
Does anybody know if it's possible to change the slideshow format in the same way?

check out the link here to see what i mean.
I'm not sure how to stretch the white bit in the content area so it wraps around the slideshow images.

Tali / 2009-05-24 02:27:32   

bump, one more try... anybody know if what i want to do is possible?

iwakami / 2009-05-24 09:40:46   

try styling the img-bot on the slideshow plugin

Tali / 2009-05-24 13:26:36   

what do i change iwakami? i tried a few things to no avail.. am a bit of a newbie.. sorry! :(

iwakami / 2009-05-24 14:00:31   

you can style inside the .img-bot { with margins, widths, padding, a white background for example, and other CSS rules }.

in this case i was clearly thinking about adding a white background, some padding and negative margins to position the images... but then you'd have a problem with different image widths, and i don't know what IE thinks about this... also you could add a width rule then all the images would be resized to that specific width of the text.

... assuming that it would resize the pics maintaining some viewable quality....

Tali / 2009-05-25 06:38:10   

thanks iwakami..
in the end i figured it out thanks to this thread

The block retains the height of the first image in the slideshow.. but that's no huge deal.. i just have to make sure my img heights are not too disparate.

thanks for your help everyone!
this forum rocks.

Tali / 2009-05-26 04:22:53   

hrmmm.. just realised that wasn't the solution i was looking for, as it sets a fixed height to the block.
from searching around, i see other people have had the same issue with slideshow, but i couldn't find any solutions.
Too bad - might need to use click/switch instead...

But i do like the fade, and the next/prev buttons..
is there a version of click switch which retains the buttons?

This thread has been closed, thank you.