Gradient as background in logo area
Laurens
Registered Users Posts: 33 Big grins
Hi, I like to have a gradient in the background of my logo. In that way I can have my logo centred on top of that gradient on a site wide website, whatever browser width the viewer is looking in his browser.
Is that possible in the New Smugmug?
And if so, how do I do that?
I was thinking of a small jpg that will be repeated to fill the whole width.
Laurens
________________________
www.travelingphototeam.com
Is that possible in the New Smugmug?
And if so, how do I do that?
I was thinking of a small jpg that will be repeated to fill the whole width.
Laurens
________________________
www.travelingphototeam.com
0
Comments
So something like this. Depending on how other things are setup, you might need to include some sizes for your divs
www.joeywashburn.com
or you can use linear gradients:
http://www.w3schools.com/css/css3_gradients.asp
Images in the Backcountry
My SmugMug Customizations | Adding CSS to Your Site | SEO for the Photographer | Locate Your Page/Widget Number | SmugMug Help Desk
www.joeywashburn.com
I can't figure where I have to put that CSS. I tried to add a CSS block into the LOGO area, but that didn't work, then I tried to add a CSS block just above the Logo area.
Doing that I copied these lines:
.sm-user-ui .sm-page-content > .sm-page-layout > .sm-page-layout-region-header {
background: #e5e5e5 url('gradient-here') repeat-x;
}
But then I see the words ('gradient here'). What do I have to paste there?
In the mean time I exchanged the normal logo with a transparent one, but I miss the gradient in the background. See the attached logo.
I hope you have patience with and help me out with this.
There is another thing which I don't like, that is the gap between the menu and the photo area. Does anyone know how to get rid of that big area with nothing in it?
Thanks,
Laurens
________________________
www.travelingphototeam.com
http://www.bibleopen.org
http://www.hoddenbagh.nl
The 'gradient-here' is the URL of your gradient jpg.
Images in the Backcountry
My SmugMug Customizations | Adding CSS to Your Site | SEO for the Photographer | Locate Your Page/Widget Number | SmugMug Help Desk
OK, that makes sense. Now is my next question:
My gradient jpg is in the folder 'unlisted', the URL is http://www.travelingphototeam.com/Other/My-SmugMug-Site-Files-Do-Not/n-cFPs2
And when I click on that jpg the url is: http://www.travelingphototeam.com/Other/My-SmugMug-Site-Files-Do-Not/n-cFPs2/i-RDdJdrP/A
Is this a good link?
Laurens
http://www.bibleopen.org
http://www.hoddenbagh.nl
Images in the Backcountry
My SmugMug Customizations | Adding CSS to Your Site | SEO for the Photographer | Locate Your Page/Widget Number | SmugMug Help Desk
Thank you. The gradient is in place. But...
As you can see there are two things which are not really great.
1. There is a light grey band between the menu and the photo area. How can I get rid of that?
2. There is too much space above the logo. I changed the jpg to a less higher jpg ( I even figured how to find the new name for it - in Safari I used page source), but even with a less high jpg the result remains the same.
________________________
www.travelingphototeam.com
http://www.bibleopen.org
http://www.hoddenbagh.nl
Images in the Backcountry
My SmugMug Customizations | Adding CSS to Your Site | SEO for the Photographer | Locate Your Page/Widget Number | SmugMug Help Desk
http://www.bibleopen.org
http://www.hoddenbagh.nl
I should have mentioned that in the beginning.
Images in the Backcountry
My SmugMug Customizations | Adding CSS to Your Site | SEO for the Photographer | Locate Your Page/Widget Number | SmugMug Help Desk
The script
.sm-user-ui .sm-page-content > .sm-page-layout > .sm-page-layout-region-header {
background: #e5e5e5 url('http://www.travelingphototeam.com/photos/i-nZWh4kN/0/Ti/i-nZWh4kN-Th.png') repeat-x; height:100px;
is not working anymore.
So the background of my logo is gone and there is a big gap between the menu and the photos
Yesterday I moved the CSS block to the Footer. Tonight I uploaded 100 photos to the gallery 'Attie's best photos', they all look good (1900px wide now).
Before that upload the logo background was still good.
http://www.bibleopen.org
http://www.hoddenbagh.nl
Images in the Backcountry
My SmugMug Customizations | Adding CSS to Your Site | SEO for the Photographer | Locate Your Page/Widget Number | SmugMug Help Desk
But there is sill a big gap between the menu and the photo block
I tried to replace 'auto' by '100px' as it was, but that didn't change the appearance, so I changed it back to 'auto'.
Is there another way to remove that big gap?
http://www.bibleopen.org
http://www.hoddenbagh.nl
For starters, looks like you added a 40px top-margin on one of your boxes:
Images in the Backcountry
My SmugMug Customizations | Adding CSS to Your Site | SEO for the Photographer | Locate Your Page/Widget Number | SmugMug Help Desk
I copied the source code, but I couldn't find a script with "margin-top:40px" in it.
I don't know where to look.
Ayway I looked at all the places where I changed things, but I couldn't find it.
In fact the only script I used for the whole site is
And I used on one page this
http://www.bibleopen.org
http://www.hoddenbagh.nl
Images in the Backcountry
My SmugMug Customizations | Adding CSS to Your Site | SEO for the Photographer | Locate Your Page/Widget Number | SmugMug Help Desk
How did you know that it was on the far left side? I like to know things like that too.
When I'm working in Dreamweaver like for the Bibleopen site I tweak things in the source code, but here at Smugmug it is more difficult.
Anyway Thanks again!
http://www.bibleopen.org
http://www.hoddenbagh.nl
My settings/Layout were actually on the RIGHT, but it was a typo. Forgot though that you can have it on the left too.
I use 'Firebug' for Firefox to find the code. Glad you fixed it!
Images in the Backcountry
My SmugMug Customizations | Adding CSS to Your Site | SEO for the Photographer | Locate Your Page/Widget Number | SmugMug Help Desk