Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 12-29-2009, 03:42 AM   PM User | #1
FrickenTrevor
New Coder

 
Join Date: Aug 2009
Posts: 40
Thanks: 3
Thanked 0 Times in 0 Posts
FrickenTrevor is an unknown quantity at this point
body scroll tag help

So how do i take the
Code:
<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
FrickenTrevor is offline   Reply With Quote
Old 12-29-2009, 04:08 AM   PM User | #2
Excavator
Master Coder


 
Excavator's Avatar
 
Join Date: Dec 2006
Location: Alaska
Posts: 9,410
Thanks: 22
Thanked 1,765 Times in 1,749 Posts
Excavator has a spectacular aura aboutExcavator has a spectacular aura aboutExcavator has a spectacular aura about
Hello FrickenTrevor,
put something like this in your CSS -
Code:
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
__________________
Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad

Last edited by Excavator; 12-29-2009 at 04:11 AM..
Excavator is offline   Reply With Quote
Old 12-29-2009, 04:14 AM   PM User | #3
FrickenTrevor
New Coder

 
Join Date: Aug 2009
Posts: 40
Thanks: 3
Thanked 0 Times in 0 Posts
FrickenTrevor is an unknown quantity at this point
The code didnt work

Last edited by FrickenTrevor; 12-29-2009 at 04:16 AM..
FrickenTrevor is offline   Reply With Quote
Old 12-29-2009, 04:20 AM   PM User | #4
Excavator
Master Coder


 
Excavator's Avatar
 
Join Date: Dec 2006
Location: Alaska
Posts: 9,410
Thanks: 22
Thanked 1,765 Times in 1,749 Posts
Excavator has a spectacular aura aboutExcavator has a spectacular aura aboutExcavator has a spectacular aura about
Where did you put it?
__________________
Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad
Excavator is offline   Reply With Quote
Old 12-29-2009, 08:47 AM   PM User | #5
Arbitrator
Senior Coder

 
Arbitrator's Avatar
 
Join Date: Mar 2006
Location: Splendora, Texas, United States of America
Posts: 2,906
Thanks: 5
Thanked 189 Times in 186 Posts
Arbitrator is on a distinguished road
Quote:
Originally Posted by FrickenTrevor View Post
So how do i take the
Code:
<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.

Quote:
Originally Posted by FrickenTrevor View Post
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
I believe the correct name is HTML 4.01 Transitional. (The DTD file is named "loose.dtd" though.)
__________________
Please for the love of god stop making IE. You current "browser"s cause me to cry every day. —Phil *
Arbitrator is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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

Forum Jump


All times are GMT +1. The time now is 03:19 PM.


Advertisement
Log in to turn off these ads.