AD MANAGEMENT

Collapse

BEHOSTED

Collapse

Explain how can you set an image as a background on web pages?

Collapse

Collapse

Edit this module to specify a template to display.

X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Explain how can you set an image as a background on web pages?

    Explain how can you set an image as a background on web pages?

  • #2
    Originally posted by priderun View Post
    Explain how can you set an image as a background on web pages?

    get the var of the location where you want to place the image
    then add background-image="url" on the css file the insert the url of the image you want to use on your background
    Last edited by sandsnow88; 09-26-2018, 05:44 AM.
    Sandsnow88
    WELLBET
    Don't watch the Clock Do what it does Keep going"

    Comment


    • #3
      In the HTML language simply add a code.
      For e.g.
      background-image"URL")
      In the body section of HTML code.

      Comment


      • #4
        In the HTML language simply add a code.
        For e.g.
        background-image="URL"
        In the body section of HTML code.
        Last edited by MilesGeek; 10-17-2018, 03:30 AM.

        Comment


        • #5
          I think you should join the classes or watch online tutorials on youtube
          Avail 15% Discount On Cheap Coursework Writing Service UK

          Comment


          • #6
            By using HTML or by using CSS. So, I will be providing you with the code to both the cases


            In HTML, you can use the attribute background to define the background.


            In CSS, you can use the property background-image that specifies an image to use as the background of an element.
            Enterprise Security Platform | protect sensitive data | prevent data loss

            Comment


            • #7
              To set an image as a background on web pages, you use the CSS background-image property. This is applied to the HTML element where you want the background image to appear, commonly the <body> tag. Additional CSS properties like background-size, background-repeat, and background-position are used to control how the image appears—such as covering the entire screen, preventing it from repeating, and positioning it correctly. This method ensures the image displays consistently across different devices and screen sizes.

              Comment


              • #8
                You can set an image as a webpage background using the CSS `background-image` property. Use `background-size: cover` to make it fit the screen and `background-position: center` for proper alignment. It's a simple way to make a website look more attractive.