Jump to content

Recommended Posts

Posted

how to change the background color in UniHTMLFrame, I was setting by adding

 

<style>

body {

   background: # ddd;

}

</style>

 

but there is no color change in the html frames

Posted

Usage:

 

background-color: #ddd;

 

Example:

 

<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en">
<head>

<style>
body {
  background-color: #ddd;
  color:#222;
}
</style>

</head>

<body>
 <div style="text-align:center;background-color: #999;">Hello World!</div>
</body>

</html>

Posted

Usage:

 

background-color: #ddd;

 

Example:

 

<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en">
<head>

<style>
body {
  background-color: #ddd;
  color:#222;
}
</style>

</head>

<body>
 <div style="text-align:center;background-color: #999;">Hello World!</div>
</body>

</html>

 

its works by adding a few properties like this

 

<div style="color: #222; background-color: #ddd; width:100%; height:100%;">

 

 

thank you

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...