17 replies [Last post]
ITWeb
ITWeb's picture
Offline
Regular
Last seen: 17 years 18 weeks ago
Joined: 2005-11-20
Posts: 48
Points: 0

Hi Guys,

I have a situation in which I've place a block containing a css menu on top of an existing website.

When the menu.css external file is called on the page, it stops the page from scrolling. Without the external css file, the page work fine. Surprizing to me... this is the case in both Firefox and IE.

The main site also uses CSS but I see no name duplications of any of the elements.

What could be the culpret?

Bulldog

Sometimes Tenacity is a Virtue
At other times, it's just a pain in the tail.

ClevaTreva
ClevaTreva's picture
Offline
Guru
A hilly place, UK
Last seen: 4 years 21 weeks ago
A hilly place, UK
Joined: 2004-02-05
Posts: 2902
Points: 0

CSS Stops Browsers from Scrolling?

Hi

Again, a link to see it in action would be good.

Trevor

ITWeb
ITWeb's picture
Offline
Regular
Last seen: 17 years 18 weeks ago
Joined: 2005-11-20
Posts: 48
Points: 0

CSS Stops Browsers from Scrolling?

Link in action:

http://www.store.boa(remove)tersl(remove)ife.com/home.php?shop(remove)key=Test

Please do not post domian name as Google has a way of featuring it #1 in searches.

Thanks..

Bulldog

Sometimes Tenacity is a Virtue
At other times, it's just a pain in the tail.

ClevaTreva
ClevaTreva's picture
Offline
Guru
A hilly place, UK
Last seen: 4 years 21 weeks ago
A hilly place, UK
Joined: 2004-02-05
Posts: 2902
Points: 0

CSS Stops Browsers from Scrolling?

Hi

I think you need this in your css:

html,body{height:100%}

Trevor

ITWeb
ITWeb's picture
Offline
Regular
Last seen: 17 years 18 weeks ago
Joined: 2005-11-20
Posts: 48
Points: 0

CSS Stops Browsers from Scrolling?

I added the code as below within the CSS that controls the store.
Unfortunately, no luck.

Bulldog

html,body{height:100%}

BODY {
MARGIN-TOP: 0 px; MARGIN-BOTTOM: 0 px; MARGIN-LEFT: 0 px; MARGIN-RIGHT: 0 px;
BACKGROUND-COLOR: #FFFBD3;
}

and tried it as...

BODY { height:100%;
MARGIN-TOP: 0 px; MARGIN-BOTTOM: 0 px; MARGIN-LEFT: 0 px; MARGIN-RIGHT: 0 px;
BACKGROUND-COLOR: #FFFBD3;
}

Sometimes Tenacity is a Virtue
At other times, it's just a pain in the tail.

Anonymous
Anonymous's picture
Guru

CSS Stops Browsers from Scrolling?

ITWeb wrote:
Please do not post domian name as Google has a way of featuring it #1 in searches.
We should be learning from you then. Smile

ITWeb
ITWeb's picture
Offline
Regular
Last seen: 17 years 18 weeks ago
Joined: 2005-11-20
Posts: 48
Points: 0

CSS Stops Browsers from Scrolling?

right... I always end up #1 for something I don't want to be seen. Otherwise my articles are lost somewhere.

hahahah
And, I liked your girl pic better!

Sometimes Tenacity is a Virtue
At other times, it's just a pain in the tail.

ClevaTreva
ClevaTreva's picture
Offline
Guru
A hilly place, UK
Last seen: 4 years 21 weeks ago
A hilly place, UK
Joined: 2004-02-05
Posts: 2902
Points: 0

CSS Stops Browsers from Scrolling?

ITWeb wrote:
And, I liked your girl pic better!

I think Gary is rather depressed that the consensus is as you say, we liked the girl! Laughing out loud

Trevor

ITWeb
ITWeb's picture
Offline
Regular
Last seen: 17 years 18 weeks ago
Joined: 2005-11-20
Posts: 48
Points: 0

CSS Stops Browsers from Scrolling?

\:D/

