Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > Off page scrollbars with div and css

Reply
Thread Tools

Off page scrollbars with div and css

 
 
Yereth Jansen
Guest
Posts: n/a
 
      05-09-2005
Hi all,

I am getting fairly desperate by now, trying to figure out why browsers
cannot calculate the remainder of the page like I want it to be, namely
the *actual visible* remainder of the page.

It shows my scrollbars an inch or so outside the page, while of course
it should be exactly at the window edge at all sides.

I work in IE (it was not my choice!) and there it doesn't show correctly.

Thanx in advance!
Yereth Jansen

Here is my code:


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>

<style>
body {
font-size: 12px;
margin: 0px;
padding: 0px;
width: 100%;
height: 100%;
overflow: hidden;
}


div.previewInfoAssets {
float: left;
height: 100%;
padding: 0px 2px 0px 2px;
margin: 0px;
background-color: menu;
}

div.previewInfoAssets fieldset {
display: inline;
height: 100%;
margin: 0px;
padding: 3px;
width: inherit;
}

div.previewContent {
border: inset 1px black;
height: 100%;
margin: 0px;
padding: 5px;
background-color: window;
overflow: scroll;
}

div.container {
background-color: menu;
padding: 0px;
margin: 0px;
}
</style>
</head>
<body>
<div class="container">
<div class="previewInfoAssets">
<fieldset>
<legend>zoutuitbloei3.jpg</legend>
<table>
<tr>
<td>Width:</td>
<td>&nbsp;</td>
<td></td>
</tr>
<tr>
<td>Height:</td>
<td>&nbsp;</td>
<td></td>
</tr>
<tr>
<td>Modified:</td>
<td>&nbsp;</td>
<td>1970-01-01, 01:01:25</td>
</tr>
<tr>
<td>User Modified:</td>
<td>&nbsp;</td>
<td>Yereth</td>
</tr>
<tr>
<td>Created:</td>
<td>&nbsp;</td>
<td>1970-01-01, 01:01:25</td>
</tr>
<tr>
<td>Owner:</td>
<td>&nbsp;</td>
<td>Yereth</td>
</tr>
</table>
</fieldset>
</div>
<div class="previewContent">
<img
src="http://www.wharfmedia.nl/ewyse/site/library/images/zoutuitbloei3.jpg"
/>
</div>
</div>
</body>
</html>
 
Reply With Quote
 
 
 
 
Disco Octopus
Guest
Posts: n/a
 
      05-09-2005
Yereth Jansen wrote :
> Hi all,
>
> I am getting fairly desperate by now, trying to figure out why browsers
> cannot calculate the remainder of the page like I want it to be, namely the
> *actual visible* remainder of the page.
>
> It shows my scrollbars an inch or so outside the page, while of course it
> should be exactly at the window edge at all sides.
>
> I work in IE (it was not my choice!) and there it doesn't show correctly.
>
> Thanx in advance!
> Yereth Jansen
>
> Here is my code:
>.........


i am not exactly sure of what you are asking. perhaps a picture of what
you expect would help....

if i am guessing correctly, would this change help in any way...


change this.....


body {
font-size: 12px;
margin: 0px;
padding: 0px;
width: 100%;
height: 100%;
overflow: hidden;
}


..... to this.....

body {
font-size: 12px;
margin: 0px;
padding: 0px;
width: 100%;
height: 100%;
soverflow: hidden;
}

--
mmmmm, jerky : http://www.choicebeefjerky.com.au
dance with children in the rain

 
Reply With Quote
 
 
 
 
Mark Parnell
Guest
Posts: n/a
 
      05-10-2005
Previously in alt.html, Disco Octopus <> said:

