| Graphic Design Forum Be creative. Be original. Show us what you got. Constructive criticism only |
04-18-2005, 07:32 AM
|
#1 (permalink)
|
|
Contributing Member
Join Date: 05-17-04
Location: London, United Kingdom
Posts: 1,195
Latest Blog: None
|
Background at 100%
How can I set the background image to display at 100%? I need the entire image shown once on the screen, no more than one image, no less, as the links will be placed on it.
Thanks
|
|
|
04-18-2005, 07:51 AM
|
#2 (permalink)
|
|
v7n Mentor
Join Date: 10-13-03
Location: England.
Posts: 6,199
Latest Blog: None
|
can't do it as far as i know
|
|
|
04-18-2005, 08:03 AM
|
#3 (permalink)
|
|
No Longer Here
Join Date: 09-27-03
Location: State College, PA
Posts: 9,354
Latest Blog: None
|
Quote:
|
Originally Posted by Jason
How can I set the background image to display at 100%? I need the entire image shown once on the screen, no more than one image, no less, as the links will be placed on it.
Thanks
|
Using CSS, you can easily put your background image on the page only once, but it won't stretch or shrink with the page. It will just stay its normal size. You can also specify exactly where you want it to appear.
|
|
|
04-18-2005, 11:14 AM
|
#4 (permalink)
|
|
v7n Mentor
Join Date: 02-17-05
Posts: 903
Latest Blog: None
|
You could make an image just a few pixels tall by a max width of 1600. Then set it to repeat in the css. You want it to repeat down which I think is "repeat-y" - not sure, but you can look it up. Only way I can think of to make it fit perfectly.
|
|
|
04-18-2005, 02:54 PM
|
#5 (permalink)
|
|
Contributing Member
Join Date: 10-13-03
Location: Pffffft
Posts: 8,857
Latest Blog: None
|
Quote:
|
Originally Posted by noob_0001
You could make an image just a few pixels tall by a max width of 1600. Then set it to repeat in the css. You want it to repeat down which I think is "repeat-y" - not sure, but you can look it up. Only way I can think of to make it fit perfectly.
|
I think he wants it so when you scroll, the BG doesn't move. Like if you have a picture of a sunset or something you always see that, even if you scroll down or up, the BG doesn't move at all
|
|
|
04-18-2005, 04:06 PM
|
#6 (permalink)
|
|
No Longer Here
Join Date: 09-27-03
Location: State College, PA
Posts: 9,354
Latest Blog: None
|
Quote:
|
Originally Posted by Pimpen 2010
I think he wants it so when you scroll, the BG doesn't move. Like if you have a picture of a sunset or something you always see that, even if you scroll down or up, the BG doesn't move at all
|
If that's what he wants, that's easy.
Code:
body
{
background-image: url('image.jpg');
background-attachment: fixed;
}
|
|
|
04-18-2005, 04:19 PM
|
#7 (permalink)
|
|
v7n Mentor
Join Date: 10-13-03
Location: England.
Posts: 6,199
Latest Blog: None
|
yeah i dont think that's what he wants, i think that he has made a background image with part of it being a place for some buttons to go and he wants it to appear in the same place on every browser that opens it. If that's the case, slicing would be easier.
|
|
|
04-19-2005, 02:04 AM
|
#8 (permalink)
|
|
Contributing Member
Join Date: 05-17-04
Location: London, United Kingdom
Posts: 1,195
Latest Blog: None
|
Thankyou everyone for your help! I am redesigning Robot Wars Fansite, and want a new way to display it. Instead of the links on the left, I have made a background of a workshop, then you click the books on the shelf to read the profiles, the picture on the wall for the gallery, etc. Maybe I could put the image links in a table to keep them in the right places? Is it possible that the object links could end up off their places if viewer's browsers are set at larger displays? I am optimizing the site for 600x800. I also don't want the background to below the one with links, so could I just put a notice on the front page of the site alerting people to the fact that the site is best viewed at size 600x800?
Last edited by Jason : 04-19-2005 at 02:11 AM.
|
|
|
04-19-2005, 03:18 AM
|
#9 (permalink)
|
|
Contributing Member
Join Date: 05-17-04
Location: London, United Kingdom
Posts: 1,195
Latest Blog: None
|
Here is the site. http://robotwarsfansite.atspace.com/site If you wouldn't mind, I was hoping someone could give me a screen capture to show me how it looks on your browser. I would be very greatful. Thanks. It will be coloured, and nothing but a table is inserted yet.
|
|
|
04-19-2005, 07:02 AM
|
#10 (permalink)
|
|
No Longer Here
Join Date: 09-27-03
Location: State College, PA
Posts: 9,354
Latest Blog: None
|
It repeats on mine.
If you don't want the bg to repeat, do this:
HTML Code:
<body style="background-image: url('../site/backdrop.gif'); background-repeat: no-repeat;">
Then make the div or table that you are using to hold all your content the same size as that background image. That should keep everything where you want it.
|
|
|
04-19-2005, 08:39 AM
|
#11 (permalink)
|
|
v7n Mentor
Join Date: 10-13-03
Location: England.
Posts: 6,199
Latest Blog: None
|
or maybe make it an image instead of a background and add a series of image maps over the areas that are to me buttons.
|
|
|
04-19-2005, 10:57 AM
|
#12 (permalink)
|
|
v7n Mentor
Join Date: 08-29-04
Location: Lancashire UK
Posts: 813
Latest Blog: None
|
Quote:
|
so could I just put a notice on the front page of the site alerting people to the fact that the site is best viewed at size 600x800?
|
I don't think that's a good idea, you run the risk of putting off visitors, the majority of whom will almost definetely have 1024x768 and upwards.
Just have the site fixed width and centre aligned, it's the best way for what you want to do, go for a width of around 750-770.
|
|
|
04-19-2005, 02:32 PM
|
#13 (permalink)
|
|
Contributing Member
Join Date: 05-17-04
Location: London, United Kingdom
Posts: 1,195
Latest Blog: None
|
OK, Thanks everyone! JAZZEE - Where does it repeat on yours? It does on mine to the right.
Last edited by Jason : 04-19-2005 at 02:38 PM.
|
|
|
04-19-2005, 03:05 PM
|
#14 (permalink)
|
|
No Longer Here
Join Date: 09-27-03
Location: State College, PA
Posts: 9,354
Latest Blog: None
|
It repeats down and to the side. It will repeat in all directions to fill up the entire screen because background images do that if you don't tell them not to.
|
|
|
04-20-2005, 01:21 AM
|
#15 (permalink)
|
|
Contributing Member
Join Date: 05-17-04
Location: London, United Kingdom
Posts: 1,195
Latest Blog: None
|
OK, thanks!
|
|
|
04-20-2005, 05:00 AM
|
#16 (permalink)
|
|
Contributing Member
Join Date: 05-17-04
Location: London, United Kingdom
Posts: 1,195
Latest Blog: None
|
Image angle perspective
I have added some colour to the "workshop" abnd its been going fine until now, but I don't know how to make the wood look at the angle of the flat desk, but the wood paneling on the verticles is OK. Any ideas? I have been using Microsoft Image Composer.
The URL is http://robotwarsfansite.atspace.com/site/index.htm
|
|
|
04-20-2005, 08:26 AM
|
#17 (permalink)
|
|
No Longer Here
Join Date: 09-27-03
Location: State College, PA
Posts: 9,354
Latest Blog: None
|
I don't understand the question.
|
|
|
04-20-2005, 08:50 AM
|
#18 (permalink)
|
|
Contributing Member
Join Date: 05-17-04
Location: London, United Kingdom
Posts: 1,195
Latest Blog: None
|
The angle of which the woodgrain resides.
|
|
|
04-20-2005, 09:28 AM
|
#19 (permalink)
|
|
v7n Mentor
Join Date: 10-13-03
Location: England.
Posts: 6,199
Latest Blog: None
|
skew or distort, or perspective tools on the layer of the grain.
|
|
|
04-20-2005, 05:38 PM
|
#20 (permalink)
|
|
Inactive
Join Date: 10-13-03
Location: wonderfull Copenhagen, DK
Posts: 1,256
Latest Blog: None
|
Just an idea, go into an office supply store, find the system you like and take a digital picture, the slice and use it.
That way you dont have to think about shadows, angels, lighting etc.
|
|
|
|