English

Can your background image be on a different server? How would you write your CSS code then?

Advertisements
Advertisements

Question

Can your background image be on a different server? How would you write your CSS code then?

Code Writing
Very Short Answer
Advertisements

Solution

Yes, it is possible to store the backdrop on a different server. All we have to do is use url() to specify its complete URL, as seen below:

body { background-image: url(http://www.otherserver.com/logo.gif) }
shaalaa.com
  Is there an error in this question or solution?
Chapter 6: Cascading Style Sheets (CSS) - Assisted Practice [Page 273]

APPEARS IN

Sumita Arora Computer Applications [English] Class 10
Chapter 6 Cascading Style Sheets (CSS)
Assisted Practice | Q 5. | Page 273
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×