Jump to content

Uniframe center content


Astrolab

Recommended Posts

i have added my email

 

Ok, Thanks

 

 

 

i have try with <center> tags 

and with adding style in body.

 

this example working in https://www.w3schools.com/tags/tryit.asp?filename=tryhtml_center_test

 

<!DOCTYPE html>
<html>
<head>
<style>
.center_it {
    text-align:center;
}
</style>
</head>
 
<body class='center_it'>
<br><B>some text</B></br>
<body>
</html>

 

 

Sorry, can you clarify your question again, also can you make a simple testcase if possible ?!

Link to comment
Share on other sites

object MainForm: TMainForm

  Left = 0

  Top = 0

  ClientHeight = 270

  ClientWidth = 635

  Caption = 'MainForm'

  OldCreateOrder = False

  MonitoredKeys.Keys = <>

  PixelsPerInch = 96

  TextHeight = 13

  object UniHTMLFrame1: TUniHTMLFrame

    Left = 0

    Top = 0

    Width = 635

    Height = 270

    Hint = ''

    HTML.Strings = (

      '<!DOCTYPE html>'

      '<html>'

      '<head>'

      '<style>'

      '.center_it {'

      '    text-align:center;'

      '}'

      '</style>'

      '</head>'

      ''

      '<body class='#39'center_it'#39'>'

      '<br><b>Center it test</b></br>'

      '</body>'

      ''

      '<html>')

    Align = alClient

    Anchors = [akLeft, akTop, akRight, akBottom]

    ExplicitLeft = 200

    ExplicitTop = 88

    ExplicitWidth = 256

    ExplicitHeight = 128

  end

end

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...