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

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...