I simply use "align='center'"
Expand|Select|Wrap|Line Numbers
- <div
- id ="popSearch"
- align="center"
- style="position:fixed;
- visibility:hidden;
- z-index:99;"
- >
- <form
- method="POST"
- enctype="application/x-www-form-urlencoded"
- >
- <table
- name = "popSTable"
- id = "popSTable"
- >
- <tbody id="searchData" >
- </tbody>
- </table>
- </form>
- </div>
However when I switch the code to using style, my text no longer centers as shown in the code below and shown in photo 2.
Here is use "style = 'text-align:center;'"
Expand|Select|Wrap|Line Numbers
- <div
- id ="popSearch"
- style=" text-align:center;
- position:fixed;
- visibility:hidden;
- z-index:99;"
- >
- <form
- method="POST"
- enctype="application/x-www-form-urlencoded"
- >
- <table
- name = "popSTable"
- id = "popSTable"
- >
- <tbody id="searchData" >
- </tbody>
- </table>
- </form>
- </div>
I have also tried applying the style code to the form, table and tbody tags and none of them work. Not sure why that is so.