HAHA , sorry Gary ... chicks rule, guys drool.

Anybody, know why my page does not scroll?
HELP!!!

Noting I see fixes it.

Bulldog

Sometimes Tenacity is a Virtue
At other times, it's just a pain in the tail.

ClevaTreva
ClevaTreva's picture
Offline
Guru
A hilly place, UK
Last seen: 4 years 21 weeks ago
A hilly place, UK
Joined: 2004-02-05
Posts: 2902
Points: 0

CSS Stops Browsers from Scrolling?

Hi

This really (REALLY) pains me to say this, but, you have no doctype (I suggest you go for html4.01 transitional)

Give your site a valid doctype

Why? I added one to it on my server on it worked fine, scrolling enabled.

You then need to run it through the validator at W3C

This is THE FIRST TIME a lack of Doctype has directly caused a problem posted that I have read (must have missed a few).

Trevor

Anonymous
Anonymous's picture
Guru

CSS Stops Browsers from Scrolling?

ClevaTreva wrote:
I think Gary is rather depressed that the consensus is as you say, we liked the girl! Laughing out loud
Psst ... I'm not Gary. Laughing out loud

ITWeb
ITWeb's picture
Offline
Regular
Last seen: 17 years 18 weeks ago
Joined: 2005-11-20
Posts: 48
Points: 0

CSS Stops Browsers from Scrolling?

Bravo Trever,

Yes fixing the DTD reference with the correct doctype fixed the scroller issue. Actually it is a little embarrising. Should have caught that myself. :oops:

Thanks,...

Bulldog

Sometimes Tenacity is a Virtue
At other times, it's just a pain in the tail.

Anonymous
Anonymous's picture
Guru

CSS Stops Browsers from Scrolling?

I'm still not Gary. Laughing out loud

Hugo
Hugo's picture
Offline
Moderator
London
Last seen: 8 years 11 weeks ago
London
Joined: 2004-06-06
Posts: 15668
Points: 2806

CSS Stops Browsers from Scrolling?

Could we take care not to further deepen the identity crisis that Triumph ? is currently trying to resolve, he has only recently settled on a representation of himself that he seems happy with. Now to cast doubts in his mind over his given name is likely to re-awaken that fragile sense of self that he has.

He does seems adamant that he is not Gary and I think that we should respect that fact and indeed help to re-enforce that belief.

Hugo.

Before you make your first post it is vital that you READ THE POSTING GUIDELINES!
----------------------------------------------------------------
Please post ALL your code - both CSS & HTML - in [code] tags
Please validate and ensure you have included a full Doctype before posting.
Why validate? Read Me

Anonymous
Anonymous's picture
Guru

CSS Stops Browsers from Scrolling?

Laughing out loud Thanks Milton.

ITWeb
ITWeb's picture
Offline
Regular
Last seen: 17 years 18 weeks ago
Joined: 2005-11-20
Posts: 48
Points: 0

CSS Stops Browsers from Scrolling?

I must admit that I liked Gary (whatever his name is) better as a girl. I think. Unless he's a she. Or, a she that is a he. Or, well I am a little confused here.

Sometimes Tenacity is a Virtue
At other times, it's just a pain in the tail.

thepineapplehead
thepineapplehead's picture
Offline
Moderator
Last seen: 48 weeks 2 days ago
Timezone: GMT+1
Joined: 2004-06-30
Posts: 9683
Points: 819

CSS Stops Browsers from Scrolling?

Milton? Hugo's not called Milton, she's called Boris Oups

Verschwindende wrote:
  • CSS doesn't make pies

ClevaTreva
ClevaTreva's picture
Offline
Guru
A hilly place, UK
Last seen: 4 years 21 weeks ago
A hilly place, UK
Joined: 2004-02-05
Posts: 2902
Points: 0

CSS Stops Browsers from Scrolling?

Triumph wrote:
Laughing out loud Thanks Milton.

:oops: :oops: :oops: :oops:

That was me. Got it confused with another post I was doing. Answering 2 posts at once!

Need another beer to re-focus my eyes Tongue

Trevor