Technology Programming

How to Make My Background a Photograph in CSS

    • 1). Open your website's CSS file in your text editor.

    • 2). Type:

      body {background-image:URL('photourl');}

      Replace "photourl" with the URL to the photograph. The photo repeats both horizontally and vertically by default.

      To make the photograph repeat only horizontally, type:

      body {background-image:URL('photourl'); background-repeat:repeat-x;}

      To make the photograph repeat only vertically, type:

      body {background-image:URL('photourl'); background-repeat:repeat-y;}

      If you do not want the photograph to repeat, type:

      body {background-image:URL('photourl'); background-repeat:no-repeat;}

    • 3). Save the website's CSS file.

    • 4). Upload the CSS file to your website's server.

    • 5). Open your browser and visit your website to check that the photo background is displaying properly.

Related posts "Technology : Programming"

The Importance Of Having a WordPress Business Theme

Programming

Website Design Is Necessary For Your Website

Programming

The Most effective On line Paid Survey Evaluation

Programming

Adelaide SEO - Links And Keywords, How Should They Be Used

Programming

C Programming Compilers for Microcontrollers

Programming

How Should A DJ Make Music Logo That Is Distinct And Cool?

Programming

Call to Action Concepts for Small Businesses

Programming

Microsoft Access Databases in Office 365

Programming

Why web design is crucial for producing world class websites

Programming

Leave a Comment