Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > Background prob!

Reply
Thread Tools

Background prob!

 
 
Leonidas Athineos
Guest
Posts: n/a
 
      03-03-2006
Hi i am new in html,and building my home page.
i want to put a pic as background.
with the following.

<style type="text/css">
body
{
background-image:
url('flagprisonllble1.jpg');
background-repeat:
no-repeat;
background-attachment:
fixed
}
</style>

and tried with this too..


<body background="flagprisonllble1.jpg">


but doesnt work!
could anyone help me please...
thanks!!

bye


 
Reply With Quote
 
 
 
 
Paul Watt
Guest
Posts: n/a
 
      03-03-2006

"Leonidas Athineos" <> wrote in message
news:du9ejm$1b0i$...
> Hi i am new in html,and building my home page.
> i want to put a pic as background.
> with the following.
>
> <style type="text/css">
> body
> {
> background-image:
> url('flagprisonllble1.jpg');
> background-repeat:
> no-repeat;
> background-attachment:
> fixed
> }
> </style>
>
> and tried with this too..
>
>
> <body background="flagprisonllble1.jpg">
>
>
> but doesnt work!
> could anyone help me please...
> thanks!!
>
> bye
>
>


Are the images in the same folder as your css/html pages? a url might help

Paul


 
Reply With Quote
 
 
 
 
Leonidas Athineos
Guest
Posts: n/a
 
      03-03-2006
hi!
Yes they are.i tried to change the pixel size,bec i thought it might
help...burt finally it didnt.
The thing is that there are actually some pictures that i can display as
backgrounds but others not

thanks for the help

"Paul Watt" <> wrote in message
news:du9frt$ebj$...
>
> "Leonidas Athineos" <> wrote in message
> news:du9ejm$1b0i$...
>> Hi i am new in html,and building my home page.
>> i want to put a pic as background.
>> with the following.
>>
>> <style type="text/css">
>> body
>> {
>> background-image:
>> url('flagprisonllble1.jpg');
>> background-repeat:
>> no-repeat;
>> background-attachment:
>> fixed
>> }
>> </style>
>>
>> and tried with this too..
>>
>>
>> <body background="flagprisonllble1.jpg">
>>
>>
>> but doesnt work!
>> could anyone help me please...
>> thanks!!
>>
>> bye
>>
>>

>
> Are the images in the same folder as your css/html pages? a url might help
>
> Paul
>



 
Reply With Quote
 
geniolatenio
Guest
Posts: n/a
 
      03-03-2006
On Fri, 3 Mar 2006 13:59:28 +0100, "Leonidas Athineos"
<> wrote:

><style type="text/css">
>body
>{
>background-image:
>url('flagprisonllble1.jpg');
>background-repeat:
>no-repeat;
>background-attachment:
>fixed
>}
></style>
>
>and tried with this too..
>
>
> <body background="flagprisonllble1.jpg">


Mmmmm, seems correct to me. Is that the correct position where your
image is on your hard disk? Is it in the same folder as the html file
you're coding?

Bye

geniolatenio
 
Reply With Quote
 
Arne
Guest
Posts: n/a
 
      03-03-2006
Once upon a time *Leonidas Athineos* wrote:

