Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Add an image

Featured Replies

Right basicly i am following theses tut's

 

http://www.w3schools.com/html/html_images.asp

 

and it says to add a back ground img i use this html code :- <body background="background.jpg">

 

but my question is where does that html code know where to look for that background pic because it dont show a pic for me.

It shows a blank area. Can anyone help me with this?

 

Thanks again

 

sound :D

There are several ways of pointing to a file/image etc.

 

../

This goes back one directory from the current file, you can keep doing it to go back further.

Example:

You are in - root -> aboutme -> resume

Your images are in - root -> images

 

../../images/background.jpg

 

-----------------------------------------------------------------------------------------

 

you can do full root url's if using / dosnt return you to root.

 

/home/username/public_html/images/background.jpg

 

-----------------------------------------------------------------------------------------

 

or relative url's ( / = from site root)

 

/images/background.jpg

 

-----------------------------------------------------------------------------------------

 

However I would advice using CSS to place your background image.

OK you have the code wrong. It should be:

 

body {
 background-image: url(../images/your_image.png);
}

  • Author

right okey then so i have to upload my image to the net 1st ye ? and it will be able to find the image ?

  • Author

also can i put the link instead of the name?? would that still work ?

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.