Jump to content

valign problem in firefox


usman07

Recommended Posts

I been checking my website in different browsers, it works fine in safari and google chrome, but in firefox my navigation and image are misplaced on the page. I think its due to using valign-"bottom"

 

you can take a look at the page, here the link: www.usmanshakoor.co.uk

 

heres my HTML code:

<table id="table1" border="0" cellpadding="0" cellspacing="0">
			<tr>
			<td valign="bottom"><div id="title"><img src="Images/Homepage/title.png" alt=""/></div></td>

			<td valign="bottom"><div id="navigation">
<a id="Home" href="index.html" title="homepage"><span>home</span></a>
<a id="Portfolio" href="portfolio.html" title="portfolio"><span>for sale</span></a>
<a id="About" href="about.html" title="about"><span>for rent</span></a>
<a id="Blog" href="blog.html" title="blog"><span>blog</span></a>
</div>
	</td>	
		</tr>
			</table>

 

Any help is appreciated

Link to comment
Share on other sites

  • 4 weeks later...
  • 2 weeks later...

Looks fine to me as well in chrome and firefox, however i have had major rendering frustrations in my past using tables and their standard attributes. I usually stick with CSS and have a little bit more control over exactly how 'bottom-aligned' i guess you could say, i wanted my images, divs, whatever.

Link to comment
Share on other sites

I agree with the comment about using css. It's so much more powerful and clean. Also, if you are going to align both columns, why not just align the row! Less typing is always good for us lazy programmers.

 

<table id="table1" border="0" cellpadding="0" cellspacing="0">
			<tr style="vertical-align:bottom">
			<td><div id="title"><img src="Images/Homepage/title.png" alt=""/></div></td>

			<td><div id="navigation">
<a id="Home" href="index.html" title="homepage"><span>home</span></a>
<a id="Portfolio" href="portfolio.html" title="portfolio"><span>for sale</span></a>
<a id="About" href="about.html" title="about"><span>for rent</span></a>
<a id="Blog" href="blog.html" title="blog"><span>blog</span></a>
</div>
	</td>	
		</tr>
			</table>

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.