page content stops at certain point

This is a discussion on "page content stops at certain point" within the Web Page Design section. This forum, and the thread "page content stops at certain point are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Sep 20th, 2006, 12:28
AdRock's Avatar
SuperMember

SuperMember
Join Date: Jul 2006
Location: Devon, England
Posts: 565
Thanks: 0
Thanked 0 Times in 0 Posts
page content stops at certain point

I have a really strange problem and I don't know why it's doing it

When my pgae gets to the div with the scroller inside the rest of the html is not executed. I can't see why it's doing it as all the divs are closed.

The rest of the code will work if i take out the scroller

There is nothing wrong with the css

HTML: Select all
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://wwww.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Projects-SW</title>
<meta hhtp-equiv="Content-Type" content="text/html;
   charset=iso8859-1">
<link href="includes/projects.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="includes/menu.js"></script>
<script type="text/javascript" src="includes/marquee.js"></script>
</head>
<body>
<div id="wrapper">
    <div id="title"><img src="images/projects.jpg " alt="Projects (SW) Limited"></div>
    <div id="info"></div>
    <div id="pic"><?php $number=rand(1,4); ?>
 <img src="images/work<?php echo $number;?>.jpg">
    </div>
    <div id="scroller">
 <div id="marqueecontainer" onMouseover="copyspeed=pausespeed" onMouseout="copyspeed=marqueespeed">
 <div id="vmarquee" style="position: absolute; width: 98%;">
     <? 
  include 'includes/connection.php';
  $q = mysql_query("SELECT * FROM content WHERE title='News'"); 
    if(!$q) die(mysql_error()); 
       $err = mysql_num_rows($q); 
         if($err == 0) die("No current news to display."); 
  while($code = mysql_fetch_array($q)) {
      echo "<h4>Current News</h4><p>".$code['comments']."</p><br>\n";
  }
      ?>
 </div>
    </div>
    </div>
    <div id="nav">r6tutyuty</div>
    <div id="main">tyututyuy</div>
    <div id="content"></div>
    <div id="time"></div>
    <div id="copyright"></div>
    <div id="image"></div>
</body>
</html>
The only code that you will need is the scroller css
Code: Select all
 
#marqueecontainer{
   position: relative;
   width: 200px; /*marquee width */
   height: 120px; /*marquee height */
   background-color: white;
   overflow: hidden;
   padding: 2px;
   padding-left: 4px;
}
Reply With Quote

  #2 (permalink)  
Old Sep 20th, 2006, 12:31
AdRock's Avatar
SuperMember

SuperMember
Join Date: Jul 2006
Location: Devon, England
Posts: 565
Thanks: 0
Thanked 0 Times in 0 Posts
Re: page content stops at certain point

I sorted it out....becuase the database was empty is stopped the rest of the page from loading
Reply With Quote
  #3 (permalink)  
Old Sep 22nd, 2006, 02:28
Ryan Fait's Avatar
SuperMember

SuperMember
Join Date: May 2006
Location: Las Vegas
Posts: 3,786
Thanks: 0
Thanked 0 Times in 0 Posts
Re: page content stops at certain point

Are you sure you want overflow set to hidden? I'm not sure how well formed your CSS skills are, but that will hide all the content that goes beyond the 200 pixel width and 120 pixel height.
Reply With Quote
  #4 (permalink)  
Old Sep 22nd, 2006, 07:22
AdRock's Avatar
SuperMember

SuperMember
Join Date: Jul 2006
Location: Devon, England
Posts: 565
Thanks: 0
Thanked 0 Times in 0 Posts
Re: page content stops at certain point

I was going to use a function where i display the first 10 words or something and use trailing dots

I did it so with urls becuase some are very long and they need shortening to fit in table cell
Reply With Quote
  #5 (permalink)  
Old Sep 22nd, 2006, 08:40
Ryan Fait's Avatar
SuperMember

SuperMember
Join Date: May 2006
Location: Las Vegas
Posts: 3,786
Thanks: 0
Thanked 0 Times in 0 Posts
Re: page content stops at certain point

Ah, Okay.
Reply With Quote
Reply

Tags
page, content, stops, certain, point

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
HELP! Positioning of content on my web page lisafelst12 Web Page Design 3 May 6th, 2008 11:29
Changing Content On A Seperate Page josephman1988 Other Programming Languages 0 Sep 20th, 2007 13:42
Possible to convert JSP to PDF? - page content gets cut off when printed out Love2Java Other Programming Languages 1 Mar 5th, 2007 17:07
A gap appears beween the Page Title and the Body Content of the page. sovereign6 Web Page Design 6 Dec 18th, 2006 19:14


All times are GMT. The time now is 05:32.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43