> change this.....
>
> body {
> font-size: 12px;

<snip>

> .... to this.....


body {
font-size: 100%;

--
Mark Parnell
http://www.clarkecomputers.com.au
alt.html FAQ :: http://html-faq.com/
 
Reply With Quote
 
Yereth Jansen
Guest
Posts: n/a
 
      05-10-2005
Disco Octopus wrote:
> i am not exactly sure of what you are asking. perhaps a picture of what
> you expect would help....


If you'd take the code and open it in internet explorer then you would
see that the page is not actually showing correctly, as part of it is
showing 'outside' the page and I don't want the window itself to have
scrollbars. I want my page to exactly fill the window.

> if i am guessing correctly, would this change help in any way...


Your guess is? Change overflow to soverflow so that the overflow will be
ignored and the window will have scrollbars anyway? Very amusing.

> change this.....
>
>
> body {
> font-size: 12px;
> margin: 0px;
> padding: 0px;
> width: 100%;
> height: 100%;
> overflow: hidden;
> }
>
>
> .... to this.....
>
> body {
> font-size: 12px;
> margin: 0px;
> padding: 0px;
> width: 100%;
> height: 100%;
> soverflow: hidden;
> }


Are you trying to be funny?
 
Reply With Quote
 
Yereth Jansen
Guest
Posts: n/a
 
      05-10-2005
Mark Parnell wrote:
> Previously in alt.html, Disco Octopus <> said:
>
>
>>change this.....
>>
>>body {
>> font-size: 12px;

>
> <snip>
>
>>.... to this.....

>
>
> body {
> font-size: 100%;
>


Another joke?
 
Reply With Quote
 
Beauregard T. Shagnasty
Guest
Posts: n/a
 
      05-10-2005
Yereth Jansen wrote:
> Mark Parnell wrote:
>> body {
>> font-size: 100%;

>
> Another joke?


Haven't been reading here long, eh?

--
-bts
-This space intentionally left blank.
 
Reply With Quote
 
Barbara de Zoete
Guest
Posts: n/a
 
      05-10-2005
On Tue, 10 May 2005 09:54:22 +0200, Yereth Jansen
<> wrote:

> Disco Octopus wrote:
>> i am not exactly sure of what you are asking. perhaps a picture of what
>> you expect would help....

>
> If you'd take the code and open it in internet explorer then you would
> see that the page is not actually showing correctly,


Had you put up a decent mockup or example somewhere on the internet and
provided this group with a URL, no one had to take the code and copy/paste
it anywhere. They could have just clicked.

Furthermore, there are people who don't have Internet Explorer (for
Windows I presume) running at all. Think about that for a moment.


--
,-- --<--@ -- PretLetters: 'woest wyf', met vele interesses: ----------.
| weblog | http://home.wanadoo.nl/b.de.zoete/_private/weblog.html |
| webontwerp | http://home.wanadoo.nl/b.de.zoete/html/webontwerp.html |
|zweefvliegen | http://home.wanadoo.nl/b.de.zoete/html/vliegen.html |
`-------------------------------------------------- --<--@ ------------'
 
Reply With Quote
 
Yereth Jansen
Guest
Posts: n/a
 
      05-10-2005
Barbara de Zoete wrote:
> Had you put up a decent mockup or example somewhere on the internet and
> provided this group with a URL, no one had to take the code and
> copy/paste it anywhere. They could have just clicked.


You are right. Didn't really think of that, sorry.
http://www.wharfmedia.nl/ewyse/site/test.htm

> Furthermore, there are people who don't have Internet Explorer (for
> Windows I presume) running at all. Think about that for a moment.


lol! Of course there are such people. Haha. You actually think I believe
everyone in this world uses IE? I would actually advise them otherwise.
Fact is, that for this specific job, I *need to* and *have to* use IE. I
quote myself:
"I work in IE (it was not my choice!) and there it doesn't show correctly."

So, for everyone who DOES have IE, please help me. Help would be greatly
appreciated.

Cheers,
Yereth

ps. Dankjewel Barbara, dat je me verteld dat niet iedereen IE gebruikt.
 
Reply With Quote
 
Yereth Jansen
Guest
Posts: n/a
 
      05-10-2005
Beauregard T. Shagnasty wrote:
> Yereth Jansen wrote:
>
>> Mark Parnell wrote:
>>
>>> body {
>>> font-size: 100%;

>>
>>
>> Another joke?

>
>
> Haven't been reading here long, eh?


.... I assume this question is rhetorical. So now I have replied to you,
maybe someone can explain to me what Beauregard and Mark think is so
mightily amusing here?
 
Reply With Quote
 
Tonnie
Guest
Posts: n/a
 
      05-10-2005
Yereth Jansen wrote:
> Beauregard T. Shagnasty wrote:
>
>> Yereth Jansen wrote:
>>
>>> Mark Parnell wrote:
>>>
>>>> body {
>>>> font-size: 100%;
>>>
>>>
>>>
>>> Another joke?

>>
>>
>>
>> Haven't been reading here long, eh?

>
>
> ... I assume this question is rhetorical. So now I have replied to you,
> maybe someone can explain to me what Beauregard and Mark think is so
> mightily amusing here?


It wasn't a joke, never ment to be one to.

Don't use 'px'.

Groet,

Tonnie



--
Glas geschiedenis http://vision2form.nl/glashistorie.html
Passie en talent http://vision2form.nl/young_talent.html
Webontwerp http://vision2form.nl/webontwerp/index.html
SEO gaat zo http://vision2form.nl/webontwerp/gevonden-worden.html
 
Reply With Quote
 
 
 
Reply

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 Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
100% min-height div with margin and no scrollbars? Ciaran HTML 14 06-26-2009 11:23 PM
IE oversize div and without scrollbars Herbert Meister HTML 12 05-20-2009 10:07 PM
<div ... /> and <div ...></div> K Viltersten ASP .Net 4 03-31-2009 07:33 PM
NS/FF don't change div offsetWidth when div innerHTML is added toand div becomes wider mscir Javascript 3 06-26-2005 04:04 PM
Q: Div A inside Div B is larger than Div B Dwayne Madsen Javascript 1 06-01-2005 03:02 PM



Advertisments