Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 10 of 10
  1. #1
    llc
    llc is offline
    New to the CF scene
    Join Date
    Apr 2009
    Posts
    4
    Thanks
    2
    Thanked 0 Times in 0 Posts

    missing scrollbar in Firefox

    Hi there. I'm a CSS newbie and I am working with Dreamweaver.

    My test web site works well in IE but blows up in Firefox. In Firefox 3 and Safari, there is no scroll bar and the local links do not work. Link below is prototype - only active link is 'About'.

    www.lwvknoxville.org

    I would appreciate any and all suggestions.

    Lara

  • #2
    New to the CF scene
    Join Date
    Apr 2009
    Location
    Seattle, WA, US
    Posts
    6
    Thanks
    0
    Thanked 1 Time in 1 Post
    As a finicky person I can not help but to notice that the banner contains not just females.


  • #3
    llc
    llc is offline
    New to the CF scene
    Join Date
    Apr 2009
    Posts
    4
    Thanks
    2
    Thanked 0 Times in 0 Posts
    It was important to the client to show diversity.
    There are a few brave men who join!

  • #4
    Regular Coder
    Join Date
    Oct 2007
    Location
    Glencoe, Ontario, Canada
    Posts
    340
    Thanks
    19
    Thanked 27 Times in 27 Posts
    Eric "PitbullMean" Melo
    Always Start your layout with*{border:0; margin:0; padding:0;}
    Be sure to Thank ALL Users who give assistance.

  • Users who have thanked PitbullMean for this post:

    llc (04-04-2009)

  • #5
    Regular Coder
    Join Date
    Jan 2009
    Posts
    316
    Thanks
    7
    Thanked 92 Times in 91 Posts
    You don't need any of the position:fixed or position:relative stuff. Get rid of it all.

    After you do this, you'll need to add something to the end of your code to clear the floats and show your background in FF. I used an empty div for example.

    Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <title>LWV Home</title>
    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
    <meta content="M Montgomery" name="author">
    <link href="LWV_files/main.css" rel="stylesheet" type="text/css">
    </head>
    <body>
    <div id="wrapper">
      <div id="head1"> </div>
      <div id="head2"> </div>
      <div id="bluebar">
        <p>Knoxville / Knox County</p>
      </div>
      <div id="menubar">
        <ul>
          <li><a class="current" href="http://www.lwvknoxville.org/index.htm">Home</a></li>
          <li><a href="http://www.lwvknoxville.org/about.htm">About</a></li>
          <li><a href="http://www.lwvknoxville.org/contact.htm">Contact</a></li>
          <li><a href="http://www.lwvknoxville.org/donate.htm">Donate</a></li>
          <li><a href="http://www.lwvknoxville.org/join.htm">Join</a></li>
          <li><a href="http://www.lwvknoxville.org/involve.htm">Get Involved!</a></li>
          <li><a href="http://www.lwvknoxville.org/issue.htm">League Issues</a></li>
          <li><a href="http://www.lwvknoxville.org/news.htm">News and Events</a></li>
          <li><a href="http://www.lwvknoxville.org/elections.htm">Government and Elections</a></li>
        </ul>
      </div>
      <div id="main">
        <div id="content">
          <p class="p1">Welcome to the League of Women Voters, Knoxville / Knox County, Tennessee.</p>
          <p class="p1">The League is a non-partisan organization — we do not support or oppose any   candidates or political parties.</p>
          <div id="info">
            <h3>Upcoming Events</h3>
            <p class="p1"> April 21, 2009, 5:30 PM</p>
            <p class="p2"> Topic: National Voter Compact<br>
              Location: Church of the Savior<br>
              934 Weisgarber Road, Knoxville, Tennessee</p>
            <p class="p1">May 19, 2009, 5:30 PM</p>
            <p class="p2">Topic: Annual Meeting<br>
              Location: Beck Cultural Center<br>
            </p>
            <p></p>
          </div>
        </div>
        <div id="rt_bar">
          <div id="section1" align="center"><a href="http://www.vote411.org/" target="_blank"><img src="LWV_files/vote411.png" alt="Vote 411" width="140" border="0" height="34"></a></div>
          <div id="section2" align="center"><img src="LWV_files/ca.png" alt="Citizen Academy" width="99" height="28"></div>
          <div id="section2a" align="center"> <a href="http://www.knoxcounty.org/election/" target="_blank">Register to Vote</a> </div>
          <div id="section3">
            <script type="text/javascript" src="LWV_files/CAjsform.js"></script>
            <form method="get" action="http://capwiz.com/stickers/" onSubmit="return verify(this);">
              <input name="dir" value="lwv" type="hidden">
              <input name="lvl" value="C" type="hidden">
              <input class="width" size="5" name="azip" maxlength="5" type="text">
              <input class="right" src="LWV_files/go_button.png" type="image">
            </form>
          </div>
        </div>
      </div>
      <div id="footer">
        <p class="left">League of Women Voters of Knoxville / Knox County, P.O. Box 31825, Knoxville, Tennessee 37930-1825 </p>
        <p class="right"><a href="mailto:lwv@discovernet.org">E-Mail LWVKK</a></p>
      </div>
      <div style="clear:both"></div> 
    </div>
    </body>
    </html>
    Code:
    /* Document Styles */
    body {
    	background: #ccc;
    	font: normal 10px/16px "Lucida Grande", "Lucida Sans Unicode", Tahoma, Verdana, Arial, sans-serif;
    	color: #666;
    	margin: 25px;
    	text-align: center; /* For IE */
    }
    /* Container Styles */
    #wrapper {
    	width: 720px;
    	border: 15px solid #fff;
    	margin: 0 auto;
    	padding: 0;
    	text-align: left; /* For IE */
    	background-color: #fff;
    }
    /* Banner Styles */
    #head1 {
    	width: 720px;
    	height: 20px;
    	background-color: #CE1141;
    }
    #head2 {
    	width: 720px;
    	height: 82px;
    	border-top: 1px solid #fff;
    	background-image: url(../_images/diversity2.png);
    	background-repeat: no-repeat;
    }
    #bluebar {
    	width: 704px;
    	padding: 3px 8px;
    	text-align: left;
    	border-top: 1px solid #fff;
    	background: #147;
    	margin: 0;
    }
    #bluebar p {
    	color: #fff;
    	margin: 0;
    }
    /* Menu Styles */
    #menubar {
    	width: 170px;
    	float: left;
    	padding: 0 10px;
    	margin: 20px 0 0 0;
    }
    #menubar ul {
    	margin: 0;
    	padding: 0;
    	list-style: none;
    }
    #menubar li {
    	padding: 3px 0 5px 0;
    }
    #menubar a {
    	font-size: 10px;
    	color: #009900;
    	text-decoration: none;
    	font-weight: bold;
    }
    #menubar a:hover {
    	text-decoration: none;
    	color: #00CC00;
    }
    #menubar a.current {
    	color: #005A9C;
    }
    /* Main Styles */
    #main {
    	width: 528px;
    	float: right;
    	margin: 20px 0 0 0;
    }
    /* Center Bar Styles */
    #content {
    	width: 314px;
    	float: left;
    	padding: 0 10px;
    	border-right: 2px dotted #ccc;
    	border-left: 2px dotted #ccc;
    }
    #content p {
    	margin: 0 0 5px 0;
    }
    #content p.p1 {
    	font-size: 13px;
    	line-height: 20px;
    }
    #content p.p2 {
    	font-size: 12px;
    	line-height: 15px;
    }
    #content h3 {
    	color: #E4073C;
    	font-size: 10px;
    	font-weight: normal;
    	text-transform: uppercase;
    	margin: 30px 0 5px 0;
    	letter-spacing: 1px;
    }
    #content a {
    	color: #6291D9;
    	text-decoration: none;
    }
    #content a:hover {
    	text-decoration: underline;
    }
    /* Right Bar Styles */
    #rt_bar {
    	width: 170px;
    	float: right;
    	padding: 0 10px;
    }
    #section1 {
    	border-bottom: 2px dotted #ccc;
    	padding: 0 0 10px 0;
    }
    #section2 {
    	border-bottom: 2px dotted #ccc;
    	margin: 0px;
    	padding: 8px 0;
    }
    #section3 {
    	border-bottom: 2px dotted #ccc;
    	margin: 0px;
    	background-image: url(../_images/writeto.png);
    	background-repeat: no-repeat;
    	background-position: center;
    	height: 75px;
    	padding: 8px 0;
    }
    #section3 input.right {
    	float: right;
    	margin-top: 41px;
    	margin-right: 15px;
    }
    #section3 input.width {
    	width: 38px;
    	float: left;
    	margin: 43px 0 0 60px;
    }
    #rt_bar a {
    	color: #E52337;
    	font-family: Arial, Helvetica, sans-serif;
    	font-weight: bold;
    	font-size: 11px;
    	text-decoration: none;
    }
    /* Footer Styles */
    #footer {
    	width: 704px;
    	background: #147;
    	text-align: left;
    	float: left;
    	padding: 3px 8px;
    	margin: 20px 0 0 0;
    }
    #footer p {
    	color: #fff;
    	margin: 0;
    }
    #footer a {
    	color: #fff;
    	text-decoration: none;
    }
    #footer a:hover {
    	text-decoration: underline;
    }
    #footer p.left {
    	float: left;
    }
    #footer p.right {
    	float: right;
    }
    Note:you'll have to change some of your image paths back.

  • Users who have thanked Fisher for this post:

    llc (04-04-2009)

  • #6
    llc
    llc is offline
    New to the CF scene
    Join Date
    Apr 2009
    Posts
    4
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Another assist?

    I tried something similar with the next page but I'm still having problems with formatting. When I remove all the position:relative, position:absolute statements the formatting falls apart. CSS file attached.
    Here is link to htm file w/ position statements removed:

    www.lwvknoxville.org/about.htm
    Attached Files Attached Files

  • #7
    Regular Coder
    Join Date
    Jan 2009
    Posts
    316
    Thanks
    7
    Thanked 92 Times in 91 Posts
    You still have all the positioning in your level2.css file:

    Code:
    /* Document Styles */
    body {
    	background: #ccc;
    	font: normal 10px/16px "Lucida Grande", "Lucida Sans Unicode", Tahoma, Verdana, Arial, sans-serif;
    	color: #666;
    	margin: 25px;
    	text-align: center; /* For IE */
    }
    /* Container Styles */
    #wrapper {
    	position: fixed;
    	width: 720px;
    	border: 15px solid #fff;
    	margin: 0 auto;
    	padding: 0;
    	text-align: left; /* For IE */
    	background-color: #fff;
    }
    /* Banner Styles */
    #head1 {
    	width: 720px;
    	height: 20px;
    	background-color: #CE1141;
    	position: relative;
    }
    #head2 {
    	width: 720px;
    	height: 82px;
    	border-top: 1px solid #fff;
    	background-image: url(../_images/diversity2.png);
    	background-repeat: no-repeat;
    	position: relative;
    }
    #bluebar {
    	width: 704px;
    	padding: 3px 8px;
    	text-align: left;
    	border-top: 1px solid #fff;
    	background: #147;
    	margin: 0;
    	position: relative;
    }
    #bluebar p {
    	color: #fff;
    	margin: 0;
    }
    
    /* Menu Styles */
    #menubar {
    	width: 170px;
    	position: relative;
    	float: left;
    	padding: 0 10px;
    	margin: 20px 0 0 0;
    }
    #menubar ul {
    	margin: 0;
    	padding: 0;
    	list-style: none;
    }
    #menubar li {
    	padding: 3px 0 5px 0;
    }
    #menubar a {
    	font-size: 10px;
    	color: #009900;
    	text-decoration: none;
    	font-weight: bold;
    }
    #menubar a:hover {
    	text-decoration: none;
    	color: #00CC00;
    }
    #menubar a.current {
    	color: #005A9C;
    }
    
    
    /* Main Styles */
    #main {
    	width: 508px;
    	position: relative;
    	float: right;
    	margin: 20px 0 0 0;
    	padding: 0 10px;
    	border-left: 2px dotted #ccc;
    }
    
    #main p {
    	margin: 0 0 10px 0;
    }
    #main p.p1 {
    	font-size: 13px;
    	line-height: 20px;
    }
    #main p.p2 {
    	font-size: 12px;
    	line-height: 15px;
    }
    #main h2 {
    	color: #005A9C;
    	font-size: 12px;
    	font-weight: bold;
    	text-transform: uppercase;
    	margin: 0px 0 5px 0;
    	letter-spacing: 1px;
    }
    #main h3 {
    	color: #E4073C;
    	font-size: 10px;
    	font-weight: normal;
    	text-transform: uppercase;
    	margin: 15px 0 5px 0;
    	letter-spacing: 1px;
    }
    #main h4 {
    	color: #333333;
    	font-size: 10px;
    	font-weight: normal;
    	text-transform: uppercase;
    	margin: 12px 0 5px 0;
    	letter-spacing: 1px;
    }
    #main a {
    	color: #6291D9;
    	text-decoration: none;
    }
    #main a:hover {
    	text-decoration: underline;
    }
    /* --------------------- bullet list styles ------------------------ */
    #main ul {
    	list-style-type:disc;
    	margin: 0px 0px 12px 10px;
    	padding-left: 15px;
    }
    
    #main ul li.link {
    	padding-left: 3px;
    	padding-bottom: 5px;
    }
    #main ul li.text {
    	line-height: 16px;
    	font-size: 12px;
    	padding-left: 3px;
    	padding-top: 4px;
    	padding-bottom: 4px;
    	letter-spacing: 0.03em;
    	color: #666666;
    }
    
    #main ul li.lastlink {
    	line-height: 18px;
    	font-size: 12px;
    	padding-left: 3px;
    	padding-bottom: 10px;
    }
    
    
    
    /* Footer Styles */
    #footer {
    	width: 704px;
    	background: #147;
    	text-align: left;
    	float: left;
    	padding: 3px 8px;
    	margin: 20px 0 0 0;
    	position: relative;
    }
    #footer p {
    	color: #fff;
    	margin: 0;
    }
    #footer a {
    	color: #fff;
    	text-decoration: none;
    }
    #footer a:hover {
    	text-decoration: underline;
    }
    #footer p.left {
    	float: left;
    }
    #footer p.right {
    	float: right;
    }
    Remove it and your page works fine.

    Edit: Perhaps you just missed one of them when you tried taking it out. Your about page works fine with the css file you attached. Make sure you get them all.
    Last edited by Fisher; 04-04-2009 at 04:00 PM.

  • #8
    llc
    llc is offline
    New to the CF scene
    Join Date
    Apr 2009
    Posts
    4
    Thanks
    2
    Thanked 0 Times in 0 Posts
    thanks for the help and thank you for being so very patient!
    Lara

  • #9
    Regular Coder Actinia's Avatar
    Join Date
    Feb 2007
    Location
    Essex, UK
    Posts
    250
    Thanks
    1
    Thanked 23 Times in 22 Posts
    The reasons why you do not get any scroll bars is that the page content fits on the screen without them. This will depend on how much screen area is available, which will vary between browsers and how many extra toolbars you have. With my FF (with extra toolbars), the scrollbars appear, but if I maximise (using F11) they disappear.

    John

  • #10
    Master Coder Excavator's Avatar
    Join Date
    Dec 2006
    Location
    Alaska
    Posts
    9,675
    Thanks
    22
    Thanked 1,827 Times in 1,811 Posts
    Hello llc,
    Good job on getting all that validated! Seems to work fine here on IE7, IE8 and FF3.

    On pages with longer content, your #wrapper gets pushed over the width of the scrollbar... about 17px if I remember.
    The usual fix for that is to force a scrollbar, even on pages that are not long enough to require one. That stops the page from seeming to jump to the side when you click from a short page to a long page.

    To have a scrollbar on all pages, add this bit in red to the top of your CSS -
    Code:
    /* Document Styles */
    html, body {
    height: 100.1%;
    	background: #ccc;
    	font: normal 10px/16px "Lucida Grande", "Lucida Sans Unicode", Tahoma, Verdana, Arial, sans-serif;
    	color: #666;
    	margin: 25px;
    	text-align: center; /* For IE */
    }
    Sometimes, combining the styling for html and body can cause things to repeat... you don't have a background image there but I've seen IE8 do some unexpected things from this. You can separate them like this and it will still work -
    Code:
    /* Document Styles */
    html {
    height: 100.1%;
    }
    body {
    height: 100.1%;	background: #ccc;
    	font: normal 10px/16px "Lucida Grande", "Lucida Sans Unicode", Tahoma, Verdana, Arial, sans-serif;
    	color: #666;
    	margin: 25px;
    	text-align: center; /* For IE */
    }
    Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
    Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •