Solved

A beginner to Dreamweaver, help with nav bars, etc.

Posted on 2006-06-11
18
326 Views
Last Modified: 2013-12-16
I have Dreamweaver MX 2004 and am working on www.aplusprodivers.com.  There are several things I want to do with the page and I was hoping to get some pointers on how to get started.  I am under a time crunch so I don't have hours to search help and solutions  Ok:

1) I want to add vertical navigation bars to point to pages i have already created (I think) to left side of the top of the page, i.e. .  I think when i inserted a nav bar it put it on top of the logo box at the top and not to the left of it
     HOME
     CURRENT EVENTS
     PADI TRAINING
     ETC....

2) I want to add some sort of border around the page

3) I figured out how to change the background color, but am struggling with getting those bubbles in the lower right to be transparent so it isn't a white block with bubbles in it.  I also have Fireworks 8

Thanks a great deal for any pointers to get me started.  

Thanks!


0
Comment
Question by:opie6373
  • 7
  • 6
  • 2
18 Comments
 
LVL 70

Expert Comment

by:Jason C. Levine
ID: 16882284
Hi opie6373,

1) There are tons of ways to add navigation to a site.  You could:

a) learn to use CSS and create a div to hold the navigation (recommended)
b) make a two column table where the left column = nav, right = content (not recommended)
c) download an extension from the Dreamweaver Exchange that writes a DHTML/javascript menu bar

When I look at your site now, I don't really get a sense of what you want to do with navigation, so it's a little tough to give you specific advice.

2) Border

This is best done by creating a div and using CSS to define the border of it.  That div will hold all other content.

3) Backgrounds

Those bubbles are images and you need to edit the image files so that they have transparent backgrounds as well.  This will involve converting them from GIF to JPG and setting the transparency.  If you don't have an image editor, The GIMP is free and works great.
0
 
LVL 25

Expert Comment

by:Rouchie
ID: 16883741
Jason is correct, CSS positioning is the way to go.  I've had a rough go for you but you need to build upon what I've done to finish what you're looking for.

In your page's code, change this:

<body>
<div align="center">

to say this:

<body style="border:3px solid #000099; margin;0; padding: 5px;">
<div style="position:absolute; float:left; display:block; height:99%; background-color:#ddddff; width:150px;">
      <p>HOME</p>
      <p>CURRENT EVENTS</p>
      <p>PADI TRAINING</p>
</div>
<div style="margin-left:150px; padding:5px;">

There are other ways to achieve the above, but without understanding the code yourself you will always need to ask here which will slow you down!  For the bubbles, sadly there's no easy fix - you have to make sure that the image is recoloured in your favourity picture editor to have the same background colour as the HTML page.  In years to come when browsers finally become powerful then there will be easier ways - but at the moments its too unreliable so we need to use the hard approach :-(  

Hope that helps.
0
 
LVL 12

Author Comment

by:opie6373
ID: 16914000
Jason,
what is the best way to learn CSS?

Rouchie,
your code is a good start and was what i was looking for.  i played with it however the logo is not centered and the gray menu is overlapping it on the left top side.  any suggestions on how to resolve?

again, this is a "hobby" and I am learning as i go, but i want to get something up quick for now so i can take my time learning and improving upon it.  I just need a decent starting point.

Thanks to you both for your help.

David
0
 
LVL 70

Assisted Solution

by:Jason C. Levine
Jason C. Levine earned 250 total points
ID: 16914086
>> what is the best way to learn CSS?

Depends on how you like to learn.  If you are a book guy, go to your local bookstore where I guarantee they have a metric ton of CSS books. I'm partial to the O'Reilly stuff.

If you prefer web-based tinkering and examples, look at the DevNet:

http://www.adobe.com/devnet/dreamweaver/articles/css_concepts.html
and
http://www.adobe.com/devnet/dreamweaver/articles/dw2004_cssp.html

and also read up at the W3:

http://www.w3.org/Style/Examples/011/firstcss

I was basically forced to learn CSS in order to decipher CSS based pages such as these:

http://www.oswd.org/
http://www.csszengarden.org/

So, if you prefer to learn by reverse engineering a page, start by downloading templates from the above sites and rip 'em up.

0
 
LVL 12

Author Comment

by:opie6373
ID: 16914549
I figured out the border thing, I just decrease the margin

An aside question, is dreamweaver going to become adobe go live?  is go live easier to use than dreamweaver? how do they compare?

0
 
LVL 70

Expert Comment

by:Jason C. Levine
ID: 16914565
>> is dreamweaver going to become adobe go live?

I seriously doubt it.  My impression is that, if anything, Go Live will become more like Dreamweaver.  DW has a much larger user base.
0
 
LVL 12

Author Comment

by:opie6373
ID: 16914714
interesting, so it would be best to continue to learn dreamweaver then
0
What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

 
LVL 70

Expert Comment

by:Jason C. Levine
ID: 16915344
Depends on what you end up doing.  If you are going to branch out into database-driven sites, then stick with DW.  If you are purely a HTML/CSS designer and will never integrate PHP/ASP/ColdFusion, then continue to use GoLive if that is what you are comfortable with.
0
 
