Languages

Menu
Sites
Language
Center Alignment

How to center-align content in a Tizen app?

Using

body
{
text-align:center;

}

inside a <style> tag in index.html doesn't work. Tizen Emulator just ignores it.

This works perfectly in any modern browser.

Edited by: Manojit Ghosh on 04 Dec, 2013

Responses

4 Replies
konduri sai swathi

Hi ,

Try with below tag :

<center><h1>Hello</h1></center>

 

Manojit Ghosh

But <center> is not supported in HTML 5.

Source:

http://www.w3schools.com/tags/tag_center.asp

konduri sai swathi

Hi,

It works in tizen ide... Try it once

Alexander AVSukhov

Hello,

You may use 

margin: 0 auto;

for your content.