Hi koders!
My app was working fine until I used this block :
I want the following code-
Electro Marksheet View 1 #parent { display: flex; justify-content: center; } #div1 { float: left; } #div2 { float: left; } #div3 { float: left; }
FULL MARKS PASS MARKS MARKS OBTAINED THEORY PRACTICAL/ PROECT THEORY PRACTICAL/ PROECT THEORY PRACTICAL/ PROECT
After using this block the app keeps stopping when screen 2 is initializing… Please help
Thank You!
sorry, that the code was converted into output
the code-
Code
this error is coming when I am using custom web view instead of web viewer
It is coming when screen 2 is initializing…
vknow360
(Sunny Gupta)
September 25, 2021, 8:03am
#5
Maybe you didn’t read the topic before importing the extension.
Another is that, how to make it visible inside a vertical arrangement, it is a non-visible component…
Its a long topic, can you please tell shortly, what should I do?
dora_paz
(Dora)
September 25, 2021, 8:37am
#8
I had an issue with your html, cause flex isn’t working. Removing flex it works
Maybe you could try
[image]
Image by Dev.to
Flexbox
Flexbox is a layout extension which brings the similar capabilities of CSS Flexible Box Layout Module to Android. I am super excited to share it with you.
Note : All the possible values for a block are shown with that block in the image.
Docs
[create]
Create flexbox in a layout
[add view]
Add a new component to the flexbox
Flex Container Properties
[flex direction]
This attribute determines the direction of the main axis (and the cross axis, per…
2 Likes
I have tried it, everything’s fine but the table isn’t visible in the vertical arrangement
Code-
1 Like
dora_paz
(Dora)
September 25, 2021, 9:11am
#10
Already told you that flex styling not working. Try this html code, I just modified it only to see if loads. You have to change it according to your needs
<!DOCTYPE html><htmL> <head> <title>Electro Marksheet View 1</title> <link rel="shortcut icon" href="C:\Electro Mobile Intell\Images\Electro Mobile Intell.jpg" /> </head> <body> <center> <div id="parent"> <div id="div1"> <table border="1" cellspacing="0" height="auto" width="100%"> <tr> <td> <center>SUBJECT</center> </td> </tr> </table> </div> <div id="div2"> <table border="1" cellspacing="0" height="100" width="100%"> <tr> <td colspan="2"> <center>FULL MARKS</center> </td> <td colspan="2"> <center>PASS MARKS</center> </td> <td colspan="2"> <center>MARKS OBTAINED</center> </td> </tr> <tr> <td> <center>THEORY</center> </td> <td> <center>PRACTICAL/<br />PROECT</center> </td> <td> <center>THEORY</center> </td> <td> <center>PRACTICAL/<br />PROECT</center> </td> <td> <center>THEORY</center> </td> <td> <center>PRACTICAL/<br />PROECT</center> </td> </tr> </table> </div> <div id="div3"> <table border="1" cellspacing="0" height="100" width="100%"> <tr> <td> <center>TOTAL</center> </td> <td> <center>SUBJECT<br />GRADE</center> </td> </tr> </table> </div> </div> </center> <br /> </body> </htmL> <meta name="viewport" content="width=device-width, initial-scale=1.0"><metaname="viewport"content="width=device-width,initial-scale=1.0">
Ok,I am using another code without flex, I am using display: inline-table…
Code:
<!DOCTYPE html>
<htmL>
<head>
<title>Electro Marksheet View 1</title>
<link rel="shortcut icon" href="C:\Electro Mobile Intell\Images\Electro Mobile Intell.jpg" />
<style>
#parent {
display: inline-table;
justify-content: center;
}
#div1 {
float: left;
}
#div2 {
float: left;
}
#div3 {
float: left;
}
</style>
</head>
<body>
<center><div id="parent">
<div id="div1">
<table border="1" cellspacing="0" height="88px" width="88px">
<tr>
<td><center>SUBJECT</center></td>
</tr>
</table>
</div>
<div id="div2">
<table border="1" cellspacing="0" height="88px" width="550px">
<tr>
<td colspan="2"><center>FULL MARKS</center></td>
<td colspan="2"><center>PASS MARKS</center></td>
<td colspan="2"><center>MARKS OBTAINED</center></td>
</tr>
<tr>
<td><center>THEORY</center></td>
<td><center>PRACTICAL/<br />PROECT</center></td>
<td><center>THEORY</center></td>
<td><center>PRACTICAL/<br />PROECT</center></td>
<td><center>THEORY</center></td>
<td><center>PRACTICAL/<br />PROECT</center></td>
</tr>
</table>
</div>
<div id="div3">
<table border="1" cellspacing="0" height="88px" width="180px">
<tr>
<td><center>TOTAL</center></td>
<td><center>SUBJECT<br />GRADE</center></td>
</tr>
</table>
</div>
</div></center><br />
</body>
</htmL>
But, I tried with your code (Dora’s code) and it was visible!
Can you please offer me a code such that the output looks like this
Sorry to mention your name, Dora
Even I used the following code-
<!DOCTYPE html>
<htmL>
<head>
<title>Electro Marksheet View 1</title>
<link rel="shortcut icon" href="C:\Electro Mobile Intell\Images\Electro Mobile Intell.jpg" />
<style>
#parent {
justify-content: center;
}
#div1 {
float: left;
}
#div2 {
float: left;
}
#div3 {
float: left;
}
</style>
</head>
<body>
<center><div id="parent">
<div id="div1">
<table border="1" cellspacing="0" height="88px" width="88px">
<tr>
<td><center>SUBJECT</center></td>
</tr>
</table>
</div>
<div id="div2">
<table border="1" cellspacing="0" height="88px" width="550px">
<tr>
<td colspan="2"><center>FULL MARKS</center></td>
<td colspan="2"><center>PASS MARKS</center></td>
<td colspan="2"><center>MARKS OBTAINED</center></td>
</tr>
<tr>
<td><center>THEORY</center></td>
<td><center>PRACTICAL/<br />PROECT</center></td>
<td><center>THEORY</center></td>
<td><center>PRACTICAL/<br />PROECT</center></td>
<td><center>THEORY</center></td>
<td><center>PRACTICAL/<br />PROECT</center></td>
</tr>
</table>
</div>
<div id="div3">
<table border="1" cellspacing="0" height="88px" width="180px">
<tr>
<td><center>TOTAL</center></td>
<td><center>SUBJECT<br />GRADE</center></td>
</tr>
</table>
</div>
</div></center><br />
</body>
</htmL>
But it isn’t working, it isn’t visible…