Friday, April 29, 2011

CSS in a Web Application

With Real Studio Web Edition you can use the WebPageSource class to insert CSS, HTML or JavaScript into a Web Application in a couple of easy steps. For example, to use CSS to add a red square to the lower right corner of your web page add a WebPageSource class to the window. Next, set the Location property to 3- After Content. Then, enter this code for the Source property:

<style type="text/css">

#redrect {
position: absolute;
width: 100px;
height: 100px;
right: 20px;
bottom: 20px;
background-color: #FF0000;

<div id="redrect">&nbsp;</div>

Now Run the project and you should see a red square in the lower right corner or your page. Quick and easy customization of your web application is just one of the powerful features of Web Edition.

No comments: