How to implement control array with vba. Data Scientist vs Software Engineer. The research path of clustering. How to reverse string using loop. A tool to try open-source projects quickly. I want to be a programmer. Software Development. Follow us! Get the Latest Bytes Updates. By using this site, you agree to our Privacy Policy and Terms of Use.
Jul 20 '05 Follow Post Reply 3 Evertjan. Show us the code that anyone can easily replicate. Tell us what you want it to look like and what you are seeing. Devices may also be useful - mobile? Without telling us what you are trying to achieve it is difficult to explain why a random sort of vaguely described changes managed to achieve it.
The content you requested has been removed. Inline code can be wrapped with single backtick's. Your second code block would be invalid html. So ultimately, a tr needs a table ancestor. I believe the only place a div would be allowed when working with table elements is inside of a td or th. You should be using table rows and table data inside a table. If you are wanting to not use table's then you can look into other ways of aligning things.
Thank you for your response. I just edited my question so that it would display the tag names I was talking about. Is it a bad practice to use tr and td inside a div?
Here, I am not using div inside table. Using div instead of table seemed easy and a quick fix for my problem. Is it reasonable to use div instead of table? As I mentioned in my answer, it's invalid html.
You were concerned about coworkers looking at this in the future. So it's up to you to decide if you're ok with them seeing invalid html. This won't pass a validator without errors. You also run the risk of not every browser being able to render this correctly. See my comment to your question. Maybe you can get help with doing this the right way if you can give more information. My tooltip contains chunk of data like above from different sources.
Each tooltip requires specific tables. Please help! Ok, is the code block above one complete tooltip? Or this is one source of data and another source of data will also go into this tooltip? Using a div instide a td is not worse than any other way of using tables for layout.
Some people never use tables for layout though, and I happen to be one of them. If you use a div in a td you will however get in a situation where it might be hard to predict how the elements will be sized.
The default for a div is to determine its width from its parent, and the default for a table cell is to determine its size depending on the size of its content. The rules for how a div should be sized is well defined in the standards, but the rules for how a td should be sized is not as well defined, so different browsers use slightly different algorithms.
A table-cell can legitimately contain block-level elements so it's not, inherently, a faux-pas. Browser implentation, of course, leaves this a speculative-theoretical position. It may cause layout problems and bugs. Though as tables were used for layout -and sometimes still are- I imagine that most browsers will render the content properly.
0コメント