Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 6 of 6
  1. #1
    Junior Member
    Join Date
    Jul 2012
    Posts
    26
    Member #
    32295
    Liked
    3 times
    I looked over my code and cant figure out why the topbar class wont repeat across the top of the page, I'm overlooking something... btw I used an old template from dreamweaver so its heavily commented but im editing in Bluefish

    HTML Code:
    <!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 http-equiv="content-type" content="text/html; charset=UTF-8" />
    <title>Untitled Document</title>
    <style type="text/css">
    
    body {
        font: 100%/1.4 Verdana, Arial, Helvetica, sans-serif;
        background: #6F83D6;
        margin: 0;
        padding: 0;
    
    }
    
    /* ~~ Element/tag selectors ~~ */
    ul, ol, dl {
        padding: 0;
        margin: 0;
    }
    h1, h2, h3, h4, h5, h6, p {
        margin-top: 0;
        padding-right: 15px;
        padding-left: 15px;
    }
    a img {
        border: none;
    }
    a:link {
        color:#fff;
        text-decoration: underline;
    }
    a:visited {
        color: #F2F2E6;
        text-decoration: underline;
    }
    a:hover, a:active, a:focus {
        text-decoration: none;
    }
    
    /* ~~ This fixed width container surrounds all other divs ~~ */
    .container {
        width: 960px;
        background:#fff;
        margin: 0 auto;
    }
    
    .header {
        color:#FFF;
        width:900px;
        margin: 0 auto;
    }
       
    .jslider{
        background:#000;
        height: 250px;
        color:#fff;
        width:658px;
        height:286px;
        position:relative;
      
    }
    
    .bartop{
        background:#FFB300;
        height:15px;
        margin: 0 auto;
    }
    
    .sidebar1 {
        float: left;
        width: 180px;
        background:#4965D6;
        padding-bottom: 10px;
        color:#fff;
    }
    /*inside sidebar1*/
    
    .member_login{
        height:200px;
        background:#fff;
    
    }
    .content {
    
        padding: 10px 0;
        width: 600px;
        float: left;
        background:#FFF;
    }
    
    .sidebar2 {
        float: left;
        width: 180px;
        background: #1533AD;
        padding: 10px 0;
        color:#fff;
    }
    
    /* ~~ This grouped selector gives the lists in the .content area space ~~ */
    .content ul, .content ol {
        padding: 0 15px 15px 40px;
    }
    
    /* ~~ The navigation list styles (can be removed if you choose to use a premade flyout menu like Spry) ~~ */
    ul.nav {
        list-style: none; /* this removes the list marker */
        border-top: 1px solid #fff; /* this creates the top border for the links - all others are placed using a bottom border on the LI */
        margin-bottom: 15px; /* this creates the space between the navigation on the content below */
    }
    ul.nav li {
        border-bottom: 1px solid #fff; /* this creates the button separation */
    }
    ul.nav a, ul.nav a:visited { /* grouping these selectors makes sure that your links retain their button look even after being visited */
        padding: 5px 5px 5px 15px;
        display: block; /* this gives the anchor block properties so it fills out the whole LI that contains it so that the entire area reacts to a mouse click. */
        width: 160px;  /*this width makes the entire button clickable for IE6. If you don't need to support IE6, it can be removed. Calculate the proper width by subtracting the padding on this link from the width of your sidebar container. */
        text-decoration: none;
        background: #FFB300;
    }
    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 */
        background: #FFF;
        color: #000;
    }
    
    /*Horizontal navbar*/
    
    .top_nav{
        height:108px;
        width:100%;
        color:#FFB300;
        font-family:Session, sans-serif;
        background-image:url('/home/silverangel/Desktop/Work/Sites/Godfax/images/bars.jpg') repeat-x;
     
    }
    
    .top_nav a{
        color:#FFB300;
        font-size:14px;
        padding:7px 20px 0 0;
        text-decoration:none;
        text-align:right;
        float:right;
        }
    
    .top_nav a:hover{
        color:#FFFFFF;
        font-size:14px;
        padding:7px 20px 0 0;
        text-decoration:none;
        text-align:right;
        float:right;
    
        }
      
    /* ~~ The footer styles ~~ */
    
    .footer p{
        padding:0 30px;
    }
    
    .footer {
        padding: 10px 0;
        background: #1533AD;
        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 */
        color:#FFF;
    
    }
    
    /* ~~ 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;
    }
    
    @font-face
    {
    font-family: Sessions;
    src: url('/home/silverangel/Desktop/Work/Sites/Godfax/fonts/Sessions.ttf');
    
    }
     
    -->
    </style></head>
    
    <body>
     
        <div class="top_nav">
      <a href="#">Contact</a>
      <a href="#">Community</a>
      <a href="#">About</a>
      <a href="#">Home</a>
          </div>
    
    <div class="container">
      
      <div class="header">
          <br />
          <br />
       
          <div class="jslider">
        javascript app here
              </div>
      
        <!-- end .header --></div>
        <div class="bartop">
          </div>
      <div class="sidebar1">
        <div class="member_login">
            </div>
        <ul class="nav">
          <li><a href="#">Link one</a></li>
          <li><a href="#">Link two</a></li>
          <li><a href="#">Link three</a></li>
          <li><a href="#">Link four</a></li>
        </ul>
        <p> The above links demonstrate a basic navigational structure using an unordered list styled with CSS. Use this as a starting point and modify the properties to produce your own unique look. If you require flyout menus, create your own using a Spry menu, a menu widget from Adobe's Exchange or a variety of other javascript or CSS solutions.</p>
        <p>If you would like the navigation along the top, simply move the ul.nav to the top of the page and recreate the styling.</p>
        <!-- end .sidebar1 --></div>
      <div class="content">
        <h1>Instructions</h1>
        <p>Be aware that the CSS for these layouts is heavily commented. If you do most of your work in Design view, have a peek at the code to get tips on working with the CSS for the fixed layouts. You can remove these comments before you launch your site. To learn more about the techniques used in these CSS Layouts, read this article at Adobe's Developer Center - <a href="http://www.adobe.com/go/adc_css_layouts">http://www.adobe.com/go/adc_css_layouts</a>.</p>
        <h2>Clearing Method</h2>
        <p>Because all the columns are floated, this layout uses a clear:both declaration in the .footer rule. This clearing technique forces the .container to understand where the columns end in order to show any borders or background colors you place on the .container. If your design requires you to remove the .footer from the .container, you'll need to use a different clearing method. The most reliable will be to add a &lt;br class=&quot;clearfloat&quot; /&gt; or &lt;div  class=&quot;clearfloat&quot;&gt;&lt;/div&gt; after your final floated column (but before the .container closes). This will have the same clearing effect.</p>
        <h3>Logo Replacement</h3>
        <p>An image placeholder was used in this layout in the .header where you'll likely want to place  a logo. It is recommended that you remove the placeholder and replace it with your own linked logo. </p>
        <p> Be aware that if you use the Property inspector to navigate to your logo image using the SRC field (instead of removing and replacing the placeholder), you should remove the inline background and display properties. These inline styles are only used to make the logo placeholder show up in browsers for demonstration purposes. </p>
        <p>To remove the inline styles, make sure your CSS Styles panel is set to Current. Select the image, and in the Properties pane of the CSS Styles panel, right click and delete the display and background properties. (Of course, you can always go directly into the code and delete the inline styles from the image or placeholder there.)</p>
        <!-- end .content --></div>
      <div class="sidebar2">
        <h4>Backgrounds</h4>
        <p>By nature, the background color on any div will only show for the length of the content. If you'd like a dividing line instead of a color, place a border on the side of the .content div (but only if it will always contain more content).</p>
        <!-- end .sidebar2 --></div>
      <div class="footer">
        <p class="footer">This .footer contains the declaration position:relative; to give Internet Explorer 6 hasLayout for the .footer and cause it to clear correctly. If you're not required to support IE6, you may remove it.</p>
        <!-- end .footer --></div>
      <!-- end .container --></div>
    </body>
    </html>

  2.  

  3. #2
    Unpaid WDF Intern TheGAME1264's Avatar
    Join Date
    Dec 2002
    Location
    Not from USA
    Posts
    14,485
    Member #
    425
    Liked
    2783 times
    It's contained within your .container class and .container is only 960 pixels wide.
    If I've helped you out in any way, please pay it forward. My wife and I are walking for Autism Speaks. Please donate, and thanks.

    If someone helped you out, be sure to "Like" their post and/or help them in kind. The "Like" link is on the bottom right of each post, beside the "Share" link.

    My stuff (well, some of it): My bowling alley site | Canadian Postal Code Info (beta)

  4. #3
    Junior Member
    Join Date
    Jul 2012
    Posts
    26
    Member #
    32295
    Liked
    3 times
    I meant topnav class sorry

    Code:
    <body>
     
        <div class="top_nav">
      <a href="#">Contact</a>
      <a href="#">Community</a>
      <a href="#">About</a>
      <a href="#">Home</a>
          </div>
    
    <div class="container">

  5. #4
    Junior Member
    Join Date
    Jul 2012
    Posts
    26
    Member #
    32295
    Liked
    3 times
    I found out what it was I was setting width instead of height to 100% DUH!!, I spent so much time freaking out lol

  6. #5
    Unpaid WDF Intern TheGAME1264's Avatar
    Join Date
    Dec 2002
    Location
    Not from USA
    Posts
    14,485
    Member #
    425
    Liked
    2783 times
    Ahhhh. The old float/clear rule again. Repeat this over and over again, because in cases when a float is involved and something is amiss, this rule will always get you out of it.

    When you float, you must clear.

    <div style="clear: right;"></div>

    Add that just before your closing div tag.
    If I've helped you out in any way, please pay it forward. My wife and I are walking for Autism Speaks. Please donate, and thanks.

    If someone helped you out, be sure to "Like" their post and/or help them in kind. The "Like" link is on the bottom right of each post, beside the "Share" link.

    My stuff (well, some of it): My bowling alley site | Canadian Postal Code Info (beta)

  7. #6
    Unpaid WDF Intern TheGAME1264's Avatar
    Join Date
    Dec 2002
    Location
    Not from USA
    Posts
    14,485
    Member #
    425
    Liked
    2783 times
    ...or that.
    If I've helped you out in any way, please pay it forward. My wife and I are walking for Autism Speaks. Please donate, and thanks.

    If someone helped you out, be sure to "Like" their post and/or help them in kind. The "Like" link is on the bottom right of each post, beside the "Share" link.

    My stuff (well, some of it): My bowling alley site | Canadian Postal Code Info (beta)


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 02:57 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com