Skip to content

[BUG] Can't control width of a td/th from table #913

@gfb-47

Description

@gfb-47

Describe the bug:
I have no control of the width on td/th from table tag, If I mess with the width on the css code below, nothing happens. Maybe this is a feature request idk.

HTML to reproduce the issue:

  Html(
      data: """
      <style>
	table, td, th {
		border: 1px solid black;
	}
	
	td, th {
		width: 1190px;
		padding: 10px;
	}
     </style>
  <table>
  <tr>
    <td>EmilEmilmilEmilEmilEmil</td>
  </tr>
</table>
          """,
),

Html widget configuration:

Expected behavior:

Screenshots:

Device details and Flutter/Dart/flutter_html versions:
Iphone 13 emulator
Flutter 2.5.3 • channel stable
flutter_html: ^2.2.0

Stacktrace/Logcat

Additional info:

A picture of a cute animal (not mandatory but encouraged)

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions