#1 2007-03-29 17:54:52
- laurie_m
- Member

- From: Bega, Sapphire Coast Australia
- Registered: 2005-08-18
- Posts: 1339
- I've been thanked 30 times.
-

Gradient Height for Large Screen
G'day.
What height should I make a gradient background, to be sure it goes right to the bottom of the page on a large screen monitor? 
That is: width 1px. height ?px.
With thanks,
Laurie.
Last edited by laurie_m (2007-03-29 17:55:22)
John McDouall Stuart - Explorations in Australia
First Expedition Second Expedition Third Expedition Fourth Expedition
Offline
#2 2007-03-29 18:50:31
- ColoEagle
- Administrator

- From: Colorado, USA
- Registered: 2006-02-15
- Posts: 2109
- I've been thanked 83 times.
-

Re: Gradient Height for Large Screen
Laurie,
I recently changed my backgrounds to a gradient. I went with 1px wide and 1024 px high.
The only way to discover the limits of the possible is to go beyond them into the impossible
Attention designers and webmasters - "The Beauty of CSS"
Valid Web Designs tutorials on HTML, XHTML and CSS
Home Security Systems
Offline
#3 2007-03-29 19:28:48
- laurie_m
- Member

- From: Bega, Sapphire Coast Australia
- Registered: 2005-08-18
- Posts: 1339
- I've been thanked 30 times.
-

Re: Gradient Height for Large Screen
Thanks CE.
I've figured out another way to do it. Not original, I'm sure.
I've made the background image gradient 150px. high and made the body background colour the same as the bottom of the gradient. This way, the darker colour of the top of the gradient moves up with the page when scrolled. Suits my purpose.
Regards,
Laurie.
John McDouall Stuart - Explorations in Australia
First Expedition Second Expedition Third Expedition Fourth Expedition
Offline
#4 2007-03-30 00:30:32
- DMX
- Member

- From: Southwest, U.S.
- Registered: 2006-10-23
- Posts: 378
- I've been thanked 1 times.
-
Re: Gradient Height for Large Screen
laurie_m wrote:
Thanks CE.
I've figured out another way to do it. Not original, I'm sure.
I've made the background image gradient 150px. high and made the body background colour the same as the bottom of the gradient. This way, the darker colour of the top of the gradient moves up with the page when scrolled. Suits my purpose.
Laurie -
You beat me to it.
I use a bunch of gradients (180 px high, 1px wide) like so:
background:#eeeee4 url(../images/gradient.jpg) repeat-x top;
My FAQ page shows how it looks when the div runs a while.
I try to keep the colors pretty close to one another. Seems to look better to me anyway. and will definitely help when the image runs out and the bg color takes over if you get the drift.. 
Offline
#5 2007-03-30 00:42:24
- laurie_m
- Member

- From: Bega, Sapphire Coast Australia
- Registered: 2005-08-18
- Posts: 1339
- I've been thanked 30 times.
-

Re: Gradient Height for Large Screen
G'day DMX.
Couldn't figure what you meant by:
My FAQ page shows how it looks when the div runs a while.
Regards,
Laurie.
John McDouall Stuart - Explorations in Australia
First Expedition Second Expedition Third Expedition Fourth Expedition
Offline
#6 2007-03-30 02:36:20
- DMX
- Member

- From: Southwest, U.S.
- Registered: 2006-10-23
- Posts: 378
- I've been thanked 1 times.
-
Re: Gradient Height for Large Screen
Sorry, I was a little obtuse. Even for me 
I just meant if you want see that line of CSS at work, click the FAQ link in the header of the site in my signature. There are divs in there that are 1000 px long or whatever with the image just 180 px.
It seemed to be pretty close to what you are up to.
And from the index you can swap out the style sheets (right hand column) and see some other combinations.
If you have the gradient kind of subtle you can't tell where it lays into the background color.
It may also be obvious but the fastest way to get the right background color is to "eyedropper" the last pixel of the image for the bg color #.
Offline
#7 2007-03-30 02:49:37
- Northie
- Moderator

