| | |
|
|
|
easy table problem question |
| message from ZippyZachar on 18 Jul 2004 |
I feel like such a silly guy for asking such a silly question but here goes, i
have a table with two cells, and in one cell theres a few words of text, but
its not centering correctly, i'm pretty sure i have the code correct, and it
displays correctly in dreamweaver, but once i preview it in IE it vertically
aligns up to the top, is it just my browser or do i have something set
funny...? Here's the code:
Thanks in advance for any pointers.
<tr>
<td valign="middle" width="209" height="48" align="center">
<H1>Online Dating News</H1>
</td>
<td width="171" valign="middle"><img
src="../image-files/forReviews.jpg"></td>
|
| Osgood replied to ZippyZachar on 18 Jul 2004 |
Its probably the default margin on the h1 tag that is throwing your text
off center. Paste the code below into your style sheet or directly
before the closing </head> tag of your pages code and see if that takes
care of the problem.
If you paste into your stylesheet then dont include the <style></style>
<style>
h1 {
margin: 0;
padding: 0;
}
</style>
ZippyZachar wrote:
|
|
Archived message: easy table problem question (Macromedia Dreamweaver)