cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

How to align text in the center in an HTML box?

I tried putting 

"<p style="text-align:center;">"

but it didn't seem to recognize this syntax. 

1 ACCEPTED SOLUTION

Accepted Solutions

Jessica,

 

Please let me know if you still need help with this. 

 

Thanks,

Kranthi

 

-----

Please mark it as a solution if that worked for you.

View solution in original post

4 REPLIES 4
KranthiTupakula
Responsive Resident
Responsive Resident

I used HTML tables to horizontally align fields so something like this:

 

<table>
<tr><td> data cell 1</td><td>data cell 2</td></tr>
<tr><td> data cell 1 row 2</td><td>data cell 2 row 2</td></tr>
etc...
</table>

 

------------

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

Anonymous
Not applicable

@KranthiTupakula  Hi, mine is not a table, just a text box thought. I just want to align them center !

Try this.

"<p style='text-align:center'>Hello test</p>"

 

this should work.

 

------------

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

Jessica,

 

Please let me know if you still need help with this. 

 

Thanks,

Kranthi

 

-----

Please mark it as a solution if that worked for you.

View solution in original post

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

Top Solution Authors
Top Kudoed Authors
Users online (57,016)