Help - Search - Members - Calendar
Full Version: Help with <br>
HTMLHelp Forums > Web Authoring > Markup (HTML, XHTML, XML)
AXA
I just don t understand this how to do I have been trying to do it but...

"Notice that although you have a nice green border on each side of your table, there isnīt one the same size at the top, and if your table had enough content in it to expand it the full length of the window, at the bottom. To provide this we need to add sveral line breaks before and after the table
<body background=" " bgcolor="# " text="# ">
bordercolor=" " width="90%" background=" "
bgcolor="#cccccc">
<tr>
<td width="100%">
----- page content here---
</td>
</tr>
</table>
<br><br>
</body>
</html>


With or without these <br> line breaks it s the same result for me...

Axa

pandy
And so it should be, border-wize. But maybe your teacher means there is space around the table? BR is still a poor way to accomplish margins. BR should be used sparingly and never to create space. Your teacher shouldn't teach you such things. CSS margins is the way to do it in this case.

Try something like this.
< table style="margin-top: 5em; margin-bottom: 5em">

BTW your table code is broken in the example above, but I assume that happened when you wrote it in here. If not, you need to fix it.
dsbente
it is very advisable for you to incorporate CSS for the design...
it would be a lot easier for you to use and improve it
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.