Style: no-repeat

Last post 10-22-2007, 10:44 AM by LearnerNM. 2 replies.
Sort Posts: Previous Next
  •  10-21-2007, 8:39 AM 34461

    Style: no-repeat

    Adam,
     
    I cannot change the background repeat properties from the page properties. I do not want the background to "repeat-x" or "repeat-y". I want "no-repeat".
     
    There is no mechanism to change that within the page properties (the only place to set a background image), and I inserted 
    "style = background-repeat: no-repeat;" into the html <body> tag but this did not work. This is an important issue for my clients and I need help with this please.
     
    LearnerNM
  •  10-22-2007, 9:43 AM 34478 in reply to 34461

    Re: Style: no-repeat

    LearnerNM,
     
    Please try this example:
     
    I used the following code for testing:
     
    <html>
        <head>
            <title>test</title>
        </head>
        <body style="background-image: url(/uploads/brody3.jpg); background-repeat: repeat" background="/uploads/brody3.jpg">
            <img alt="" src="http://cutesoft.net/uploads/cindy_crawford.jpg" border="0" />
        </body>
    </html>

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  10-22-2007, 10:44 AM 34489 in reply to 34478

    Re: Style: no-repeat

    Adam,
    Thanks for the reply. That piece of code worked, but isn't it a bit much to ask my clients to recode their page if they use an image as a background. I want to make it as easy as possible for them because most are not code savy. How difficult would it be to place a style dialog on the page properties?
     
    LearnerNM
     
    UPDATE
     
    Adam, I set the EditorBodyStyle property to reflect no repeats for background images and it worked fine. Thanks.
View as RSS news feed in XML