语言

Menu
Sites
Language
How to center a text into a div tag (with an id = htmlblock1)

Hello everyone,

I am trying to make my text centred within a div tag, I used this code:

 

<div id="htmlblock1" class="" style="text-align:center">
          <!--HtmlCodeBlock-Start[#htmlblock1]-->
                    Here is my result
          <!--HtmlCodeBlock-End[#htmlblock1]-->
        </div>

But the text is still on left!

What's my fault?

编辑者为: Brock Boland 17 3月, 2014 原因: Paragraph tags added automatically from tizen_format_fix module.

响应

1 回复
talari praveen kumar
Hi karray I tried with your code and it is woring fine, here is the screenshot . http://s1316.photobucket.com/user/Chinna5b6/media/scrn_zps65393908.png.html (I tried it in sdk2.2