We help IT Professionals succeed at work.

How to make anchor tag appear alongside table, and not under it?

tr5
tr5 asked
on
Hi
I have a <table> element. I want some text to appear next to it, and not under it? How do I do this?
Comment
Watch Question

Bob ButcheriSeries Engineer

Commented:
You mean you want an anchor tag to be next to text instead of being underneath it?
tr5

Author

Commented:
Sorry, title and question don't match.

I just want to have text appear in line with a table I have, and not under it. I guess this is because a table is a block element. Can I get around this somehow?
iSeries Engineer
Commented:
You could do something like this:

<table>
<tr><td valign='top'>your text here</td><td valign='top'>

<table>
<tr><td>your existing table here</td></tr>
</table>

</td></tr>
</table>

Explore More ContentExplore courses, solutions, and other research materials related to this topic.