(Please, don't top post on usenet. Now corrected)

>
> "Paul Watt" <> wrote in message
> news:du9frt$ebj$...
>>
>> "Leonidas Athineos" <> wrote in message
>> news:du9ejm$1b0i$...
>>> Hi i am new in html,and building my home page.
>>> i want to put a pic as background.
>>> with the following.
>>>
>>> <style type="text/css">
>>> body
>>> {
>>> background-image:
>>> url('flagprisonllble1.jpg');
>>> background-repeat:
>>> no-repeat;
>>> background-attachment:
>>> fixed
>>> }
>>> </style>
>>>
>>> and tried with this too..
>>>
>>>
>>> <body background="flagprisonllble1.jpg">
>>>
>>>
>>> but doesnt work!
>>> could anyone help me please...
>>> thanks!!
>>>
>>> bye
>>>
>>>

>>
>> Are the images in the same folder as your css/html pages? a url might help
>>


> hi!
> Yes they are.i tried to change the pixel size,bec i thought it might
> help...burt finally it didnt.
> The thing is that there are actually some pictures that i can display as
> backgrounds but others not
>
> thanks for the help


And you are sure that the image "flagprisonllble1.jpg" really is a *.jpg
image and with that exact name? The question may sound stupid, if you
know it is. But asking anyway, because sometimes people upload images
saved as *.bmp, *.psp or something without knowing it. Also file names
are case sensitive ("flagprisonllble1.jpg" is not the same as
"Flagprisonllble1.JPG") and that also happends often.

--
/Arne

Google Group Users, read about The Usenet Improvement Project:
http://blinkynet.net/comp/uip5.html
 
Reply With Quote
 
Leonidas Athineos
Guest
Posts: n/a
 
      03-03-2006
yes,the pic name is correct..and its jpg
and i have saved it at the same folder as the index file.


bye


"geniolatenio" <> wrote in message
news:...
> On Fri, 3 Mar 2006 13:59:28 +0100, "Leonidas Athineos"
> <> wrote:
>
>><style type="text/css">
>>body
>>{
>>background-image:
>>url('flagprisonllble1.jpg');
>>background-repeat:
>>no-repeat;
>>background-attachment:
>>fixed
>>}
>></style>
>>
>>and tried with this too..
>>
>>
>> <body background="flagprisonllble1.jpg">

>
> Mmmmm, seems correct to me. Is that the correct position where your
> image is on your hard disk? Is it in the same folder as the html file
> you're coding?
>
> Bye
>
> geniolatenio



 
Reply With Quote
 
geniolatenio
Guest
Posts: n/a
 
      03-03-2006
On Fri, 3 Mar 2006 15:34:43 +0100, "Leonidas Athineos"
<> wrote:

>yes,the pic name is correct..and its jpg
>and i have saved it at the same folder as the index file.
>


Well, try this: create a new page containing this stuff:

<html>
<body background="flagprisonllble1.jpg">
test
</body>
</html>

If it works then create your style with only the background-image
thing and replace the aforementioned body tag with a <body>. Check if
it works. If it does, add all your other stuff in the CSS, one by one,
and everytime you add something go and check if the bg is still there.
Keep doing that until you see that it doesn't work. Than that's the
problem.

p.s. you can use

body { background: url(image) fixed no-repeat }

instead of what you're using.

Bye

geniolatenio
 
Reply With Quote
 
Arne
Guest
Posts: n/a
 
      03-03-2006
Once upon a time *Leonidas Athineos* wrote:
> yes,the pic name is correct..and its jpg
> and i have saved it at the same folder as the index file.
>


Well it's hard to continue the guessing game
Would you provide the URL to the page or at least to the image, that
would helpful if you like more help. Help us to help you!

--
/Arne

Google Group Users, read about The Usenet Improvement Project:
http://blinkynet.net/comp/uip5.html
 
Reply With Quote
 
Leonidas Athineos
Guest
Posts: n/a
 
      03-03-2006
yes sure, its this
http://home.tu-clausthal.de/~itla/index.html
please dont be hard on judging, i am still new here.i started learning html
and css from the web 3 days ago!


thanks for the help though!!

bye Leo




"Arne" <> wrote in message
news:...
> Once upon a time *Leonidas Athineos* wrote:
>> yes,the pic name is correct..and its jpg
>> and i have saved it at the same folder as the index file.
>>

>
> Well it's hard to continue the guessing game
> Would you provide the URL to the page or at least to the image, that
> would helpful if you like more help. Help us to help you!
>
> --
> /Arne
>
> Google Group Users, read about The Usenet Improvement Project:
> http://blinkynet.net/comp/uip5.html



 
Reply With Quote
 
Arne
Guest
Posts: n/a
 
      03-03-2006
Once upon a time *Leonidas Athineos* wrote:
> yes sure, its this
> http://home.tu-clausthal.de/~itla/index.html
> please dont be hard on judging, i am still new here.i started learning html
> and css from the web 3 days ago!
>
>
> thanks for the help though!!


It would be even better if you stop the top posting, as I allready
mentioned earlier. That is, post your reply below the content you are
replying to, after snipping off the signature part belowe the "-- " line
that you also should use as a signature delemiter.

Ok, about the page you posted the URL to. First there is a different
background image than the one you mentioned in your original post,
starting this thread.

Now you have "background-image: url('kornpaper800.jpg');" and not the
initial "url('flagprisonllble1.jpg');" and the "kornpaper800.jpg" image
shows just fine. Was this something you did recently and did you give up
on the 'flagprisonllble1.jpg'? However the image is not covering the
whole browser window, since it is set to "no-repeat".

Second, your markup is a mess, giving 24 errors in the HTML-validator
for that minimum of code and content. See the errors here:
http://validator.w3.org/check?verbos...a%2Findex.html

Among the errors is missing doctype, markup and content abowe and within
the <head> and </head> that not belong there. Yes, I know you are new in
html and that the page is "still under constraction!", but you should
try to do it right from the beginning to avoid to many problems on the
way.

The image "Prince Leo.jpg" (should be "princeleo.jpg") is not loaded to
the page, maybe it's not uploaded to the server, or the name is different?

--
/Arne

Google Group Users, read about The Usenet Improvement Project:
http://blinkynet.net/comp/uip5.html
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
DIV background-repeat background-image? For shadow effect jc ASP .Net 3 03-19-2008 04:19 PM
DIV background-repeat background-image for shadowing effect jc HTML 1 03-19-2008 02:16 PM
not able to click on background tab and backgrounds in properties to change the background. rex Computer Support 2 12-06-2006 02:26 AM
Background transparent when 'background' is used JWL HTML 4 09-26-2006 05:37 PM
Background Check - Background search - People search mason66 ASP .Net 0 07-27-2006 10:20 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57