Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#13 2006-03-06 16:46:01

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,122
Website GitHub Mastodon Twitter

Re: trouble with CSS

colak wrote:

Did you try
<code>body {margin: 0;height:110%}</code>
<code><!—[if IE 6]>
<style type=“text/css”> /*<![CDATA[*/
body {overflow-y:true};
html {overflow-x:auto; overflow-y:true;}
/*]]>*/
</style>
<![endif]—></code>

Ok I cannot make the code appear properly in the forum. <a href=“http://forum.textpattern.com/post.php?tid=13146&qid=102588”>Quote</a> this post to view it.

Last edited by colak (2006-03-06 16:47:16)


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#14 2006-03-06 17:04:10

goncalo.dumas
Member
From: Lisbon
Registered: 2005-12-14
Posts: 97
Website

Re: trouble with CSS

It seems that IE will always display a vertical scrollbar, even if the content doesn’t require them – so I think that excludes IE hacks.

I’m currently using the <code>overflow: scroll</code> applied to the <code>html</code>.

This will always display a vertical scrollbar – but it also displays a horizontal one… :o(

Offline

#15 2006-03-07 07:23:25

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,122
Website GitHub Mastodon Twitter

Re: trouble with CSS

<blockquote>patchwork wrote:

It seems that IE will always display a vertical scrollbar, even if the content doesn’t require them – so I think that excludes IE hacks.

I’m currently using the <code>overflow: scroll</code> applied to the <code>html</code>.

This will always display a vertical scrollbar – but it also displays a horizontal one… :o(</blockquote>

Can you point us to a url?


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#16 2006-03-07 12:07:55

goncalo.dumas
Member
From: Lisbon
Registered: 2005-12-14
Posts: 97
Website

Re: trouble with CSS

colak, you must take into account that results can differ depending on the resolution you are using.
this will not be seen in IE, since it always displays the vertical scroll-bar.

so here it goes:
http://esc.caderno.net/actividade_artistica/?c=fotografia Here you’ll find that there are no vertical scroll-bar.
http://esc.caderno.net/bes/ And here, you’ll find that the vertical scroll-bar altered the <code>margin: 0 auto;</code> value that is automaticaly calculated by the agent, resulting in a +/-8px movement of all the layout.

Please note that this example will be available only for a short period… I’ll be working on it later today.

…Now that I think about this, maybe this is why some sites have their heights higher than it’s content – so that they force the use of a vertical scroll-bar. Silly.

Last edited by patchwork (2006-03-07 12:18:17)

Offline

#17 2006-03-07 12:48:30

goncalo.dumas
Member
From: Lisbon
Registered: 2005-12-14
Posts: 97
Website

Re: trouble with CSS

I found this at css-discuss

<code>html {min-height: 100%; margin-bottom: 1px;}</code>

It will force the vertical scrollbar either in IE and in FF, but not in Opera…

…I haven’t read the thread all the way to the end yet, but I think this is already the best solution for the problem ;o)

Offline

#18 2006-03-07 17:42:47

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,122
Website GitHub Mastodon Twitter

Re: trouble with CSS

<blockquote>patchwork wrote:

I found this at css-discuss

<code>html {min-height: 100%; margin-bottom: 1px;}</code>

It will force the vertical scrollbar either in IE and in FF, but not in Opera…

…I haven’t read the thread all the way to the end yet, but I think this is already the best solution for the problem ;o)</blockquote>

hi patchwork
Unfortunately neither your nor my solution works in ff (mac)


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#19 2006-03-07 19:52:23

NyteOwl
Member
From: Nova Scotia, Canada
Registered: 2005-09-24
Posts: 539

Re: trouble with CSS

An old hack that used to work but isn’t very pretty is to set the width to 99%. Another is to apply a small negative right margin. The latter may break something else depending on your design.


Obsolescence is just a lack of imagination. / 36-bits Forever! / #include <disclaimer.h>;

Offline

Board footer

Powered by FluxBB