|
![]() |
Overclock.net - Overclocking.net > Software, Programming and Coding > Coding and Programming > Web Coding | |
urgent help needed with web page coding
|
||
![]() |
|
|
LinkBack | Thread Tools |
|
|
#1 (permalink) | |||||||||||||
|
Networking Nut
![]() |
im trying to do some coding on a website/page. im trying to put a picture as the sites background but it keeps tiling it but i want it to be centered and stretched. i dont want the picture to be tiled. i cant figure out what to do. ive resized the picture and everything but it keeps tiling the picture. what do i do??? heres the code for it.
/* background for the lounge */ div#pagecontent{ visibility:show!important; background-image:url("http://i637.photobucket.com/albums/uu96/djdark_2009/lovins%20coding/peaches-1.jpg")!important; background-repeat:repeat!important; background-attachment:fixed!important; background-position:center center!important; /* changes outer scroll-bars */ scrollbar-base-color:#9A2EFE; scrollbar-arrow-color:black; scrollbar-track-color:#AC58FA; scrollbar-shadow-color:#7401DF; scrollbar-lightshadow-color:#E3CEF6; scrollbar-darkshadow-color:#380B61; scrollbar-highlight-color:blue; scrollbar-3dlight-color:white;
__________________
"Come to the Blue side, we have cookies!"
|
|||||||||||||
|
|
|
|
|
#2 (permalink) | ||||||||||||||
|
Personae Non Gratae
![]()
Join Date: Feb 2009
Location: West Yorkshire, England
Posts: 3,609
Rep: 167
![]() ![]() Unique Rep: 125
Trader Rating: 4
|
background-repeat:none;
That would make it not repeat. I don't think there is a way to make it fill the page or automatically resize without jscript. Link to the page in question? And you should probably host the image on your host, not photobucket....
__________________
There's a certain series of books that EVERYONE should read Discworld.31,352++ signatures. Sign this Dedicated Servers petition for Modern Warfare 2 Quote:
|
||||||||||||||
|
|
|
|
#3 (permalink) | ||||||||||||||
|
Networking Nut
![]() |
Quote:
__________________
"Come to the Blue side, we have cookies!"
|
||||||||||||||
|
|
|
|
|
#4 (permalink) | |||||||||||||
|
Intel Overclocker
![]() |
Try deleting "background-repeat:repeat" - I think that is what is making it become tiled.
Now as for stretching it, I don't know if it'll do that automatically or not. Some additional advice: try downloading the Firebug add-on for firefox. You can look at any website (including your own) and edit the code on the fly to see what it would look like. Likewise, it has an "inspect" mode when you can move your mouse over any part of the page and it'll automatically show you the code that is referring to whatever it is that your mouse is hovering over.
__________________
3DMark Vantage: P7005
![]() We Are Gr33n Machine | STL Overclockers Club | Zune Owners Club | Mozilla FirefoxClub | Microsoft Windows Club | 8800GT Owners Club!!! | ..:Q6600 Club:..
|
|||||||||||||
|
|
|
|
|
#5 (permalink) | ||||||||||||||
|
Personae Non Gratae
![]()
Join Date: Feb 2009
Location: West Yorkshire, England
Posts: 3,609
Rep: 167
![]() ![]() Unique Rep: 125
Trader Rating: 4
|
I think what you can do is make the image a completley crazy high resolution and have it go no bigger than the resolution of the user's browser. But that requires jscript and I avoid jscript at all costs.
__________________
There's a certain series of books that EVERYONE should read Discworld.31,352++ signatures. Sign this Dedicated Servers petition for Modern Warfare 2 Quote:
|
||||||||||||||
|
|
|
|
#6 (permalink) | ||||||||||||||
|
Networking Nut
![]() |
Quote:
__________________
"Come to the Blue side, we have cookies!"
|
||||||||||||||
|
|
|
|
|
#7 (permalink) | |||||||||||||
|
Networking Nut
![]() |
how do i do that? im not familiar with jscript...
__________________
"Come to the Blue side, we have cookies!"
|
|||||||||||||
|
|
|
|
|
#8 (permalink) | |
|
New to Overclock.net
![]() |
Is this on topic? Link.
Quote:
|
|
|
|
|
|
|
#9 (permalink) | ||||||||||||||
|
Personae Non Gratae
![]()
Join Date: Feb 2009
Location: West Yorkshire, England
Posts: 3,609
Rep: 167
![]() ![]() Unique Rep: 125
Trader Rating: 4
|
Oh, yeah, it's no-repeat...not none... Opps!
__________________
There's a certain series of books that EVERYONE should read Discworld.31,352++ signatures. Sign this Dedicated Servers petition for Modern Warfare 2 Quote:
|
||||||||||||||
|
|
|
|
#10 (permalink) | |||||||||||||
|
Networking Nut
![]() |
now how do i resize the picture to like 1600x1200 so it covers the entire page?
__________________
"Come to the Blue side, we have cookies!"
|
|||||||||||||
|
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
|
|