Help centering text in horizontal Nav bar

I have just built my styles for my Nav bar and i am trying to figure out how to place everything centered in the div.
at the moment they are offset to the left. Fairly new to this.
here is my CSS code and underneath the HTML
Thanks so much for any help you can give me
J
ul.nav {
    background-color: #FFF;
    padding-left: 15px;
    border-top-width: 1px;
    border-bottom-width: 1px;
    border-top-style: solid;
    border-bottom-style: solid;
    border-bottom-color: #ababab;
    border-top-color: #afafaf;
ul.nav a, ul.nav a:visited { /* grouping these selectors makes sure that your links retain their button look even after being visited */
    text-decoration: none;
    color: #666;
    line-height: 2.5;
    display: inline-block;
    padding-right: 15px;
    padding-left: 15px;
    border-right-width: 1px;
    border-right-style: solid;
    border-right-color: #ababab;
ul.nav a:hover, ul.nav a:active, ul.nav a:focus { /* this changes the background and text color for both mouse and keyboard navigators */
    color: #09F;
    background-color: #FFF;
ul.nav li {
    display: inline;
/* ~~ The footer styles ~~ */
.footer {
    padding: 10px 0;
    background: #CCC49F;
    position: relative;/* this gives IE6 hasLayout to properly clear */
    clear: both; /* this clear property forces the .container to understand where the columns end and contain them */
/* ~~ Miscellaneous float/clear classes ~~ */
.fltrt {  /* this class can be used to float an element right in your page. The floated element must precede the element it should be next to on the page. */
    float: right;
    margin-left: 8px;
.fltlft { /* this class can be used to float an element left in your page. The floated element must precede the element it should be next to on the page. */
    float: left;
    margin-right: 8px;
.clearfloat { /* this class can be placed on a <br /> or empty div as the final element following the last floated div (within the .container) if the .footer is removed or taken out of the .container */
    clear:both;
    height:0;
    font-size: 1px;
    line-height: 0px;
  </div>
<div id="navbar">
<ul class="nav">
<li><a href="#">Home</a></li>
<li><a href="#">Videos</a></li>
<li><a href="#">Articles</a>
</li>
<li><a href="#">Archives</a>
<li><a href="#">Local Reporter</a>
</li><li><a href="#">Sign up</a>
</li><li><a href="#">Contact Us</a></li></ul>
</div>
Thanks again!

ahh sorry...here you go
ul.nav {
     background-color: #FFF;
     padding-left: 15px;
     border-top-width: 1px;
     border-bottom-width: 1px;
     border-top-style: solid;
     border-bottom-style: solid;
     border-bottom-color: #ababab;
     border-top-color: #afafaf;
     width: 960px;
     margin-right: auto;
     margin-left: auto;
ul.nav a, ul.nav a:visited { /* grouping these selectors makes sure that your links retain their button look even after being visited */
     text-decoration: none;
     color: #666;
     line-height: 2.5;
     display: inline-block;
     padding-right: 15px;
     padding-left: 15px;
     border-right-width: 1px;
     border-right-style: solid;
     border-right-color: #ababab;
ul.nav a:hover, ul.nav a:active, ul.nav a:focus { /* this changes the background and text color for both mouse and keyboard navigators */
     color: #09F;
     background-color: #FFF;
ul.nav li
/* ~~ The footer styles ~~ */
.footer
.weather
#weather sidebar1
/* ~~ Miscellaneous float/clear classes ~~ */
.fltrt {  /* this class can be used to float an element right in your page. The floated element must precede the element it should be next to on the page. */
     float: right;
     margin-left: 8px;
.fltlft { /* this class can be used to float an element left in your page. The floated element must precede the element it should be next to on the page. */
     float: left;
     margin-right: 8px;
.clearfloat { /* this class can be placed on a
or empty div as the final element following the last floated div (within the .container) if the .footer is removed or taken out of the .container */
     clear:both;
     height:0;
     font-size: 1px;
     line-height: 0px;
#apDiv1
-->
</style></head>

Similar Messages

  • How do I create a horizontal nav-bar with CSS, set to an exact width?

    I have a problem that I need help with. All I need to do is
    to create a simple text-based horizontal navigation bar using CSS.
    I have seen many CSS tutorials online about how to make a
    horizontal navigation bar using unordered lists, but they all seem
    to either set the bar to be centred or to the full width of the
    page, or if they do set it to be a certain width, then the buttons
    within that width are centred within pre-defined widths for each
    one.
    Unfortunately none of these help me - let me explain my
    scenario...
    I have an area that is exactly 700px wide. In this area I
    want to put 5 text hyperlinks.
    I want the first text-link to be aligned to the left of my
    700px width, and I want the last text-link to be aligned to the
    right of the 700px width.
    I want the spaces between each of these text-links to all be
    the same.
    The only definite known width is the overall 700px. I will
    not know the width of each text-link, as (a) they are all live
    text, and (b) the phrases for each could change.
    I have mocked up a quick diagram showing in more detail
    precisely what I mean:
    http://www.nothowitlooks.com/temp/navbar.gif
    Can anyone please help me with this?
    Thanks.

    .oO(BrettArchibald)
    >Oh look, a third person joining the discussion and not
    actually proposing any
    >solutions to the original query. Just what this thread
    needs.
    Oh look, a person seeking for help turning into a troll. Just
    what this
    group needs.
    > Well, to be fair, Kim did make a sterling effort in
    trying, but just didn't
    >manage to fully understand the layout required.
    >
    > To address your "points":
    >
    quote:
    some things simply can't be done or don't make any sense in
    the Web. Even a
    >client has to accept that. Let them write wishes to Santa
    Clause if they want,
    >but they have to accept the rules of the medium they're
    working with.
    >Period.
    > Wrong, wrong, silly comment and wrong.
    >
    > To elaborate: firstly, with regards to design,
    everything can be done, it's
    >simply a matter of how.
    Only in your fantasy. In practice there are always some
    limits enforced
    by the used material or technology. You simply can't violate
    such basic
    rules and laws, even if you would like to.
    >Whether you use text, images, tables, CSS, or even
    >Flash, the objective is first to design the site with
    both your client's and
    >their customers needs and expectations, and then to build
    it, regardless of how
    >difficult-to-code that design may or may not be.
    It always looks good on paper, but not every design can be
    turned into
    practice. This not only applies to web design, but to almost
    every kind
    of development. Often enough you have to find compromises or
    workarounds
    if the engineers say "won't work". The problem is that many
    designers
    don't understand this or don't want to. They're just thinking
    and living
    in their perfect theoretical world, but have no idea of how
    things work
    in the real world. And many theoretical things simply don't
    work there.
    Each medium has its own rules and laws. Some things may work
    well for a
    printed paper for example, but not in the Web and vice versa.
    Of course
    you can try to break these rules, but you'll definitely fail.
    >You should not compromise your
    >design because of a lack of coding knowledge.
    It's not lack if coding knowledge if you refuse to try things
    that are
    impossible or don't make sense. It's quite the opposite,
    because you
    don't have to waste your time with something that won't work
    at all.
    >If you don't know how to do it
    >yourself, then find out how to do it (which is what I was
    *originally* trying
    >to do here, remember?).
    Quite easy. Surf the web, and if you see something like what
    you want,
    just have a look at the source code or post the URL here. If
    it can be
    done, then it already has been done. Just show us an example
    and we'll
    happily explain it to you.
    > Secondly, no, a client does NOT have to accept that
    "some things simply can't
    >be done or don't make any sense in the Web".
    Sure they have. The client is not always king. And if they
    insist on
    stupid things and always know it better - why the hell are
    they hiring
    you instead of doing it themselves? If they want their work
    to be done
    by an expert, they should also _listen_ to that expert and
    let him do
    his work properly instead of telling him how he should do it.
    That's not
    going to work.
    >Like I said earlier, some clients
    >are not interested in hearing about how what they want
    cannot be done, and any
    >attempts to tell them so only serve to convince them to
    take their work, and
    >their money, to someone else. Most clients, thankfully,
    are adaptable and
    >willing to reason. However, some are not, and if these
    clients take their money
    >elsewhere, you lose the job and you don't get paid. It's
    that simple.
    Let's say you want a little film to be made about whatever.
    Would you
    tell the director where he should position the cameras, the
    lights and
    all the stuff? He already knows _what_ you want to get, so
    why don't you
    just let him decide _how_ to do it? It's his job! And if he
    says that
    filming directly towards bright sunlight usually doesn't work
    well, you
    should respect his expert opinion.
    >
    quote:
    You won't make friends here with such an attitude. Please
    stop insulting
    >regulars or just leave.
    >
    > Firstly, I'm not here to make friends. Neither am I here
    to make enemies. I am
    >here to get help with a coding problem. When people offer
    "alternative advice"
    >that hinders my progress in finding a solution, I tell
    them so. I give back
    >what I get.
    You asked for advice and you got proper answers. We really
    don't need
    people here just looking for the answers they want to hear.
    Often enough
    people are coming here looking for a cure to a particular
    problem, while
    it would be much easier to avoid that problem right from the
    beginning.
    Of course if they don't want to hear such alternatives -
    their problem.
    > Secondly, I was not aware that "regulars" to this site
    had any special
    >"insult-free privileges" or suchlike that newcomers did
    not.
    It's not the best idea to bite the hand that feeds you. It's
    the group's
    regulars who answer almost all of the questions here. And
    most of them
    also know how to use a killfile.
    >I don't care if
    >someone is a regular or a newcomer - when I ask a
    technical question and
    >instead of either potential advice or even silence, I
    instead receive
    >un-warranted "design advice", I'll make my opinions
    known.
    So do we. If someone wants something that's not possible or
    not going to
    work, we'll "make our opinions known". After all that's what
    a free
    discussion board/forum/group is for.
    > As for the "just leave" suggestion for supposedly
    "insulting regulars", I
    >could very well say the exact same thing to you, for the
    reason of not actually
    >contributing anything to the discussion that attempts to
    address the original
    >query of this thread.
    > In fact, you know what, I think I will. Here goes:
    > Please either propose a solution to my original CSS
    problem or just leave.
    > There, how was that?
    Want to try again?
    With pure CSS and text links it can't be done within the
    given
    constraints. I even doubt that it's possible with a table. So
    either
    drop the fixed 700px width or the equal space between the
    buttons.
    > P.S: Seeing as though pedantry seems to be something
    you're interested in,
    >judging by the "rant" tag comment, I thought I'd point
    out that you spelled
    >Santa Clause wrong.
    You can keep the 'e'. In German we have more than enough of
    them.
    And if you would be familiar with web design, then you would
    have known
    where this ironic "error message" came from.
    Your turn.
    Micha

  • How can I get Firefox 4 to correctly display CSS padding for a horizontal nav bar (works in most other browsers, incl. earlier FF)?

    I have just coded a horizontal nav bar for a site with CSS rollover effects using a:hover and a: focus effects. There are no images, just HTML and CSS. The layout works beautifully in IE 6 - 8, Safari for Windows, Opera for Windows...and Firefox 3.X but behaves poorly in Firefox 4. I've hardly ever had problems with FF before. :(
    Here's the menu: http://sddlr01.hottubretailer.com/TestNav2.html
    The rollovers extend below the height of the background div and the extra padding on the first and last li tag don't display correctly either. The page passes WebDeveloper toolbar CSS and HTML validation as well.
    This is making me batty! Any help deeply appreciated!
    Thanks.
    All CSS code is in the page for debugging purposes.

    I do not understand what you mean with "the rollover will extend the full width of the background"
    A good place to ask questions and advice about web development is at the mozillaZine Web Development/Standards Evangelism forum.<br />
    The helpers at that forum are more knowledgeable about web development issues.<br />
    You need to register at the mozillaZine forum site in order to post at that forum.<br />
    See http://forums.mozillazine.org/viewforum.php?f=25

  • How to use CSS to create horizontal nav bar in Dreamweaver CS6

    How to use CSS to create horizontal nav bar in Dreamweaver CS6

    One of the ways to do it is this: Tryit Editor v1.9
    You can also use floats to get something to the same effect.

  • Nube needs help inserting a JQuery horizontal menu bar into my site-help.

    Please forgive the ignorance of my questions but I am new to Mobile site design and Dreamweaver.
    I am trying to build a responsive web site for my company that can be viewed on multiple platforms, but am having trouble inserting a responsive menu and responsive slide show.
    This post is in regard to the  menu bar, which I have created using JQuery on a seperate page. I have managed to get the layout to work but still can't figure out how to create mouse overs for the links
    or how to insert it into my site. 
    Please help.
    Why can't I see the nav bar in the site when I paste in?
    All I see is the text and no images. I know I am pasting the code in the wrong place.
    Where do I insert it?
    Below is the code for the site and below that is the code for the menu bar.
    Where do I insert it? Help.
    Thank you in advance for any help you can provide.
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <!doctype html>
    <!--[if lt IE 7]> <html class="ie6 oldie"> <![endif]-->
    <!--[if IE 7]>    <html class="ie7 oldie"> <![endif]-->
    <!--[if IE 8]>    <html class="ie8 oldie"> <![endif]-->
    <!--[if gt IE 8]><!-->
    <html class="">
    <!--<![endif]-->
    <head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>Untitled Document</title>
    <link href="boilerplate.css" rel="stylesheet" type="text/css">
    <link href="css/master.css" rel="stylesheet" type="text/css">
    <!--
    To learn more about the conditional comments around the html tags at the top of the file:
    paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/
    Do the following if you're using your customized build of modernizr (http://www.modernizr.com/):
    * insert the link to your js here
    * remove the link below to the html5shiv
    * add the "no-js" class to the html tags at the top
    * you can also remove the link to respond.min.js if you included the MQ Polyfill in your modernizr build
    -->
    <!--[if lt IE 9]>
    <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->
    <script src="respond.min.js"></script>
    </head>
    <body>
    <div class="gridContainer clearfix">
      <div id="LayoutDiv1">
        <div align="center"><img src="images/Site Objects/headermain.png" alt="header"></div>
      </div>
      <div id="navbar">ul#navlist { font-family: <span class="navfont">sans-serif</span>; }
    ul#navlist a
    font-weight: bold;
    text-decoration: none;
    ul#navlist, ul#navlist ul, ul#navlist li
    margin: 0px;
    padding: 0px;
    list-style-type: none;
    ul#navlist li { float: left; }
    ul#navlist li a
    color: #ffffff;
    background-color: #<span class="navmainbg">003366</span>;
    padding: 3px;
    border: 1px #ffffff outset;
    ul#navlist li a:hover
    color: #ffff00;
    background-color: #<span class="submenubg">003366</span>;
    ul#navlist li a:active
    color: #cccccc;
    background-color: #003366;
    border: 1px #ffffff inset;
    ul#subnavlist { display: none; }
    ul#subnavlist li { float: none; }
    ul#subnavlist li a
    padding: 0px;
    margin: 0px;
    ul#navlist li:hover ul#subnavlist
    display: block;
    position: absolute;
    font-size: 8pt;
    padding-top: 5px;
    ul#navlist li:hover ul#subnavlist li a
    display: block;
    width: 10em;
    border: none;
    padding: 2px;
    ul#navlist li:hover ul#subnavlist li a:before { content: " >> "; }
    Read more: How to Make a Rollover Drop-Down Menu | eHow http://www.ehow.com/how_8569816_make-rollover-dropdown-menu.html#ixzz2WZQ3IDmU</div>
      <div id="slideshow">
      <div id="slideshow">
        <div align="center">
          <!-- Begin DWUser_EasyRotator -->
    <script type="text/javascript" src="http://c520866.r66.cf2.rackcdn.com/1/js/easy_rotator.min.js"></script>
    <div class="dwuserEasyRotator" style="width: 1225px; height: 400px; position:relative; text-align: left;" data-erConfig="{autoplayEnabled:true, randomize:true, autoplayDelay:3000, autoplayStopOnInteraction:false, autoplayPauseOnHover:false, audio_controllerLocation:'br', lpp:'102-105-108-101-58-47-47-47-85-115-101-114-115-47-77-97-99-50-47-68-111-99-117-109-1 01-110-116-115-47-69-97-115-121-82-111-116-97-116-111-114-80-114-101-118-105-101-119-47-11 2-114-101-118-105-101-119-95-115-119-102-115-47', wv:1}" data-erName="slideshow rotator" data-erTID="{hg3ysjwkx61418058007631}">
              <div data-ertype="content" style="display: none;"><ul data-erlabel=>
              <li>
                        <img class="main" src="_images/Site Objects/fades how/lrg_images/image09-turn.png" />
                        <img class="thumb" src="_images/Site Objects/fadess how/lrg_images/image09-turn.png" />
              </li>
              <li>
                        <img class="main" src="_images/Site Objects/fades how/lrg_images/image08-ss.png" />
                        <img class="thumb" src="_images/Site Objects/slides how/lrg_images/image08-ss.png" />
              </li>
              <li>
                        <img class="main" src="_images/Site Objects/slides how/lrg_images/image07-posters.png" />
                        <img class="thumb" src="_images/Site Objects/slides how/lrg_images/image07-posters.png" />
              </li>
              <li>
                        <img class="main" src="_images/Site Objects/slides how/lrg_images/image06-photo_ed.png" />
                        <img class="thumb" src="_images/Site Objects/slides how/lrg_images/image06-photo_ed.png" />
              </li>
              <li>
                        <img class="main" src="_images/Site Objects/slides how/lrg_images/image05-nwsmag.png" />
                        <img class="thumb" src="_images/Site Objects/slides how/lrg_images/image05-nwsmag.png" />
              </li>
              <li>
                        <img class="main" src="_images/Site Objects/slides how/lrg_images/image04-litigation.png" />
                        <img class="thumb" src="_images/Site Objects/slides how/lrg_images/image04-litigation.png" />
              </li>
              <li>
                        <img class="main" src="_images/Site Objects/slides how/lrg_images/image03-creative.png" />
                        <img class="thumb" src="_images/Site Objects/slides how/lrg_images/image03-creative.png" />
              </li>
              <li>
                        <img class="main" src="_images/Site Objects/slides how/lrg_images/image02-corp.png" />
                        <img class="thumb" src="_images/Site Objects/slides how/lrg_images/image02-corp.png" />
              </li>
              <li>
                        <img class="main" src="_images/Site Objects/slides how/lrg_images/image01-bound.png" />
                        <img class="thumb" src="_images/Site Objects/slides how/lrg_images/image01-bound.png" />
              </li>
    </ul>
    </div>
              <div data-ertype="layout" data-ertemplateName="NONE" style="">                              <div class="erdots" style="overflow: hidden; margin: 0; position:absolute;right:0;top:9px;width:300px; font-size: 10px; font-family: 'Lucida Grande', 'Lucida Sans', Arial, _sans; color: #FFF;" data-erConfig="{showText:false}" align="center">
                                            <div class="erdots_wrap" style="wasbackground-color: #CFC; float: right;" align="left"> <!-- modify the float on this element to make left/right/none=center aligned. -->
                                                      <span class="erdots_btn_selected" style="padding-left: 0; width: 20px; height: 20px; display: inline-block; text-align: center; vertical-align: middle; line-height: 20px; margin: 0 0 0 5px; cursor: default; background: url(http://easyrotator.s3.amazonaws.com/1/i/rotator/dots/export/20_14_black_65.png) top left no-repeat;">
                                                      </span>
                                                      <span class="erdots_btn_normal" style="padding-left: 0; width: 20px; height: 20px; display: inline-block; text-align: center; vertical-align: middle; line-height: 20px; margin: 0 0 0 5px; cursor: pointer; background: url(http://easyrotator.s3.amazonaws.com/1/i/rotator/dots/export/20_14_black_35.png) top left no-repeat;">
                                                      </span>
                                                      <span class="erdots_btn_hover" style="padding-left: 0; width: 20px; height: 20px; display: inline-block; text-align: center; vertical-align: middle; line-height: 20px; margin: 0 0 0 5px; cursor: pointer; background: url(http://easyrotator.s3.amazonaws.com/1/i/rotator/dots/export/20_14_black_65.png) top left no-repeat;">
                                                      </span>
                                            </div>
                                  </div>
                                  <div class="ercats erFixCSS3" style="position:absolute; left:0; right: 320px; top: 0;" style_real="padding: 4px 8px; font-family: 'Lucida Grande', 'Lucida Sans', Helvetica, Arial, _sans; font-size: 11px; color: #333; wasmargin: 0 50px 10px 50px; wasborder-radius: 6px; wasbackground-color: #EEE; wasborder: 1px solid #E0E0E0; overflow: hidden;">
                                            <div align="center">
                                              <!-- <div style="float: left; padding: 6px 18px 3px 0; font-weight: bold;">Title text!</div> -->
                                    </div>
                                            <div class="ercats_btn_selected erFixCSS3" style_real="float: left; padding: 3px 8px 4px 8px; border-radius: 4px; background-color: #FFF; box-shadow: 0 0 2px #999; wasborder: 1px solid #CFCFCF; color: #555; margin: 3px 9px 3px 0; cursor: default;">
                                              <div align="center">Title1 </div>
                                      </div>
                                            <div class="ercats_btn_normal erFixCSS3" style_real="float: left; padding: 3px 8px 4px 8px; border-radius: 4px; color: #666; cursor: pointer; margin: 3px 9px 3px 0;">
                                              <div align="center">Title2 </div>
                                            </div>
                                  </div>
                                  <div class="erimgMain" style="position: absolute; left:0; right:0; top:40px; bottom:0;" data-erConfig="{___numTiles:3, scaleMode:'fillArea', imgType:'main', __loopNextButton:false, arrowButtonMode:'rollover'}">
                                            <div class="erimgMain_slides" style="position: absolute; left:0; top:0; bottom:0; right:0;">
                                                      <div class="erimgMain_slide">
                                                                <div class="erimgMain_img" style="position: absolute; left: 0; right: 0; top: 0; bottom: 0;"></div>
                                                      </div>
                                    </div>
                                            <div class="erimgMain_arrowLeft" style="position:absolute; left: 10px; top: 50%; margin-top: -30px;" data-erConfig="{image:'circleBig', image2:'circleBig'}"></div>
                                            <div class="erimgMain_arrowRight" style="position:absolute; right: 10px; top: 50%; margin-top: -30px;" data-erConfig="{image:'circleBig', image2:'circleBig'}"></div>
                        </div><div class="erabout erFixCSS3" style="color: #FFF; text-align: left; background: #000; background:rgba(0,0,0,0.93); border: 2px solid #FFF; padding: 20px; font: normal 11px/14px Verdana,_sans; width: 300px; border-radius: 10px; display:none;">
                                  This <a style="color:#FFF;" href="http://www.dwuser.com/easyrotator/" target="_blank">jQuery slider</a> was created with the free <a style="color:#FFF;" href="http://www.dwuser.com/easyrotator/" target="_blank">EasyRotator</a> software from DWUser.com.
                                  <br /><br />
                Use WordPress? The free <a style="color:#FFF;" href="http://www.dwuser.com/easyrotator/wordpress/" target="_blank">EasyRotator for WordPress</a> plugin lets you create beautiful <a style="color:#FFF;" href="http://www.dwuser.com/easyrotator/wordpress/" target="_blank">WordPress sliders</a> in seconds.
                                  <br /><br />
                                  <a style="color:#FFF;" href="#" class="erabout_ok">OK</a>  
                        </div>
                        <noscript>
                                  Rotator powered by <a href="http://www.dwuser.com/easyrotator/">EasyRotator</a>, a free and easy jQuery slider builder from DWUser.com.  Please enable JavaScript to view.
                        </noscript>
                        <script type="text/javascript">/*Avoid IE gzip bug*/(function(b,c,d){try{if(!b[d]){b[d]="temp";var a=c.createElement("script");a.type="text/javascript";a.src="http://easyrotator.s3.amazonaws.com/1/js/nozip/easy_rotator.min.js";c.getElementsByTagName("head")[0].appendChild(a)}}catch(e){alert("EasyRotator fail; contact support.")}})(window,document,"er_$144");</script>
              </div>
    </div>
    <!-- End DWUser_EasyRotator -->
          <script type="text/javascript" src="http://c520866.r66.cf2.rackcdn.com/1/js/easy_rotator.min.js"></script>
        </div>
    <!-- End DWUser_EasyRotator --></div>
      </div>
      <div id="body">
        <div align="center"><img src="images/page templates/home pg tmplt blnk.png" alt="body"></div>
      </div>
      <div id="footer">
        <div align="center"><img src="images/Site Objects/footermainbck.png" alt="footer"></div>
      </div> 
    </div>
    </body>
    </html>
    Below is the code for the JQuery menu with sub and secondary sub menus:
    <!DOCTYPE html><!--[if IE 7]>
    <html lang="en" class="ie7 oldie"></html><![endif]--><!--[if IE 8]>
    <html lang="en" class="ie8 oldie"></html><![endif]-->
    <!-- [if gt IE 8] <!-->
    <html lang="en">
      <!-- <![endif]-->
      <head>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <title>FlexNav - Flexible, Device Agnostic Navigation</title>
        <link href="css/flexnav.css" media="screen, projection" rel="stylesheet" type="text/css">
        <link href="css/page.css" media="screen, projection" rel="stylesheet" type="text/css">
        <style type="text/css">
        body,td,th {
              font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
              font-size: 14pt;
        body {
              background-color: #FFF;
        a:link {
              color: #FFFFFF;
              text-decoration: none;
    a:visited {
              color: #FFF;
              text-decoration: none;
        a:hover {
              color: #F00;
              text-decoration: none;
    a:active {
              color: #900;
              text-decoration: none;
        </style>
        <script type="text/javascript" src="//use.typekit.net/qyb8ood.js"></script>
        <script type="text/javascript">try{Typekit.load();}catch(e){}</script>
      </head>
      <body bgcolor="#FFFFFF" vlink="#FF0000" alink="#990000" class="home-page">
      <script src="http://code.jquery.com/jquery-1.9.0.js" type="text/javascript"></script>
      <script src="js/jquery.flexnav.min.js" type="text/javascript"></script>
        <div class="container">
          <header id="site-header">
            <div class="menu-button">Menu</div>
            <nav>
              <ul data-breakpoint="800" class="flexnav">
                <li><a href="HOME">HOME</a>
                <li><a href="About Us">ABOUT US</a>
                <li><a href="Products">PRODUCTS</a>
                  <ul>
                    <li><a href="Bound Products">Bound Products</a>
                      <ul>
                        <li><a href="Booklets">Booklets</a></li>
                        <li><a href="Catalogs & Magazines">Catalogs & Magazines</a></li>
                        <li><a href="Newsletters">Newsletters</a></li>
                        <li><a href="Presentation Books">Presentation Books</a></li>
                        <li><a href="Manuals">Manuals</a></li>
                      </ul>
                    </li>
                  <li><a href="Brochures">Brochures</a></li>
                    <li><a href="Business Cards">Business Cards</a></li>
                    <li><a href="CD & DVD Dupe">CD & DVD Duplication</a></li>
                    <li><a href="Copies">Copies</a></li>
                    <li><a href="Corp. ID">Corporate ID</a></li>
                    <li><a href="Flyers">Flyers</a></li>
                    <li><a href="Forms">Forms</a></li>
                    <li><a href="Menus">Menus</a></li>
                    <li><a href="Photo Collages">Photo Collages</a></li>
                    <li><a href="Photo Enlargements">Photo Enlargements</a></li>
                    <li><a href="Postcards">Postcards</a></li>
                    <li><a href="Rack Cards">Rack Cards</a></li>
                    <li><a href="Wide Format">Wide Format</a>
                      <ul>
                        <li><a href="Banners">Banners</a></li>
                        <li><a href="Posters">Posters</a></li>
                        <li><a href="Signs">Signs</a></li>
                      </ul>
                    </li>
                  </ul>
                </li>
                <li><a href="Services">SERVICES</a>
                  <ul>
                    <li><a href="Litigation">Litigation Services</a></li>
                    <li><a href="Creative">Creative Services</a></li>
                  </ul>
                </li>
                <li><a href="FAQs">FAQs</a>
                <li><a href="Contact Us">CONTACT US</a>
              </ul>
            </nav>
          </header>
          \ </div>
        <script type="text/javascript">$(".flexnav").flexNav();</script>
    </body>
    </html>

    Ok, I managed to place the menu within the site, but I still don't have a horizontal menu. All I can see is the unordered list. 
    (see below).
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <!doctype html>
    <!--[if lt IE 7]> <html class="ie6 oldie"> <![endif]-->
    <!--[if IE 7]>    <html class="ie7 oldie"> <![endif]-->
    <!--[if IE 8]>    <html class="ie8 oldie"> <![endif]-->
    <!--[if gt IE 8]><!-->
    <html class="">
    <!--<![endif]-->
    <head>
    <meta charset="UTF-8">
    <title>Home Page</title>
    <meta name="view" name="viewport" content="width=device-width, initial-scale=1.0"/>
    <meta http-equiv="X-UA-Compatible" content="IE=9 />
    <link href="boilerplate.css" rel="stylesheet" type="text/css">
    <link href="css/master.css" rel="stylesheet" type="text/css">
    <!--[if lt IE 9]>
    <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->
    <script src="http://code.jquery.com/jquery-1.9.0.js" type="text/javascript"></script>
    <script src="js/jquery.flexnav.min.js" type="text/javascript"></script>
    <style type="text/css">
    img {margin:6px; border:solid 2px #FFF;}
    img:hover  {background: #666;}
    </style>
    <link href="styles/navbar stylesheet new.css" ref="stylesheet" type="text/css" />
    </head>
    <body>
    <div class="gridContainer clearfix">
      <div id="LayoutDiv1">
        <div align="center"><img src="images/Site Objects/headermain.png" alt="header"></div>
      </div>
      <div id="navbar"><script src="http://code.jquery.com/jquery-1.9.0.js" type="text/javascript"></script>
      <script src="js/jquery.flexnav.min.js" type="text/javascript"></script>
        <div class="#"
            <div class="menu-button"></div>
            <nav>
              <ul data-breakpoint="800" class="flexnav">
                <li><a href="HOME">HOME</a>
                <li><a href="About Us">ABOUT US</a>
                <li><a href="Products">PRODUCTS</a>
                  <ul>
                    <li><a href="Bound Products">Bound Products</a>
                      <ul>
                        <li><a href="Booklets">Booklets</a></li>
                        <li><a href="Catalogs & Magazines">Catalogs & Magazines</a></li>
                        <li><a href="Newsletters">Newsletters</a></li>
                        <li><a href="Presentation Books">Presentation Books</a></li>
                        <li><a href="Manuals">Manuals</a></li>
                      </ul>
                    </li>
                  <li><a href="Brochures">Brochures</a></li>
                    <li><a href="Business Cards">Business Cards</a></li>
                    <li><a href="CD & DVD Dupe">CD & DVD Duplication</a></li>
                    <li><a href="Copies">Copies</a></li>
                    <li><a href="Corp. ID">Corporate ID</a></li>
                    <li><a href="Flyers">Flyers</a></li>
                    <li><a href="Forms">Forms</a></li>
                    <li><a href="Menus">Menus</a></li>
                    <li><a href="Photo Collages">Photo Collages</a></li>
                    <li><a href="Photo Enlargements">Photo Enlargements</a></li>
                    <li><a href="Postcards">Postcards</a></li>
                    <li><a href="Rack Cards">Rack Cards</a></li>
                    <li><a href="Wide Format">Wide Format</a>
                      <ul>
                        <li><a href="Banners">Banners</a></li>
                        <li><a href="Posters">Posters</a></li>
                        <li><a href="Signs">Signs</a></li>
                      </ul>
                    </li>
                  </ul>
                </li>
                <li><a href="Services">SERVICES</a>
                  <ul>
                    <li><a href="Litigation">Litigation Services</a></li>
                    <li><a href="Creative">Creative Services</a></li>
                  </ul>
                </li>
                <li><a href="FAQs">FAQs</a>
                <li><a href="Contact Us">CONTACT US</a>
              </ul>
            </nav>
          </header>
          </div>
        <script type="text/javascript">$(".flexnav").flexNav();</script>
      </div>
      <div id="body">
        <div align="center"><img src="images/page templates/home pg tmplt blnk.png" alt="body"></div>
      </div>
      <div id="footer">
        <div align="center"><img src="images/Site Objects/footermainbck.png" alt="footer"></div>
      </div> 
    </div>
    </body>
    </html>

  • Spry Horizontal Nav Bar not working in IE7

    I'm currently working on a website for South Jersey MOM
    Magazine (www.southjerseymom.com). The header layer contains a
    graphic and a Spry horizontal menu bar for navigation. The
    navigation works properly in Firefox. However, when I go to open up
    the page in IE, it originally shows the navigation bar, along with
    a Information Bar menu asking if I want to allow active script to
    run. When I click "yes" to allow the content, then the bar
    disappears and doesn't work. Any suggestions?

    I'm currently working on a website for South Jersey MOM
    Magazine (www.southjerseymom.com). The header layer contains a
    graphic and a Spry horizontal menu bar for navigation. The
    navigation works properly in Firefox. However, when I go to open up
    the page in IE, it originally shows the navigation bar, along with
    a Information Bar menu asking if I want to allow active script to
    run. When I click "yes" to allow the content, then the bar
    disappears and doesn't work. Any suggestions?

  • How do I vertically center links in spry horizontal nav bar?

    OS: Mac OS 10.6.7
    APP: Dreamweaver CS5.5
    Browser: Opera, Safari, Firefox, Chrome
    At first, positioning looked great in Chrome and Firefox but was off in Safari and Opera. The link text appeared half on the background image and half below it.
    After ample fiddling, vertical positioning is not working in any browser. Please let me know what properties, in what combination, used on which HTML objects will get me reliable results.
    HTML:
    <script src="../SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
    <link href="../SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" />
    <link href="../styles/styles.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
    <div class="container">
      <div class="header"><a href="../index.html"><img src="../images/banner.jpg" width="848" height="160" alt="Dorsay &amp; Easton LLP, Indian Law, Home Page" /></a></div>
       <div class="menuImg">
      <ul id="MenuBar3" class="MenuBarHorizontal">
        <li id="home" name="home"><a href="../index.html" title="Home page">Home</a></li>
        <li id="practice"><a href="../practice.html" title="Practice Areas">Practice Areas</a></li>
        <li id="team"><a href="../team.html" title="The Team at Dorsay &amp; Easton">The Team</a></li>
        <li id="contact"><a href="../contact.html" title="Contact Us">Contact Us</a></li>
        <li id="canoe"><a href="#"> </a></li>
      </ul>
    </div>
    CSS:
    /* The outermost container of the Menu Bar, an auto width box with no margin or padding */
    ul.MenuBarHorizontal
         list-style-type: none;
         font-size: 110%;
         cursor: default;
         width: auto;
         background-image: url(../images/menubackgrd.jpg);
         vertical-align: middle;
         position: relative;
         height: 38px;
         margin: 0px;
         padding-top: 0px;
    /* Set the active Menu Bar with this class, currently setting z-index to accomodate IE rendering bug: http://therealcrisp.xs4all.nl/meuk/IE-zindexbug.html */
    ul.MenuBarActive
         z-index: 1000;
    /* Menu item containers, position children relative to this container and are a fixed width */
    ul.MenuBarHorizontal li
         margin: 0;
         list-style-type: none; /* jacq addition. not working? */
         cursor: pointer;
         float: left;
         position: relative;
         height: 38px;
         padding: 2px;
    ul.MenuBarHorizontal a {
         font-family: "Lucida Sans Unicode", "Lucida Grande", sans-serif;
         color: #CC6;
         text-decoration: none;
         padding-top: 10px;
         padding-right: 12px;
         padding-bottom: 10px;
         padding-left: 12px;
    ul.MenuBarHorizontal a:hover, ul.MenuBarHorizontal a:focus
         font-family: "Lucida Sans Unicode", "Lucida Grande", sans-serif;
         color: #FFC;
         text-decoration: none;
         margin: 0px;
    ul.MenuBarHorizontal a:active
         color: #FFC;
         text-decoration: none;
         margin: 0px;
    /* Submenus should appear below their parent (top: 0) with a higher z-index, but they are initially off the left side of the screen (-1000em) */
    /* commenting out all submenu style info
    ul.MenuBarHorizontal ul
         margin: 0;
         padding: 0;
         list-style-type: none;
         font-size: 100%;
         z-index: 1020;
         cursor: default;
         position: absolute;
         left: -1000em;
    /* Submenu that is showing with class designation MenuBarSubmenuVisible, we set left to auto so it comes onto the screen below its parent menu item
    ul.MenuBarHorizontal ul.MenuBarSubmenuVisible
         left: auto;
    /* Menu item containers are same fixed width as parent
    ul.MenuBarHorizontal ul li
         width: 8.2em;
    /* Submenus should appear slightly overlapping to the right (95%) and up (-5%)
    ul.MenuBarHorizontal ul ul
         position: absolute;
         margin: -5% 0 0 95%;
    /* Submenu that is showing with class designation MenuBarSubmenuVisible, we set left to 0 so it comes onto the screen
    ul.MenuBarHorizontal ul.MenuBarSubmenuVisible ul.MenuBarSubmenuVisible
         left: auto;
         top: 0;
    DESIGN INFORMATION: describes color scheme, borders, fonts
    /* Submenu containers have borders on all sides
    ul.MenuBarHorizontal ul
         border: 1px solid #CCC;
    SUBMENU INDICATION: styles if there is a submenu under a given menu item
    /* Menu items that have a submenu have the class designation MenuBarItemSubmenu and are set to use a background image positioned on the far left (95%) and centered vertically (50%)
    ul.MenuBarHorizontal a.MenuBarItemSubmenu
         background-image: url(SpryMenuBarDown.gif);
         background-repeat: no-repeat;
         background-position: 95% 50%;
    /* Menu items that have a submenu have the class designation MenuBarItemSubmenu and are set to use a background image positioned on the far left (95%) and centered vertically (50%)
    ul.MenuBarHorizontal ul a.MenuBarItemSubmenu
         background-image: url(SpryMenuBarRight.gif);
         background-repeat: no-repeat;
         background-position: 95% 50%;
    /* Menu items that are open with submenus have the class designation MenuBarItemSubmenuHover and are set to use a "hover" background image positioned on the far left (95%) and centered vertically (50%)
    ul.MenuBarHorizontal a.MenuBarItemSubmenuHover
         background-image: url(SpryMenuBarDownHover.gif);
         background-repeat: no-repeat;
         background-position: 95% 50%;
    /* Menu items that are open with submenus have the class designation MenuBarItemSubmenuHover and are set to use a "hover" background image positioned on the far left (95%) and centered vertically (50%)
    ul.MenuBarHorizontal ul a.MenuBarItemSubmenuHover
         background-image: url(SpryMenuBarRightHover.gif);
         background-repeat: no-repeat;
         background-position: 95% 50%;
    BROWSER HACKS: the hacks below should not be changed unless you are an expert
    /* HACK FOR IE: to make sure the sub menus show above form controls, we underlay each submenu with an iframe */
    ul.MenuBarHorizontal iframe
         position: absolute;
         z-index: 1010;
         filter:alpha(opacity:0.1);
    /* HACK FOR IE: to stabilize appearance of menu items; the slash in float is to keep IE 5.0 from parsing */
    @media screen, projection
    ul.MenuBarHorizontal li.MenuBarItemIE
         display: inline;
         f\loat: left;
         background: #FFF;
    #practice {
         height: 38px;
    #home {
         height: 38px;
         margin-left: 5px;
    #team {
         height: 38px;
    #contact {
         height: 38px;
    #canoe {
         height: 38px;
         width: 285px;
    .menuImg {
         background-image: url(../../../DW-CIB/images/menubackgrd.jpg);
         height: 38px;
         width: 848px;
         position: inherit;
         visibility: visible;
         z-index: 2;
         top: auto;
         bottom: inherit;
         vertical-align: middle;
    Thanks!
    gotsowell

    Try line-height: 19px; and display: block; (as shown) on the following css seletor :
    ul.MenuBarHorizontal a {
         font-family: Lucida Sans Unicode, Lucida Grande, sans-serif;
         color: #CC6;
         text-decoration: none;
         padding-top: 10px;
         padding-right: 12px;
         padding-bottom: 10px;
         padding-left: 12px;
         line-height: 19px;
         display: block;
    Normally setting a height on a container which you have no control over is not a good idea. The text can be enlarged and that will throw everything off. The best way is to set no heights at all but use padding and make sure your background image is flexible enough to accommodate the text enlargement.
    ul.MenuBarHorizontal a {
          padding: 12px 12px;
         display: block;

  • Help centering text

    I'm trying to center a line of text in the text area.
    If the text entered can be displayed on one line, I would like the text centered; otherwise it should use the word wrap.
    I tried creating a method called center:
    // Defined outside this method, but shown since it is being referenced.
    int textAreaWidth = (int) textArea.getPreferredScrollableViewportSize().getWidth();     public String center(String text)
         int stringWidth = metrics.stringWidth(text);
         if (stringWidth > textAreaWidth)
              // Only handles text shorter than one line.
              return text;
         int availableWidth = textAreaWidth - stringWidth;
         int availableSpaces = availableWidth / metrics.charWidth(' ');
         int spacesToAdd = availableSpaces / 2;   
         // Adds the leading spaces to the text to center it.
         // Adds a trailing space as well to test the actual metrics length.
         for (int index = 0; index < spacesToAdd; index++)
              text = " " + text + " ";
         return text;
    }I coudln't find anything to use in the Java Doc, so I thought I'd write one to help me out.
    Testing it, I used:
    textArea.setText(center("m"));The issue is that the JTextArea is returning a width of 300. That is correctly set, and returning the right width.
    The string width is returning at 11, which is expected for the letter m.
    The available width is 289. Also correct. 300 - 11 = 289
    The metrics character width of a space is 3.
    The spacesToAdd returns at 48.
    A string with a metrics width of 299 is returned. That being, 48 spaces and the letter m.
    However, the JTextArea displayed in the JPanel shows this text wrapping onto a second line -- indicating the JTextArea displayed is not the actual width I set it to.
    The code to setup the JTextArea is as follows:
    JPanel panel = new JPanel();
    textArea = new JTextArea();
    textArea.setPreferredSize(new Dimension(300, 60));
    textArea.setLineWrap(true);
    textArea.setFocusable(false);
    textArea.setEditable(false);
    textArea.setWrapStyleWord(true);
    textArea.setFont(APP_FONT);
    scrollPane = new JScrollPane(textArea);
    scrollPane.setBorder(BorderFactory.createEmptyBorder());
    panel.add(scrollPane);What am I doing wrong?
    I suppose I could use a document and set styles... but ... I was trying to get this working...
    Help would be appreciated.. Thanks!

    If you need further help then you need to create a [url http://homepage1.nifty.com/algafield/sscce.html]Short, Self Contained, Compilable and Executable, Example Program (SSCCE) that demonstrates the incorrect behaviour, because I can't guess exactly what you are doing based on the information provided.
    Don't forget to use the [url http://forum.java.sun.com/help.jspa?sec=formatting]Code Formatting Tags so the posted code retains its original formatting.

  • Help with the spry horizontal menu bar

    I am pretty new at this. I want to change the back ground
    color of the bar. I did get one of the menu to change background
    color. The other would not change color when I change them using
    the CSS panel. Am I missing some SW or is there something special
    that I need to do.
    my test
    page
    Thank you for your help.
    Thi

    *Bump

  • Centering text vertically & horizontally on a page

    Anyone know how to do this? I know how to center text within a text frame but what about a whole page. In this instance I would like to center it on a business card!
    Thanks!

    Windows>Align
    Then Select
    To: Page
    And then hit the center button on the vertical and horizontal

  • Centering a Div Horizontally

    Hello,
    I need help centering a div horizontally with CSS.  What I'm trying to do is get this box that will contain text to center on the page and then I will expand it's width to match the image right above it, to fit the design.
    Here is my code (i made the code of the div that I want to center within the document bold):
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta name="description" content="Lorentz Painting Co.: Pristine, Precise and Professional" />
    <meta name="keywords" content="Maciej Lorenz, paint, high quality, interior, exterior, co., painting, professional, New England, Vermont, Nassachussetts, Boston, New York New Hampshire, New England" />
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>The Nantucket Gift Basket Company</title>
    <link href="stylesMain.css" rel="stylesheet" type="text/css" />
    <!--[if lt IE 7]>
    <link rel="stylesheet" type="text/css" href="PNGfix.css" />
    <![endif]-->
    <!--[if lte IE 7]>
    <style type="text/css">
    #hornav ul li { padding: 0 0 0 10px; }
    </style>
    <![endif]-->
    <!--[if lte IE 6]>
    <style type="text/css">
    #wrapper-body, #wrapper-1, #wrapper-2, #wrapper-3 { height: 1%; }
    </style>
    <![endif]-->
    <script type="text/javascript" src="scripts.js"></script>
    <style type="text/css">
    #apDiv1 {
        position:absolute;
        width:1844px;
        height:43px;
        z-index:1;
        left: 64px;
        top: 253px;
    body {
        background-color: #FFF;
        background-image: url(shingles1.jpg);
        background-repeat: repeat;
    a:link {
        text-decoration: none;
        color: #FFF;
    a:visited {
        text-decoration: none;
        color: #FFF;
    a:hover {
        text-decoration: none;
        color: #FF0;
    a:active {
        text-decoration: none;
        color: #FF0;
    </style>
    <script type="text/javascript">
      var _gaq = _gaq || [];
      _gaq.push(['_setAccount', 'UA-3119473-5']);
      _gaq.push(['_setDomainName', 'none']);
      _gaq.push(['_setAllowLinker', true]);
      _gaq.push(['_trackPageview']);
      (function() {
        var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
        ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
        var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
    </script>
    <script type="text/javascript">
      var _gaq = _gaq || [];
      _gaq.push(['_setAccount', 'UA-3119473-6']);
      _gaq.push(['_setDomainName', 'none']);
      _gaq.push(['_setAllowLinker', true]);
      _gaq.push(['_trackPageview']);
      (function() {
        var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
        ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
        var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
    </script>
    <script type="text/javascript">
      var _gaq = _gaq || [];
      _gaq.push(['_setAccount', 'UA-3119473-7']);
      _gaq.push(['_trackPageview']);
      (function() {
        var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
        ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
        var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
    </script>
    </head>
    <body>
    <div id="wrapper-1">
      <div id="branding">
        <h1><img src="Nantucket Products_editedsmaller.jpg" width="482" height="326" /></h1>
            <p> </p>
            <div id="content-2">
          <div class="content-wrap">
            <p> </p>
            <p>ddddddddddddddddddddddddddddddddddddddddddddd</p>
            <p> </p>
          </div>
        </div>
        <p> </p>
        <p> </p>
        <p> </p>
        <p> </p>
        <p> </p>
        <h1>  </h1>
        <div id="wrapper-2">
          <div id="wrapper-3">
            <div id="content-bottom"></div>
          </div>
          <div id="footer">
            <p> </p>
            <p><a href="index.php" title="Lorentz Painting; Why us? We are the best and most affordable painting company in New England, MA, NH, NY, VT, CT, ME and etc.">Home</a> - <a href="gift_baskets.php" title="Lorentz Painting Co.: Products &amp; Services; nothing but the finest painting products that can be found in the market., New England, VT, NH, MA, NY, CT, ME">Gift Baskets</a> - <a href="contact.php" title="Contact Lorentz Painting Co. Today for the best painting value in New England, VT, NH, MA, NY, CT">Contact</a></p>
    <p><strong><a href="sitemap.html" title="Site Map of Lorentz Painting Co. the most professional and highest quality painting company in New England, VT, NY, NH, MA, ME, CT">The Nantucket Gift Basket  Co., 2011</a></strong></p>
            <p><strong><a href="http://cwws.org" title="Common Wealth Web Solutions" target="_new">Designed by CWWS</a></strong>      </p>
            <p> </p>
          </div>
        </div>
      </div>
    </div>
    <script type="text/javascript">
    swfobject.registerObject("Lorentz Painting Co.: The best value in painting in New England, NY, VT, NH, MA, ME, CT.  A professional company that produces high quality results.");
    swfobject.registerObject("Lorentz Painting Co.: The most Pristine, Precise and Professional Painting Company in New England, NY, VT, NH, MA, ME, CT.");
    swfobject.registerObject("Lorentz Painting Co.: High Quality painting at an affordable price.  Serving New England, NY, VT, NH, MA, ME, CT.");
    </script>
    </body>
    </html>

    Thank you guys for bringing me good advice/info, I attempt to put it to use tonight and I will get back to you and let you know how it goes.
    Thanks!
    Date: Tue, 7 Jun 2011 21:39:44 -0600
    From: [email protected]
    To: [email protected]
    Subject: Centering a Div Horizontally
    Have a look at the following simplified example
    <!DOCTYPE HTML>
    <html>
    <head>
    <meta charset="utf-8">
    <title>Untitled Document</title>
    <style>
    html {
         height: 100%;
         background: #CCC;
    body {
         width: 960px;
         margin: auto;
         background: #FCF;
         height: 100%
    h1 {
         margin: 1.5em 20px;
    #header {
         width: 482px;
         margin: auto;
         height: 326px;
         background: #FF9;
         text-align: center;
    </style>
    </head>
    <body>
    <div id="header">
    <p>this is the space for your image</p>
    </div>
    h1. This can be a header
    </body>
    </html>
    Notice how, with a block element, the width is set to a value combined with a margin set to auto. This principle can be used for any block element including BODY
    The idea is to keep it simple
    Gramps
    >

  • Master Sheets - Created Nav Bar is Behind Assets (back layer?)

    Is there a way to get assets created in the Master Sheet to be the top layer?
    Creating a web page with the horizontal nav bar across the top.
    I used the template and built off of that.  When I finished with the nav bar in the Master Sheet, I started to add content to my normal sheets.  The nav bar, and the drop down navigation I created are behind any assets added to the slides.
    I included a mock up of another nav bar I created.  The "Home" text asset added to Sheet 1 is covering my nav bar I created in the Master Sheet.  The nav bar is in the activated state for the "Home" button.  I am using a layer stack and mouse events to create the drop down and button select effect.

    Hello,
    I've spoken with the development team and they've explained this here:
    A master sheet can be used as a front master and a back master. It  is even possible to have a back and front master. You can select the  masters in the properties of the sheet - by default only a back master  is used.
    Thanks again for your question!
    Sarah
    Sarah
    Forum Moderator

  • Why does the nav bar move in a browser??

    Please help!  In dreamweaver the nav bar looks perfect and is over the top of the blue line under the picture header but when I put it in a browser, it moves as you can see from my link!!
    test site
    Please can anyone tell me why??  I have a feeling it will be a CSS positioning thing but I am very very new to this so do not know how to rectify!
    Thanks if you can help!

    Look this is not a good solution, it just hacks around the issue.
    Add this to the css style:
    #header p {
    padding: 60px 0 0 0;
    margin: 0;
    Then you need to go into code view and change these code lines:
    <div id="container">
      <div id="header"><br >
        <p align="right"><br >Complete Energy Certificates Ltd </p>
        <p align="right">&nbsp;<br><br >
        </p>
        <div align="center">
    To this:
    <div id="container">
      <div id="header">
    <p align="right">Complete Energy Certificates Ltd </p>
        <div align="center" style="margin-top: 71px;">
    Now let me explain. You're trying to position elements using <br> tags which will not work. The solution I provided is a sticking plaster one and may fail in some browsers because it still relies on guess work.
    A far better option would be to rebuild that top section of your page into a solid structure.
    A <div> which contains the grass bank and sky image but NOT the blue line that your navigation sits on. You can set this <divs> height to the height of the image and then include your text 'Complete Energy Certificates Ltd' within it.
    Like:
    <div id="header">
    <p>Complete Energy Certificates Ltd</p>
    </div><!-- we close the header -->
    Now set some css:
    .twoColElsLtHdr #header {
    background-color: #FFF;
    background-image: url(images/header2.jpg);
    background-repeat: no-repeat;
    background-position: center;
    font-size: 12px;
    height: 205px; /* make the height the same as that of the background image */
    Move your 'Complete Energy Certificates Ltd' text into position by setting some top
    and right padding on the paragraph tag:
    .twoColElsLtHdr #header p {
    margin: 0;
    padding: 60px 10px 0 0;/*top,right,bottom,left*/
    text-align: right;
    Next introduce a navigation <div> right after the 'header' <div> and put all the table code relating to yuor menu in it:
    <div id="header">
    <p>Complete Energy Certificates Ltd</p>
    </div><!-- we close the header -->
    <div id="navigation">
    <!-- all table code for navigation goes here -->
    </div><!-- we close the navigation -->
    Style your naviagtion <div> to have a blue background that matches the menu images:
    #navigation {
    background-color: #XXX;
    Think of contruction as simple building blocks.

  • New desktop has wrong path for page links in nav bar

    I created a new desktop and have the following problem. The image links to portal
    pages in the horizontal nav bar in the top have wrong path.
    Example.
    In the original portal the home page link in the nav bar has a image associated
    with it in workshop.
    \framework\skin\classic\images\home.gif
    The partial url generated for the image looks liek this:
    \mywebapp\\framework\skin\classic\images\home.gif.
    I created a new desktop everything works fine except for the images. The href's
    are created for the links but the image path is wrong.
    the url generated is : \mywebapp\appmanager\framework\skin\classic\images\home.gif
    The "appmanager" in the path causes the problem.
    Is this a bug?

    Hi Subbu,
    I used workshop page properties to associate the image to the page.
    framework/skins/classic/images/home.gif
    - Shankar
    Subbu Allamaraju <[email protected]> wrote:
    Shankar,
    Did you use any tag to create the img tag? Do you have any sample
    HTML/JSP snippet?
    Subbu
    Shankar Bala wrote:
    I created a new desktop and have the following problem. The imagelinks to portal
    pages in the horizontal nav bar in the top have wrong path.
    Example.
    In the original portal the home page link in the nav bar has a imageassociated
    with it in workshop.
    \framework\skin\classic\images\home.gif
    The partial url generated for the image looks liek this:
    \mywebapp\\framework\skin\classic\images\home.gif.
    I created a new desktop everything works fine except for the images.The href's
    are created for the links but the image path is wrong.
    the url generated is : \mywebapp\appmanager\framework\skin\classic\images\home.gif
    The "appmanager" in the path causes the problem.
    Is this a bug?

  • Need help with linking text to nav bar please

    Basically, i designed a layout in photoshop7.0. I sliced it
    all, but left areas for where i wanted to type in text, then saved
    for web and opened it up in dreamweaver 8. The thing is, i dont
    know how to write the text in the area i left empty and it only
    shows when i click a certain nav bar. I usually use iframes, but
    this isnt gonna' be iframe friendly !!
    Just to reiterate, i know how to type in the boxes, just dont
    know how to link them to the nav bar buttons..
    Any help would be appreciated,
    Kind Regards,
    Shyam Tanna.

    This tutorial will show you how to do what you want.
    http://www.communitymx.com/content/article.cfm?cid=A0C1CA697A4E9774

Maybe you are looking for

  • After downloading iOS 7 on iPhone 5 the control center won't open.

    When I swipe up from the bottom, nothing happens. Both of the control center options are enabled in the settings. Help!

  • Problem with save as box

    Hello, i have a PHP script that will pop up a save as dialog box. This script works well at Firefox and IE7, but when i test it with Safari for Windows. It will download the PHP script itself and not the file that i want to give to user. Can someone

  • What happened to dhcp clients log?

    Not sure when but now I only have one log menu. Under advanced, Logging & SNMP,Logs and Statistics there used to be 3 log menus. Now I only have "Logs". What happened to dhcp clients? Version - 7.3.2 running DHCP(Share a public IP address) Tx

  • Error code 82 occurs during installation...how to overcome?

    Error code 82 occurs during installation...how to overcome?

  • My iPhoto suddenly crashes on opening...

    My MacBook Pro w/10.6.8 suddenly has a defective iPhoto. Upon iPhoto opening, first I get a blank iPhoto window, then the swirling rainbow dot for appx. 1 min., then it crashes & closes [2 error codes displayed are "EXC-BAD-ACCESS" & "THREAD 0 CRASHE