- From: Yorkshire, UK
- Registered: 2006-08-19
- Posts: 2578
- I've been thanked 62 times.
-

Re: Gradient Height for Large Screen
biggest screens i've ever seen are 1200 px high.
My gradients are usually 800px high and 1px wide. I also make sure that the repeat is y-only and that the background colour of the page is the same as the bottom of the gradient - this way it will never look odd.
Other tricks - using the above method make a gradient 200-300px high and another 100-200px high [same start and end colours]. Then put the shorter one as the bg image of a centrally aligned column and the longer one as the bg image of the page. This method 'frames' [ as in the word 'frame' not the html element frame] the content without using borders and i think it looks quite nice 
EDIT -
I wrote:
I also make sure that the repeat is y-only and that the background colour of the page is the same as the bottom of the gradient
should be x-only for a top-to bottom gradient, thanks to nybc for pointing it out
Last edited by Northie (2007-03-30 04:08:32)
Offline
#8 2007-03-30 03:09:19
- DMX
- Member

- From: Southwest, U.S.
- Registered: 2006-10-23
- Posts: 378
- I've been thanked 1 times.
-
Re: Gradient Height for Large Screen
I may have been barking after the wrong bunny.
My page background is static, everything else is on a gradient, usually with CSS rounded corners. I do have the kind of inverted gradient box out effect that Northie's talking about on the "product" pages, which I think looks pretty cool. It was one of those "accidents" that I kept. There have been many.
Offline
#9 2007-03-30 03:39:23
- Northie
- Moderator

- From: Yorkshire, UK
- Registered: 2006-08-19
- Posts: 2578
- I've been thanked 62 times.
-

Re: Gradient Height for Large Screen

Something you mentioned about rounded corners -
I hate rounded corners, just because I have difficulty making them, lol.
Anyway - for those who like them I've found this
http://methvin.com/jquery/jq-corner-demo.html
http://www.aspcode.net/articles/l_en-US … e_403.aspx
http://www.talrasha.com/jquery/curvycorners/demo.html
I found another one somewhere that was able to give dynamically created rounded corners to images, that would vary depending on browser size
All of the above use jquery
Offline
#11 2007-03-30 04:06:26
- Northie
- Moderator

- From: Yorkshire, UK
- Registered: 2006-08-19
- Posts: 2578
- I've been thanked 62 times.
-

Re: Gradient Height for Large Screen
nybc wrote:
Northie wrote:
biggest screens i've ever seen are 1200 px high.
My gradients are usually 800px high and 1px wide. I also make sure that the repeat is y-onlyx-only?
yep, x-only - well spotted
Sometimes i do gradients or patterns going the other way
Offline
#12 2007-03-30 09:59:28
- DMX
- Member

- From: Southwest, U.S.
- Registered: 2006-10-23
- Posts: 378
- I've been thanked 1 times.
-
Re: Gradient Height for Large Screen
Northie wrote:
Something you mentioned about rounded corners -
I hate rounded corners, just because I have difficulty making them, lol.
Anyway - for those who like them I've found this
Yeah they chewed up an afternoon or two..
Imported js and css, then you have to be careful about what's inherited and what's not and which elements you apply them too..
I do like them, because everything on the web is square. Including the rounded corners, if you read the fine print
.
Mine are built mostly with this approach:
http://www.html.it/articoli/nifty/index.html
Last edited by DMX (2007-03-30 13:54:51)
Offline
#13 2007-03-30 17:59:30
- laurie_m
- Member

- From: Bega, Sapphire Coast Australia
- Registered: 2005-08-18
- Posts: 1339
- I've been thanked 30 times.
-

Re: Gradient Height for Large Screen
Thanks Fellas, for that help.
I've got the template made for my new landscape photography project. A fair way to go yet, of course, before I'm ready to publish. 
Regards,
Laurie.
John McDouall Stuart - Explorations in Australia
First Expedition Second Expedition Third Expedition Fourth Expedition
Offline
| Never |
- Sponsored Results
|
|
