iEntry 10th Anniversary Forum Rules Search
WebProWorld
Register FAQ Calendar Mark Forums Read
Web Programming Discussion Forum Working with an API? Developing a plugin? Writing a Mod or script for your favorite blog, Web 2.0 site or Forum? Welcome.

Share Thread: & Tags

Share Thread:

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-25-2009, 10:11 AM
WebProWorld New Member
 
Join Date: May 2009
Posts: 11
TheWildHaggis RepRank 0
Default Unable to align Navigation bar with body

Folks,

I am having some issues with a rather anoying and very presisten line of space in my website. Teh site can be found at nfpc dot org dot uk.

The line i am refering to is between the navigation buttons, and the main body. I would like these navigation buttons to be sitting flush on top of the body so that their is no background showing between.

I ahve tried and tried to fix this but no luck, Any ideas?
Reply With Quote
  #2 (permalink)  
Old 05-25-2009, 01:12 PM
Dubbya's Avatar
WebProWorld 1,000+ Club
WebProWorld MVP
 
Join Date: Nov 2006
Location: Steinbach, Manitoba, Canada
Posts: 1,300
Dubbya RepRank 4Dubbya RepRank 4Dubbya RepRank 4Dubbya RepRank 4Dubbya RepRank 4
Default Re: Unable to align Navigation bar with body

At first glance (in FireFox) and assuming you want the body to align (centered) with the header graphic, it would appear that you've got an open <div> tag somewhere but I see you've used a table based layout.

Let me take a look.

Last edited by Dubbya; 05-25-2009 at 01:17 PM.
Reply With Quote
  #3 (permalink)  
Old 05-25-2009, 01:38 PM
WebProWorld New Member
 
Join Date: May 2009
Posts: 11
TheWildHaggis RepRank 0
Default Re: Unable to align Navigation bar with body

Many thanks, Its more apparent in IE. The gap between the navigation and the main body is very noticeable. Where as FF it's a lot smaller.
Reply With Quote
  #4 (permalink)  
Old 05-25-2009, 02:19 PM
Dubbya's Avatar
WebProWorld 1,000+ Club
WebProWorld MVP
 
Join Date: Nov 2006
Location: Steinbach, Manitoba, Canada
Posts: 1,300
Dubbya RepRank 4Dubbya RepRank 4Dubbya RepRank 4Dubbya RepRank 4Dubbya RepRank 4
Default Re: Unable to align Navigation bar with body

Here's one solution:

Start by saving a duplicate of your home page for editing. Don't make any sweeping changes until after you've tested the results across all major browsers.

Open your duplicate page. Starting at approximately line 38, remove the following code:
HTML Code:
<tr>
	<td style="text-align: center;"><center><table>
	<tr align="center">
		<td>
			<ul id="tabmenu">
				<li><a href="http://nfpc.org.uk/index.shtml" id="Home">Home</a></li>

                                <li><a href="http://nfpc.org.uk/History/Index.shtml" id="History">History</a></li>
				<li><a href="http://nfpc.org.uk/Services/Index.shtml" id="Services">Services</a></li>
                                <li><a href="http://nfpc.org.uk/Songs/Index.shtml" id="Songs">Songs</a></li>
                   		<li><a href="http://nfpc.org.uk/BoysBrigade/Index.shtml" id="BB">Boys Brigade</a></li>
				<li><a href="http://nfpc.org.uk/GirlGuids/index.shtml" id="GG">Girl Guides</a></li>
				<li><a href="http://nfpc.org.uk/Toddlers/index.shtml" id="Toddlers">Toddlers</a></li>

                                <li><a href="http://nfpc.org.uk/ContactUs/index.shtml" id="Contacts">Contact Us</a></li>
			
			</ul>
		</td>
	</tr>
</table>


</center></td>
</tr>
Then put your navigation menu into the next lower row just above the "MainArea" table. Something like this:

HTML Code:
<table width="100%" >
<tr>
	<td style="text-align: center; margin-left:auto; margin-right:auto"><center><table class="Header" >
		<tr>
			
				<td ><img src="http://nfpc.org.uk/Imgs/logo2.jpg" height="70px" width="50px" alt="Logo" /></td>
				<td>Northfield Parish Church</td>
				<td align="right"><img src="http://nfpc.org.uk/Imgs/logo2.jpg" height="70px" width="50px" alt="Logo" /></td>

		
		</tr>
</table>
</td>
</tr>
<tr align="center">
	<td style="text-align: center; vertical-align: top;" align="center">
				<ul id="tabmenu">
				<li><a href="http://nfpc.org.uk/index.shtml" id="Home">Home</a></li>

                                <li><a href="http://nfpc.org.uk/History/Index.shtml" id="History">History</a></li>
				<li><a href="http://nfpc.org.uk/Services/Index.shtml" id="Services">Services</a></li>
                                <li><a href="http://nfpc.org.uk/Songs/Index.shtml" id="Songs">Songs</a></li>
                   		<li><a href="http://nfpc.org.uk/BoysBrigade/Index.shtml" id="BB">Boys Brigade</a></li>
				<li><a href="http://nfpc.org.uk/GirlGuids/index.shtml" id="GG">Girl Guides</a></li>
				<li><a href="http://nfpc.org.uk/Toddlers/index.shtml" id="Toddlers">Toddlers</a></li>

                                <li><a href="http://nfpc.org.uk/ContactUs/index.shtml" id="Contacts">Contact Us</a></li>
			
			</ul>
		<table class="MainArea" style="text-align: center;">
Once you've done this, save your duplicate page. Open up your CSS Stylesheet and define the #tabmenu width as 900px or whatever you want it to be. You may want to remove the bottom border at this point as the menu should be sitting atop the main content area. Make your changes and save the file.

At the very least, be sure to test the page in Internet Explorer and FireFox before replacing the code in the rest of your pages. Don't forget to delete the duplicate page when you're satisfied that all is well!

Don't hesitate to ask for more assistance and please pass along my best regards to Stella!
Reply With Quote
  #5 (permalink)  
Old 05-25-2009, 03:25 PM
WebProWorld New Member
 
Join Date: May 2009
Posts: 11
TheWildHaggis RepRank 0
Default Re: Unable to align Navigation bar with body

Excellent, Good work. Im just testing it out
Reply With Quote
Reply

  WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Vertically align Xylina Web Programming Discussion Forum 1 07-12-2006 06:01 PM
Unable to align 2 flash buttons & firefox question myforevervideo Graphics & Design Discussion Forum 3 12-25-2005 05:21 AM
Reading body before navigation onelife Graphics & Design Discussion Forum 2 10-18-2005 08:43 PM
css text-align in IE souvik das Graphics & Design Discussion Forum 7 05-06-2005 06:47 AM
Unable to upgrade PHP fizzlesquirt IT Discussion Forum 3 03-21-2005 03:14 PM


All times are GMT -4. The time now is 07:31 PM.



Search Engine Optimization by vBSEO 3.3.0