web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Apps
Answered

Table widht 100%

(0) ShareShare
ReportReport
Posted on by

 

Hello everyone, I have a problem, I can't make the table appear full-width, and I can't center the text. Even though the code seems to be correct 

"
<HTML>
<head>
<style> 
table {
widht:100%;
}

th, td {
text-algin: center;
padding: 8px;
}

h1{color:#4CAF50;}

tr:nth-child(even){background-color: #f2f2f2}

th {
background-color: #4CAf50;
color: white;
}

</style>
</head>
<body>
<H1>Zamówienie</H1>
<table>
<tr><th>Nazwa</th>
<th>Liczba</th>
<th>Indeks</th></tr>
" & Concat(
 Zamowienie_lista.AllItems;
 
"<tr><td>" & Nazwa & "</td><td>" & Liczba & 
"</td><td>" & Ind & "</td></tr>"
) & "

</Table>
</Body>
</HTML>
"

 

Categories:
I have the same question (0)
  • Verified answer
    RusselThomas Profile Picture
    4,014 on at

    Hi @pablik01 ,

    Like your post title, it looks like your code has a spelling error.  You have widht instead of width

    table {
    widht:100%;
    }
    
    SHOULD BE
    
    table {
    width:100%;
    }

    Try that first and see if it works?

    Kind regards,

    RT

  • pablik01 Profile Picture
    on at

    OMG So simple thanks, one more question:

     

    I have a kind of shopping cart to which I add articles the collection is converted to html and then to pdf. I would like the products to be numbered in the table but I have the same 1

     

    "<ol><li>" &Name& "</li></ol>")

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
Haque Profile Picture

Haque 103

#2
WarrenBelz Profile Picture

WarrenBelz 82 Most Valuable Professional

#3
wolenberg_ Profile Picture

wolenberg_ 67 Super User 2026 Season 1

Last 30 days Overall leaderboard