Jump to content

i tired too using code someone gave me on here and it didnt work (maybe i just dont know what to put after URL?)

 

i looked on w3school and that didnt help or work. how do i use an image that is online? and how do i put the code?

 

a picture not a color.

 

Link to comment
https://linustechtips.com/topic/579946-how-do-you-make-a-background-in-css/
Share on other sites

Link to post
Share on other sites

body { 
  background: url(/* Your image URL */) no-repeat center center fixed; 
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
}

 

I am good at computer

Spoiler

Motherboard: Gigabyte G1 sniper 3 | CPU: Intel 3770k @5.1Ghz | RAM: 32Gb G.Skill Ripjaws X @1600Mhz | Graphics card: EVGA 980 Ti SC | HDD: Seagate barracuda 3298534883327.74B + Samsung OEM 5400rpm drive + Seatgate barracude 2TB | PSU: Cougar CMX 1200w | CPU cooler: Custom loop

Link to post
Share on other sites

 

5 minutes ago, Hazy125 said:

body { 
  background: url(/* Your image URL */) no-repeat center center fixed; 
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
}

 

humm that didnt work last time but now it did, i must of fucked it up before.

 

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×