Skip to Content
0
Oct 13, 2004 at 12:26 PM

HTMLB Setting Background Colour

78 Views

Last night at techEd BOF I had a very nice time. Some guys and one gal come to listen. It later turns out they are all from the same company doing BSP work. So as we were a small group, we first did my prepared "song and dance" show (about which I will write a weblog soon), and then things got informal.

One of the questions I promised to answer, was how to set the background colour of a BSP page. Here is two examples from our best expert!

<%@page language="abap"%>
<%@extension name="htmlb" prefix="htmlb"%>
<htmlb:content design="design2003">
 <htmlb:document>
  <htmlb:documentHead title="Red Background">
  </htmlb:documentHead>
  <htmlb:documentBody>
    <script>
      document.body.style.background="red";
    </script>
    <htmlb:form>
      <htmlb:tray id                = "tray"
                  width             = "100%"
                  hasMargin         = "false"
                  title             = "xyz"
                  hasContentPadding = "true" >
        <htmlb:trayBody>
          ...
        </htmlb:trayBody>
      </htmlb:tray>
    </htmlb:form>
  </htmlb:documentBody>
 </htmlb:document>
</htmlb:content>

<u><b>OR</b></u>

<%@page language="abap"%>
<%@extension name="htmlb" prefix="htmlb"%>
<htmlb:content design="design2003">
 <htmlb:document>
  <htmlb:documentHead title="Red Background">
    <style>
      .urBdyStd{background:red !important;}
    </style>
  </htmlb:documentHead>
  <htmlb:documentBody>
    <htmlb:form>
      <htmlb:tray id                = "tray"
                  width             = "100%"
                  hasMargin         = "false"
                  title             = "xyz"
                  hasContentPadding = "true" >
        <htmlb:trayBody>
          ...
        </htmlb:trayBody>
      </htmlb:tray>
    </htmlb:form>
  </htmlb:documentBody>
 </htmlb:document>
</htmlb:content>

Dankie dat julle gekom het! Ek het die tyd baie geniet, en die tyd was regtig interessant. dankie, brian