| | |
Background Image problem
Please support our HTML and CSS advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Thread Solved |
In my browser(opera), my background image takes up the full height off the screen, but on my friends(firefox) there appears a large black banner beneath it (black because that is the bgcolor)
I give you the css hopefully you guys can help me.
I give you the css hopefully you guys can help me.
css Syntax (Toggle Plain Text)
body { color:#C00; background-color:#000; background-image:url('../background.jpg'); background-repeat:no-repeat; background-position:top; height:100%; }
0
#2 Oct 11th, 2009
Hi there,
Could his screen perhaps be bigger?
You're using
If you'd like to repeat the image vertically use
If that's not it, could you mention the size of the background image in pixels?
Good luck,
Traevel
Could his screen perhaps be bigger?

You're using
background-repeat:no-repeat; so perhaps his background ran out of image and showed the color black instead.
If you'd like to repeat the image vertically use
background-repeat:repeat-y; If that's not it, could you mention the size of the background image in pixels?
Good luck,
Traevel
6.5 When the answer cannot be put into words, neither can the question be put into words. The riddle does not exist. If a question can be framed at all, it is also possible to answer it. ~ Ludwig Wittgenstein
0
#3 Oct 11th, 2009
No I don't want the image to be vertically repeated because this would have a verry ugly effect (it's an image, not a pattern)
I want the image to be stretched vertically is this possible?
image = 1090x587
I want the image to be stretched vertically is this possible?
image = 1090x587
0
#4 Oct 11th, 2009
With a height of 587 it's not that weird to run out of image...
Stretching a background image is only supported in CSS3.
Perhaps this might help.
Traevel
Stretching a background image is only supported in CSS3.
Perhaps this might help.
Traevel
6.5 When the answer cannot be put into words, neither can the question be put into words. The riddle does not exist. If a question can be framed at all, it is also possible to answer it. ~ Ludwig Wittgenstein
0
#5 Oct 11th, 2009
Yes i did that first, but it uses so many of my web speed, but I will give it a second try...
0
#6 Oct 11th, 2009
•
•
•
•
In my browser(opera), my background image takes up the full height off the screen, but on my friends(firefox) there appears a large black banner beneath it (black because that is the bgcolor)
I give you the css hopefully you guys can help me.
css Syntax (Toggle Plain Text)
body { color:#C00; background-color:#000; background-image:url('../background.jpg'); background-repeat:no-repeat; background-position:top; height:100%; }
this will make your background image to fill the available space of the document, in Opera Safari and IE5.5 and up...,but I can't help you with firefox. You'll need to hack it.
HTML and CSS Syntax (Toggle Plain Text)
html, body { height: 100%; Width: 100%; margin: 0; padding: 0; border: 0; background-image: url(background.png); background-repeat: no-repeat; background-size: 100% 100%; -o-background-size: 100% 100%; -webkit-background-size: 100%; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='background.png',sizingMethod='scale'); }
![]() |
Similar Threads
- Background Image Problem (HTML and CSS)
- Setting a Background Image problem (PHP)
- css background image problem (HTML and CSS)
Other Threads in the HTML and CSS Forum
- Previous Thread: dropdown menu, not working in IE6
- Next Thread: How important are robots.txt file?
| Thread Tools | Search this Thread |
appointments asp background backgroundcolor beta browser bug calendar cart cgi code codeinjection corporateidentity css design development displayimageinsteadofflash dreamweaver emailmarketing epilepsy explorer firefox flash form format google griefers hackers hitcounter hover html ide ie7 ie8 iframe image images internet internetexplorer intranet iphone javascript jpeg layout macbook maps marketshare microsoft mozilla multimedia navigationbars news offshoreoutsourcingcompany opacity opera optimization pnginie6 positioning problem scroll seo shopping studio swf swf. textcolor timecolor titletags url urlseparatedwords visual visualization web webdevelopment webform website windows7






