...

View Full Version : body scroll tag help



FrickenTrevor
12-29-2009, 03:42 AM
So how do i take the


<body scroll="no">

tag and make it so its in CSS?

I have this tag on my site but W3C is demanding that it gets fixed. My site is in HTML 4.01 Loose with a encoding of utf-8

Excavator
12-29-2009, 04:08 AM
Hello FrickenTrevor,
put something like this in your CSS -
body {
overflow: hidden;
}

That will give stop any scrollbar from appearing. It will also hide any content that needed a scrollbar, like if someone were to view your site on a cellphone or something.
See the w3schools page on overflow - http://www.w3schools.com/Css/pr_pos_overflow.asp

FrickenTrevor
12-29-2009, 04:14 AM
The code didnt work

Excavator
12-29-2009, 04:20 AM
Where did you put it?

Arbitrator
12-29-2009, 08:47 AM
So how do i take the


<body scroll="no">

tag and make it so its in CSS?You could use <body style="overflow: hidden;">. I would recommend taking Excavator's approach and using an embedded or external style sheet with selectors to apply this CSS though.


I have this tag on my site but W3C is demanding that it gets fixed. My site is in HTML 4.01 Loose with a encoding of utf-8I believe the correct name is HTML 4.01 Transitional. (The DTD file is named "loose.dtd" though.)



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum