HTML Tutorial


 /help/HTML Help Forum   FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
RegisterRegister - Not registered yet? Got something to say? Join HTML Code Tutorial!
Weird Scroll
Post new topic   Reply to topic    HTML Help Forum -> General HTML
View previous topic :: View next topic  
Author Message
Maggical



Joined: 10 Jan 2005
Posts: 46
Location: Rosario - Argentina

PostPosted: Fri Nov 20, 2009 11:58 am     Weird Scroll Reply with quote

Hi there, just wanted to see if someone could help me out here...

My portfolio is made in flash and it's scaled to a 100% both in width and height, but it also has an alternate content for people or devices that doesn't ahve flash.

The thing is that when flash is active the scrollbar shouldn't display (it has overflow:auto;) but it does leaving some pixels at the bottom...

http://www.javierespana.com/

Any ideas how to correct this?

Thanks,

Javier
PayneLess Designs



Joined: 28 Feb 2007
Posts: 4287
Location: MS

PostPosted: Fri Nov 20, 2009 3:08 pm     Reply with quote

Didn't see that problem in Firefox or IE 8, but you might correct these HTML errors and see if they help:

HTML Errors (5 Errors, 326 warnings)
Maggical



Joined: 10 Jan 2005
Posts: 46
Location: Rosario - Argentina

PostPosted: Sat Nov 21, 2009 11:25 am     Reply with quote

Just corrected all the errors and I keeo seeing the scroll in Firefox 3, Safari is not showing it... I don't have IE here...

Any other ideas? Thanks,

Javier
sticks464



Joined: 31 Dec 2006
Posts: 2625

PostPosted: Sat Nov 21, 2009 1:52 pm     Reply with quote

If you use 100% height correctly it will work.
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>100% height and width</title>
<style type="text/css">
* {margin:0; padding:0;}

body:before {/*Opera min-height 100% Fix*/
   content:"";
   height:100%;
   float:left;
   width:0;
}
body {   
    background: #A6A6A6;
    font:100% arial,"trebuchet ms",tahoma;
    color: #000;
    height: 100%;

html {
    overflow-y:scroll; /*keep scrollbar position present in FF at all times*/
    height: 100%;
}
#content {
    width:100%;
    min-height:100%;
    background:#EEF;
}

</style>

</head>

<body>
<div id="content">

</div>
</body>
</html>
Display posts from previous:   
Post new topic   Reply to topic    HTML Help Forum -> General HTML All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
HTML Help Archive
Powered by phpBB © 2001, 2005 phpBB Group
HTML Help topic RSS feed 

 
DARFUR
HOSTING / DESIGN
MAKE MONEY

Home
  |   Tutorials   |   Forum   |   Quick List   |   Link Directory   |   About
Copyright ©1997-2002 Idocs and ©2002-2007 HTML Code Tutorial