473,659 Members | 2,671 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

horizontal scrollbar appearance

Hi,

At http://archytas.nl/ there appears to be a horizontal scrollbar when
using Mozilla Firebird (not in IE). The website (container DIV) should
be 770 px wide, so there shouldn't be any reason for the scrollbar to
appear at 1024x768.
I think it has something to do with the DIV properties defined in the
inline stylesheet. I hope someone can tell me why the horizontal
scrollbar will appear.

Much thanks in advance,

Roderik Emmerink
Jul 20 '05 #1
4 4894
In article Roderik wrote:
Hi,

At http://archytas.nl/ there appears to be a horizontal scrollbar when
using Mozilla Firebird (not in IE). The website (container DIV) should
be 770 px wide, so there shouldn't be any reason for the scrollbar to
appear at 1024x768.
I think it has something to do with the DIV properties defined in the
inline stylesheet. I hope someone can tell me why the horizontal
scrollbar will appear.

Much thanks in advance,


You have broken your layout purposefully, and then wonder why it breaks?
It worked fine here with 580px wide window, when I used my userstyle. All
it needed to do was to override that 770px.

I suppose your problem is that you use relative positioning cluelessly.
Have you never heard margins and paddings?

For example
<h1 style="position : relative; margin: 0px; top: 40%;left: 150px;">
Here you position 770px wide element 150px more right. If you replace
left:150px with something suitable, like padding-left:15em¹ for #divTop,
it works better (fits 800*600 on fullscreen even whiout userstyle).

Your layout doesn't need to be fixed, in fact it works nicely whiout
restrains. Use max-width to limit width, if you think that would come
issue. But remember that there really is not that many people running
browser in bigger that 10

[1] you really should use em or ex unit to measure elements whose
contents is text, that aplies everywhere in your site.

--
Lauri Raittila <http://www.iki.fi/lr> <http://www.iki.fi/zwak/fonts>
Saapi lähettää meiliä, jos aihe ei liity ryhmään, tai on yksityinen
tjsp., mutta älä lähetä samaa viestiä meilitse ja ryhmään.

Jul 20 '05 #2
On Mon, 3 Nov 2003 03:08:59 +0200, Lauri Raittila
<la***@raittila .cjb.net> wrote:
In article Roderik wrote:
Hi,

At http://archytas.nl/ there appears to be a horizontal scrollbar when
using Mozilla Firebird (not in IE). The website (container DIV) should
be 770 px wide, so there shouldn't be any reason for the scrollbar to
appear at 1024x768.
I think it has something to do with the DIV properties defined in the
inline stylesheet. I hope someone can tell me why the horizontal
scrollbar will appear.

Much thanks in advance,


You have broken your layout purposefully, and then wonder why it breaks?
It worked fine here with 580px wide window, when I used my userstyle. All
it needed to do was to override that 770px.

I suppose your problem is that you use relative positioning cluelessly.
Have you never heard margins and paddings?

For example
<h1 style="position : relative; margin: 0px; top: 40%;left: 150px;">
Here you position 770px wide element 150px more right. If you replace
left:150px with something suitable, like padding-left:15em¹ for #divTop,
it works better (fits 800*600 on fullscreen even whiout userstyle).

Your layout doesn't need to be fixed, in fact it works nicely whiout
restrains. Use max-width to limit width, if you think that would come
issue. But remember that there really is not that many people running
browser in bigger that 10

[1] you really should use em or ex unit to measure elements whose
contents is text, that aplies everywhere in your site.

Thanks a lot for your answer. I didn't expect the width to inherit.

regards,

Roderik
Jul 20 '05 #3
In article Roderik wrote:
Thanks a lot for your answer. I didn't expect the width to inherit.


It isn't inherited. The whole element is rendered as it would be whiout
positioning, exept in different place. That is the idea of relative
positioning. Block elements fill container by default. If such block
element is then positioned relatively, it will still be same size.

