Inhalte aufrufen

Profilbild

Background image


1 Antwort zu diesem Thema

#1 techwareuk

techwareuk

    Newbie

  • Members
  • 1 Beiträge

Geschrieben: 01 May 2015 - 11:00

Hello, I been playing with smartstore and i have to say its amazing, Im just experimenting with the theme Alpha Blue and had a question as im not a coder, I want to add a background image to the site but am unable to figure out how to do this, any help would be great

 

Thanks



#2 Marcus Gesing

Marcus Gesing

    SmartStore AG

  • Administrators
  • 3034 Beiträge

Geschrieben: 01 May 2015 - 17:48

Add the following to /Content/user.less of your theme:
html, body {
  padding: 0;
  margin: 0;
  background: url("http://www.my-store.com/my-ground.jpg") no-repeat center center fixed !important;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
}

Schöne Grüße aus Düsseldorf,
Marcus Gesing




Auf dieses Thema antworten