मराठी

How would you define a background image which would be displayed filling only the top of the screen?

Advertisements
Advertisements

प्रश्न

How would you define a background image which would be displayed filling only the top of the screen?

कोड लेखन
व्याख्या
Advertisements

उत्तर

After setting the background-repeat property’s "repeat-x" value, which indicates that the background will only be repeated horizontally, we must place the image in the top left corner of the page.

body { background: url(logo.gif) repeat-x fixed left top; }
shaalaa.com
  या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
पाठ 6: Cascading Style Sheets (CSS) - Assisted Practice [पृष्ठ २७३]

APPEARS IN

सुमिता अरोरा Computer Applications [English] Class 10
पाठ 6 Cascading Style Sheets (CSS)
Assisted Practice | Q 6. | पृष्ठ २७३
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×