LVL 12

Author Comment

by:opie6373
ID: 16915668
I use dreamweaver now.  I doubt i would do database driven sites.  Probably just as a hobby for friends with small businesses who want information type sites.
0
 
LVL 70

Expert Comment

by:Jason C. Levine
ID: 16915686
My advice is to pick a development environment, learn it, and stick to it as much as possible.  Whether you use DW or GoLive is less relevant than learning how to write good HTML and CSS.
0
 
LVL 25

Accepted Solution

by:
Rouchie earned 250 total points
ID: 16918418
There are 2 immediate issues in your code:

 1) Remove the opening DIV that is outside the body tag:
    <div align="">   <--- DELETE THIS
    <body style="border:3px solid #000099; margin;0; padding: 5px;">

2) Remove <BLOCKQUOTE>  and </BLOCKQUOTE> in your code.  This unnecessarily indents all the code.

The overlap is because the menu is within the same DIV as the content.  With small screen resolutions they squash together so one has to take priority over the other.  To avoid this, you need to completely seperate the menu from the content.  The following example does this, but you'll need to add back in the rest of your code (sample taken from http://nemesis1.f2o.org/aarchive?id=7):


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
        "http://www.w3.org/TR/html4/loose.dtd">
<head>
      <meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
      <title></title>
      <style type="text/css" media="screen">
            body
            {
                  margin: 0;
                  padding:0;
                  font-family: Tahoma, sans-serif;
                  color: #000;
                  background-color: #ffffff;
            }
            
            #container
            {
                  margin: 0;
                  padding: 10px;
                  background-repeat: repeat-y;
            }
            
            #banner h1
            {
                  margin: 0;
                  padding: .5em;
            }
            
            #nav
            {
                  float: left;
                  width: 160px;
                  margin: 0px;
                  padding: 5px;
                  border:1px solid #0000cc;
                  background-color: #ddddff;
            }
            
            #nav p { margin-top: 0; }
            
            #content
            {
                  padding-top: 1em;
                  border:2px solid #cc0000;
                  margin: 0 0 0 200px;
                  padding:5px;
            }
            
            #content h2 { margin-top: 0; }

            .style1 {
                  font-size: 36px;
                  font-weight: bold;
            }
            
</style>
</head>
<body>
<div id="container">
      <div id="nav">
            <p><a href="index.htm" target="_blank">HOME</a></p>
                 <p><a href="http://www.bottomtimecharters.com/currentevents.htm" target="_blank">CURRENT EVENTS</a></p>
                 <p><a href="http://www.bottomtimecharters.com/padi.htm" target="_blank">PADI TRAINING</a></p>
                 <p><a href="http://www.bottomtimecharters.com/rebreathers.htm" target="_blank">REBREATHERS</a></p>
                <p><a href="http://www.bottomtimecharters.com/tdi.htm" target="_blank">TDI</a></p>
                <p><a href="http://www.bottomtimecharters.com/dan.htm" target="_blank">DAN</a></p>
      </div>
      <div id="content">
            <p align="center"><img src="aplusprodivers1.gif" width="423" height="274"></p>
            <p align="left">&nbsp;</p>
            <p align="center" class="style1">A+ PRO DIVERS </p>
            <p align="center" class="style1">Plattsburgh, NY 12901</p>
            <p align="center" class="style1">518-561-7748 </p>
            <p>Remainder of content...</p>
      </div>
</div>
</body>
</html>
0
 
LVL 12

Author Comment

by:opie6373
ID: 16935884
i haven't forgotten about this, I just haven't had a chance to edit the code yet.  
0
 
LVL 70

Expert Comment

by:Jason C. Levine
ID: 17085647
Hi mrichmon,

Rouchie's answers are better than mine (more to the point, code examples).  Points should go to him
0
 
LVL 12

Author Comment

by:opie6373
ID: 17089724
actually, believe it or not, i am still interested but haven't had time to try rouchie's last post with code.  
0
 
LVL 12

Author Comment

by:opie6373
ID: 17406771
sorry for the delay.  thanks for the help.  i did not get a chance to try the last set of code, but i was able to accomplish what i needed to do with both sets of help
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Adobe Dreamweaver CS5 is a WYSIWYG web page editor that has advanced HTML, CSS, and Javascript rendering functionality and is probably the most well-known HTML editor available. Much of Dreamweaver's appeal centers around the Design View interfac…
This guide will walk you through the essential considerations and tech stack for building scalable websites. Know how to grow your business the smart way!
The purpose of this video is to demonstrate how to connect a WordPress website to Google Analytics. This will be demonstrated using a Windows 8 PC Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php :…
The purpose of this video is to demonstrate how to create a Printer Friendly PDF on a WordPress Page. This will be demonstrated using a Windows 8 PC. Tools Used are Photoshop, Awesome Screenshot” Google Chrome Extension, and SmallPDF.com Log…

919 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now