Hi! I was wondering, if it’s possible to somehow separate different tables with the <hr> tag, bacause it seems that I’m not skilled enough to do it. My idea is like this:
<GENERAL TABLE>
Text text text text text <table with an image aligned on the right side>
<hr> (this is the part which doesn’t obay my plans)
<!-- and again the same text, table with an image etc. –>
</END OF THIS GENERAL TABLE>
If we look at the code of the table, it should be something like this:
Unfortunatelly the HR doesn’t justify my expectations - it doesn’t start a table on a new line, instead it ends this HR at the start of the table. Sorry for my English, hope you understood, if not - feel free to ask questions.
First, <hr> is just a horizontal line, and you probably want a space… that would be <br>
Second, for the kind of layout you are talking, I don’t see the need of a table at all. You have different methods with less code, such as using a div and put the image inside it and float it to the right.
It’s the align attributes you use in your tables that cause this problem. They are funcionally equivalent with the float CSS property, which means you need to clear the <hr>:
My apologies. I think you are right. For some reason I assumed keisfootball really didn’t want the horizontal line, only to have the tables separated. In that sense, I thought that adding a bit of white space was enough and then a br element made more sense (although I’d probably use CSS to do it)
But reading the question again, and his code, probably he does want that horizontal line.
You’d get a more consistent appearance between browsers if you set a border to create the line rather than using <hr> since <hr> has a different default appearance in different browsers and can’t be styled to look the same in all.
On the other hand, that may not matter if all she/he is after is a horizontal separator. Not everyone worries that their pages look identical in different browsers. And few ‘normal’ users, I suspect, open the same site in multiple browsers and send hate mail to the authors if there’s a few pixels’ discrepancy between them.