--
Lauri Raittila <http://www.iki.fi/lr> <http://www.iki.fi/zwak/fonts>
Saapi lähettää meiliä, jos aihe ei liity ryhmään, tai on yksityinen
tjsp., mutta älä lähetä samaa viestiä meilitse ja ryhmään.

Jul 20 '05 #4
On Mon, 3 Nov 2003 21:03:25 +0200, Lauri Raittila
<la***@raittila .cjb.net> wrote:
In article Roderik wrote:
Thanks a lot for your answer. I didn't expect the width to inherit.


It isn't inherited. The whole element is rendered as it would be whiout
positioning, exept in different place. That is the idea of relative
positioning. Block elements fill container by default. If such block
element is then positioned relatively, it will still be same size.


I understand. The block element uses the width of its container was
what I meant by inherited. I did expect that it would take the amount
of width necessary to contain the text, but it wasn't the case.
Jul 20 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
15618
by: Pal Csepregi | last post by:
Hi can i remove somehow the horizontal scrollbar? just the horizontal! Thx PallR
5
11187
by: Jsp | last post by:
I created a vertically scrolling div. On initial rendering, Firefox shows a horizontal scrollbar in this div, over the complete width. Resizing the width of the window/viewport makes the horizontal scrollbar disappear and never come back again, because the content is "liquid". Resizing the window/viewport vertically, makes the scrollbar come back again. IE and Opera don't show this behaviour. Page: http://www/lahaina.nl/index.htm CSS:...
4
3785
by: anna | last post by:
How to tell if a horizontal scrollbar is present? I only want to use scrollTo if horizontal scrollbar is present. window.scrollbars.visibility doesn't specify which scrollbar is present, so it gives a false result if there is vertical scrollbar but not horizontal scrollbar. TIA, Anna
1
2939
by: dhnriverside | last post by:
Hi guys I'm using a div to create a list with ajax stuff. At the moment, the div shows a scrollbar if the content is larger than the div. The problem is that if it isnt, the scrollbar disappears and all my content resizes, which obviously I don't want. I know I can use overflow: auto on the div, but that shows a horizontal scrollbar as well, and I don't need that - and because it's obvious I don't
4
2945
by: Sakharam Phapale | last post by:
Hi All, I have installed VS .NET 2002 on my machine. I have checked both Vertical scrollbar and Horizontal Scrollbar options, in Tools -> Options-> Text Editor-> General-> Vertical Scrollbar Horizontal Scrollbar
2
4224
by: Eduard | last post by:
I have a ASP.Net datagrid wrap in the following div: <DIV id="divPart2" style="OVERFLOW: hidden">. Another div controls the horizontal scrolling: <DIV id="scroll1" style="OVERFLOW: scroll; WIDTH: 800px; LINE-HEIGHT: 0px; HEIGHT: 17px" onscroll="javascript: document.getElementById('divPart2').scrollLeft = this.scrollLeft;"> scrolls the datagrid horizontally. When the horizontal scroll box is dragged or any of the scrollbar arrows is
14
3944
by: Michael Weis | last post by:
Hello all, as a non-professional in these things, I searched for this topic but found no satisfying answer: I have to create a site with 3 frames. (Please no diskussion about the sense of using frames...) The main frame has to show a vertical scrollbar if content is bigger than one display page. This works well, but:
1
9307
by: malpani.abhijit | last post by:
Hi, I am having a ListView component in my WinForm, when i add some images into it, it gives me a vertical scroll bar. What i want is, the horizontal scrollbar instead of vertical. Is there any way to hide the vertical scrollbars and display horizontal scrollbars?
3
5955
by: j0rd4n | last post by:
I have a user control that needs to allow vertical scrolling but not horizontal scrolling. In the user control's resize event, I need to adjust the size of all the children controls. For this to work correctly, I need the AutoScroll to not enable the horizontal scrollbar. After researching MSDN, I found the HScroll which can be used to disable horizontal scrolling when the AutoScroll mode is enabled. However, when I disable HScroll,...
0
8427
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
1
8525
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7356
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6179
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5649
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4175
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4335
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2750
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1975
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.