Languages

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?

Edited by: Brock Boland on 17 Mar, 2014 Reason: Paragraph tags added automatically from tizen_format_fix module.

Responses

1 Replies
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