Wrox Programmer Forums
|
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Dreamweaver (all versions) section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 23rd, 2007, 07:32 AM
Registered User
 
Join Date: Jul 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Nav bars

Hello all

This...www.surbitonhealing.co.uk is my first attempt at a web site..i have completed a couple of weekend courses in Dreamweaver but still need quite a bit of practice:)The problem im having is that the navigation bar on some of the pages changes position after i have added content,i cant seem to make it stay in the same position as the Home page one...i did not use templates to make it as im still a bit unsure about them..i merely duplicated the main page several times.How do i make the bar stay in the same position regardless of how much content i add to that page?

Brgds

Volsha

 
Old October 23rd, 2007, 12:33 PM
Friend of Wrox
 
Join Date: Jun 2007
Posts: 477
Thanks: 10
Thanked 19 Times in 18 Posts
Default

Hi Volsha,

Yeah, your navigation is sensitive to the content, because Dreamweaver makes such extensive use of layout tables. Tables can apply a great deal of uniformity and a nice clean look, but this is a typical problem.

Your header is much more stable, again a typical feature for a table-based webpage. For this project, my recommendation would be to use a horizontal navbar as part of your header. That will give you much better control, and a much more uniform look to your webpage.

That said, there's no reason you can't make it stay where you want using CSS. However, it looks like this site is basically built. Redoing it with CSS would mean starting from scratch, so I'd recommend going with a more standards based layout. Dreamweaver has an excellent code view processor. It autocompletes a lot of things for you and you can configure it to autoclose tags. Really handy. But that's not something you learn in many Dreamweaver classes, since so many of them are about using all the fancy panels and drag and drop stuff in Design view. They seem easier, but you run into exactly the kind of problem you're having and there's no great fix for it. Design view just doesn't give you very good control.

-------------------------

Whatever you can do or dream you can, begin it. Boldness has genius, power and magic in it. Begin it now.
-Johann von Goethe

When Two Hearts Race... Both Win.
-Dove Chocolate Wrapper

Chroniclemaster1, Founder of www.EarthChronicle.com
A Growing History of our Planet, by our Planet, for our Planet.
 
Old October 25th, 2007, 05:17 AM
Registered User
 
Join Date: Jul 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Ok thanks for the advice:)

 
Old October 30th, 2007, 02:02 AM
Friend of Wrox
 
Join Date: Jun 2007
Posts: 477
Thanks: 10
Thanked 19 Times in 18 Posts
Default

that's what we're here for :)

When you get a chance to do your next site, CSS should let you use a vertical navbar and pin it exactly where you want it on each page. But for this one, changing to to a horizontal navbar will just fit in more gracefully (ie less work :D) with what you've already built. The alternative is to get a little creative with this design, but that may require some CSS and more work. But I could try to help you through it.

-------------------------

Whatever you can do or dream you can, begin it. Boldness has genius, power and magic in it. Begin it now.
-Johann von Goethe

When Two Hearts Race... Both Win.
-Dove Chocolate Wrapper

Chroniclemaster1, Founder of www.EarthChronicle.com
A Growing History of our Planet, by our Planet, for our Planet.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Nav buttons for database krisfr Beginning PHP 1 June 18th, 2007 05:25 PM
DIV nav problem socoolbrewster CSS Cascading Style Sheets 1 June 3rd, 2006 05:09 PM
Nav Bar Styling VictorVictor BOOK: Beginning CSS: Cascading Style Sheets for Web Design ISBN: 978-0-7645-7642-3 1 May 16th, 2006 06:02 PM
nav - how to show what page you are on cat CSS Cascading Style Sheets 2 November 4th, 2004 09:00 PM
nav bar problems Morrislgn Javascript How-To 1 June 3rd, 2004 07:45 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.