| Web Design and Hosting Creating sites, scripting, and hosting discussions. |
| Post Reply | New Thread | Subscribe |
|
|
Thread Tools |
![]() Member Since: May 27, 2008
Posts: 8
![]() |
Hi guys, i went onto this web site last day and i really liked their background.
I had a look at the source and tried to reproduce it on my website but without success... They basically put this small image that have a gradient (dark to lighter) and repeated -x on their page and you can only see the gradient on the first line of repeat... all the following images are repeated without the gradient and give this nice background... Anyway when i tried on my website repeat-x it obviously only repeat the image on -x and not al the way to the bottom of the page as i'd like. And if you do a basic repeat you can see the gradient on each image which doesn;t give the result wanted... Any ideas on how this need to be done? I guess there's a bit of Css there as i couldn't find the image path or name on the source... Many thanks Remi |
| QUOTE Thanks | |
![]() Member Since: May 23, 2008
Posts: 76
![]() Mac Specs: 2.0GHz Aluminium MacBook
|
Place your gradient image with the rest of your site images. Then edit the CSS for your body tag to include the following: body { background-image:url('images/gradientImage); background-repeat:repeat-x; } This will repeat the gradient horizontally no matter how wide the browser window is. Hope this helps! |
||||
| QUOTE Thanks | |||||
![]() Member Since: May 27, 2008
Posts: 8
![]() |
Sorry, i think something went wrong and my link dispappear...
The website is: http://torrentfreak.com/ Thanks CircularSaw, but my problem is not how to put an image horizontally, vertically or on the whole page. On this matter, it is with a particular image that they manage somehow to slightly change on the repeat option. The gradient, as you can see by saving the image, is actually ON the image itself. But even tho they managed to repeat this image on the whole page without re-getting the gradient then after (only on the first line) If you anyone could tell me how they do that it would be fantastic. Thanks Last edited by jjredox; 05-31-2008 at 12:07 PM. |
| QUOTE Thanks | |
![]() Member Since: May 23, 2008
Posts: 76
![]() Mac Specs: 2.0GHz Aluminium MacBook
|
Because PNGs allow alpha channel (trasparencies) when it is overlaid in your body background-image it will look as if it darkens towards the top. Does this make sense? |
| QUOTE Thanks | |
![]() Member Since: May 27, 2008
Posts: 8
![]() |
Hi CircularSaw, are you saying that they used 2 images?
One in a top header that would have a gradient and then one on the rest of the page without gradient? It make sense, but when you download the source of the website, nothing appear in regards with backgrounds... this is waht led me to believe that they used some sort of css or something... Thanks Remi |
| QUOTE Thanks | |
![]() Member Since: May 23, 2008
Posts: 76
![]() Mac Specs: 2.0GHz Aluminium MacBook
|
Yes jjredox, it's one way of doing it and a technique i have used before but XHTML and CSS allow you to be very creative.
I'll have a look at the site after work and see if i can work out how they have done it. Try out my suggested techniques as it requires very little code to achieve and the overhead of having to use a gradient image is tiny. Web Designer Microsoft Web Developer MacBook Owner |
| QUOTE Thanks | |
![]() Member Since: Jun 05, 2008
Posts: 5
![]() |
To Jjredox:
If you downloaded the main page's source the reason you didn't see anything containing to the background of the site is because it was linked to the css: http://torrentfreak.com/wp-content/t...k_V3/style.css Now, about the background itself it uses two images one for the header and one for the background itself. On Line 14 is the background of the whole site and Line 17 is the header's background. I will help you better if someone already hasn't when I get off of work. |
| QUOTE Thanks | |
![]() Member Since: May 23, 2008
Posts: 76
![]() Mac Specs: 2.0GHz Aluminium MacBook
|
From what Huffman has said the technique being used is exactly the one i described to you. Any other way of doing it is going to be needlessly complex.
Just overlay the gradient on the body background colour. Web Designer Microsoft Web Developer MacBook Owner |
| QUOTE Thanks | |
![]() Member Since: Oct 10, 2007
Location: Southern California
Posts: 16
![]() Mac Specs: Powerbook G4
|
|
| QUOTE Thanks | |
![]() Member Since: May 23, 2008
Posts: 76
![]() Mac Specs: 2.0GHz Aluminium MacBook
|
IE5 is around 1% of the total market share of browsers being used right now. I usually make my gradients as GIFs but anything else as PNGs as they offer a better quality in image.
If your still using IE5...UPGRADE!!! every other major browser supports PNGs properly. Web Designer Microsoft Web Developer MacBook Owner |
| QUOTE Thanks | |
![]() Member Since: Oct 10, 2007
Location: Southern California
Posts: 16
![]() Mac Specs: Powerbook G4
|
Quote:
|
|
| QUOTE Thanks | ||
![]() Member Since: May 23, 2008
Posts: 76
![]() Mac Specs: 2.0GHz Aluminium MacBook
|
Natakuzen, if only 1% of people drove with one type of fuel and 99% drove using another type of fuel, do you think it is worth supporting that 1%? Of course it's not.
It's not worth trying to support not only IE6/7 Firefox, Safari, Opera etc AND IE5 which does not render anywhere near like the others nor does it support a lot of the newer techniques and technologies. I would recommend from a professional point of view to aim to support IE6/7, Safari, Opera and Firefox. Anything else is such a small market % that it's not worth bothering with though. Web Designer Microsoft Web Developer MacBook Owner |
| QUOTE Thanks | |
| Post Reply | New Thread | Subscribe |
| Thread Tools | |
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
|
|||||||
Thread |
Thread Starter |
Forum |
Replies |
Last Post |
| A simple JavaScript calculator | mraya | Web Design and Hosting | 9 | 02-23-2009 06:16 PM |
| Playing with pics on my Mac: Simple Questions. Pls help! :) | MacNewbie | Images, Graphic Design, and Digital Photography | 4 | 10-27-2007 06:36 PM |
| Simple Pie Chart Creation? | Toahine | OS X - Apps and Games | 3 | 06-07-2006 06:00 AM |
| Simple AppleScript request... | 570thusaag | Running Windows (or anything else) on your Mac | 0 | 02-02-2006 12:33 PM |
| Simple finder hacking | trip | OS X - Operating System | 0 | 03-07-2004 10:16 AM |
All times are GMT -4. The time now is 05:28 AM.
Powered by vBulletin