WatchNon-threaded

Forums » Advanced Editor Forum » Read Message

Talk about it. Ask for help on it. Compliment it.

Setting background image trouble :(

11 days ago

Hi there! While I was following the guide on 'How to Create a Great Titlepage', the following:

<body background="https://imgur.com/oUOvSlM">

keeps 'disappearing' from the page when I try to type it into Source after I save the page. So could someone help out this absolute caveman and a titlepage in need?

Setting background image trouble :(

11 days ago

A couple things. First, it's best to add styling via scripting, since the rich-text editor will delete it otherwise and the plain text editor adds unnecessary newline tags. With scripting enabled, that's accessed via the := button next to the page's title. Second, it's better to use CSS. Third, you need to link directly to the image. Your link just goes to an HTML page containing the image:

$PAGETEXT := "<!--<style>
body {
  background: url('https://i.imgur.com/oUOvSlM.jpg');
}
</style>-->" + $PAGETEXT