Tell me more ×
SmugMug Stack Exchange is a question and answer site for SmugMug developers and end users. It's 100% free, no registration required.

I would like to make my site to have the similar style of these sites:

http://www.darbym.com/

http://www.jenarmstrongphotography.com/

I want everything to be inside a container and the background image will be stretchy.

This image shows what I would like to achieve.

Can I just create a simple box that has all the contents of smugmug inside it? I really have no idea where to start, and when I search I don't know if I am using the right terminology.

Thanks

Stephen

share|improve this question

2 Answers

There are two types of "stretchy" that a SmugMug site can exhibit (in general). These are:

1) The actual contents of the page (i.e. the text, etc) expand to fill the entire screen (so that you make the most use of the available screen real estate, depending on a visitors screen resolution).

2) A stretchy background image, that essentially looks the same regardless of the visitors screen resolution.

The examples you provided show Option #2, with the background image repeating in a seamless fashion. The trick to doing this is fairly simple - you choose a background image that can repeat and still look good (i.e. a pattern/texture). In the second website example you provided, the background image can be seen here:

http://jenarmstrongphotography.smugmug.com/Other/Customization-Files/bg/1036725198_g4jyL-O.jpg

The code they used to call that background image was placed in the Advanced Customizer > CSS section, and looks like this:

body { 
font-family: 'Josefin Sans Std Light', arial, serif !important;
font-size:16px !important;
color:#333333 !important;
background:#FFFFFF url('http://www.smugmug.com/Other/Customization-Files/bg/1036725198_g4jyL-O.jpg') !important;
}

So, this background image will repeat as many times necessary both vertically, and horizontally - to fill all available space. And because it's a pattern/texture, the visitor will not really be able to tell that this is occurring (and it will give it the effect of being the 'perfect' size).

The other pieces of their site are just the standard Homepage Layout boxes (i.e. Single Photo/Video, Galleries, etc) that have been customized through the Advanced Customizer.

If you're looking to do this, I'd strongly suggest using Firefox with the Firebug plug-in, as reverse-engineering will be necessary to figure out what's styling each element on your page.

And in addition to stackexchange, you can also find excellent customization resources on dgrin:

DGrin Customization Forums

share|improve this answer
I have been trying to no avail, no answers over there yet. I understand the background part. It is just how to create the static part is that I am having problems with. If you look at my homepage now I controlled the width of the boxes but I still have a margin under the navbar that I can't seem to get rid of. What are the basics to get everything below the navbar into a container that doesn't change for all the pages? I use firebug, web developer and all of those, and due to my limited knowledge I am working on it, but thought there might be an easy way to make it happen. – Stephen Kramer Apr 18 '12 at 13:43
stephenallanphotography.smugmug.com/photos/i-JHPp2tP/0/O/… this is what I am looking for. I would like a plain square box below that is a constant size and everything minus the smugmug footer to be in it. Possible? – Stephen Kramer Apr 18 '12 at 13:44
I got the square part of the box down, and thought i got rid off the gap, it showed as the stylebar, but that was only on smugmug style pages. I am at a loss as to how to get rid of on the other ones. Thinking it over and looking closer with the web developer, my question might be simpler. Can I add a white container around the smugmug style galleries? – Stephen Kramer Apr 18 '12 at 15:05

You'll need a tool such as Firebug for Firefox to look at which div ids/classes you'll need to modify to create that look. On your Homepage, for instance, you'd need to add:

#homepage {background:#ffffff !important;}

Other pages will require additional adjustments - but you'll need something like Firebug to be successful at this.

share|improve this answer
From looking at the sites people seem to have a division that holds all the other standard smugmug divisions inside. I can't get that to work. Only divisions in the header seem to work. If you look at my site now. I want all the content, whether that smugmug generates to go inside the division I created. Or do I have to modify each type/page style to make it uniform? – Stephen Kramer Apr 18 '12 at 17:22

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.