472,967 Members | 1,922 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,967 software developers and data experts.

Background image

I took a photo 3600x2400 (8mg) into photoshop and reduce it to 250x188
for a background and to load faster, but it only coming up either as a
repeat or a small box.

I use this:

<style type="text/css">
<!--
body {
background-image: url ("parklawn1.jpg");
background-color:transparent;
background-repeat: no-repeat;
}
-->
</style>

I added background-position: 100% 100%; with no luck and it puts in
the bottom cor.

Even replace " with ' and no different

If I increase the photo in photoshop to 500x366, still does not come
out as a full page.

What do I have to do to get it to fit full page?

Thanks
Mar 9 '08 #1
1 1749
In article
<4c**********************************@u69g2000hse. googlegroups.co
m>,
drum118 <dr*****@hotmail.comwrote:
I took a photo 3600x2400 (8mg)
Milligrams? This an underwater camera?
into photoshop and reduce it to 250x188
for a background and to load faster, but it only coming up either as a
repeat or a small box.

I use this:

<style type="text/css">
<!--
body {
background-image: url ("parklawn1.jpg");
background-color:transparent;
background-repeat: no-repeat;
}
-->
</style>

I added background-position: 100% 100%; with no luck and it puts in
the bottom cor.

Even replace " with ' and no different

If I increase the photo in photoshop to 500x366, still does not come
out as a full page.

What do I have to do to get it to fit full page?
You would have to know exactly how big the browser window is
going to be. A background picture is - size-wise - the dumbest of
the dumb. It does not stretch and simply sits there where you
say. To make a stretchy image there are two different strategies:

(1) Use an image that does look ok when repeated. A plain bit of
blue of 1px by 1px will simply fill whatever the size the browser
is in whatever direction you say, horizontal or vertical. The
default is both.

(2) Use an <img src="" ... and give the dimensions as
percentages (of the containing box, might be a div which is
dimensioned to fill the whole window)

--
dorayme
Mar 9 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: erik | last post by:
Is it posssible to inherit the previous pages (parent pages) background image? Is there a script out there I could look at? Thanks
2
by: Markus Mohr | last post by:
Hi, everyone, I have a special problem: For every monitor resolution in 200 pixel steps from 800 to 1600 pixels I have an image to be shown as centered background-image. Those images all...
27
by: Kevin Yu | last post by:
When I declare on HTML page <LINK href="mycss.css" type="text/css" rel=stylesheet /> .... <BODY class=myclass> in mycss.css BODY { FONT-WEIGHT: bold; FONT-SIZE: 12px; FONT-FAMILY:...
13
by: Giggle Girl | last post by:
Hi there, I need to use a background image in a TR that does NOT restart everytime it hits a TD. Can it be done? Specifically, if you set a background image for an entier table, now mater how...
7
by: Nilesh | last post by:
I am using background-image attribute in a CSS file and linking the CSS file to aspx page. But strangly, background-image attribute is not working for relative URL. e.g. If I apply following css...
3
by: Viken Karaguesian | last post by:
Hello all, I need somehelp with background tiling. I have a sneaking suspicion that what I want to do is not possible, but I'll ask anyway. :>) First some background: Here's the site in...
2
by: Patrick | last post by:
Hi All, I am trying more and more to incorporate CSS into my work here. I have currently been playing around with fluid design and tableless layout. Currently I am trying to make a background...
6
by: Rob | last post by:
Hello, I'm sure this has come up before. I have need for a collection of all elements/objects in an HTML document that have any kind of an attribute (HTML or CSS) that is making use of a URL to...
16
by: stevedude | last post by:
CSS newbie again. I have a problem trying to get coffee mug images within anchor tags to center with my link text for a vertical list menu. If I use the horizontal/vertical properties of...
2
by: thephatp | last post by:
I'm having a problem with IE rendering correctly. I'm experimenting with using all div's in my pages now, and I'm not very familiar with the quirks of IE. I have created a sample page, and I'm...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
4
NeoPa
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
3
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...
0
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.