Welcome, Guest. Please Login or Register.
May 06, 2024, 12:25:37 AM
Home Help Search Log in Register
News: SMF is the next generation in forum software, almost completely re-written from the ground up, make sure you don't fall for cheap imitations that suffer from feature bloat!

YaBB SE Community  |  Development  |  Graphics and Templates  |  scrollbars and css - wont work « previous next »
Pages: [1] Reply Ignore Print
Author Topic: scrollbars and css - wont work  (Read 1562 times)
Owdy
Full Member
***
Posts: 160


Finnish Noobie

spam@hoitajat.net WWW
scrollbars and css - wont work
« on: April 23, 2003, 04:09:50 PM »
Reply with quote

Its working fine in here, but not in my forum

Any ideas why??  :-\

css:body
                 {font-size: 10px;
                            font-family: Verdana, Arial, serif;
                color: #ffffff;
                            background-color: #2C5A8A;
                            scrollbar-face-color: #2C5A8A;
                            scrollbar-shadow-color: #2C5A8A;
                            scrollbar-highlight-color: #5482B2;
                            scrollbar-3dlight-color: #5482B2;
                            scrollbar-darkshadow-color: #184676;
                            scrollbar-track-color: #1D4B7B;
                            scrollbar-arrow-color: #ffffff;}
Logged
Nonya
Beta Tester
Sr. Member
****
Posts: 375


YaBBse Developer Wannabe!

ICQ - 172862020nonya69rs@hotmail.com WWW
Re:scrollbars and css - wont work
« Reply #1 on: April 23, 2003, 04:22:39 PM »
Reply with quote

Remove the <!DOCTYPE XHTML>  tag in the  top of your template.php and replace it with


<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
« Last Edit: April 23, 2003, 04:23:45 PM by Nonya » Logged

Spaceman-Spiff
Mod Team
YaBB God
*****
Posts: 3689


My $txt[228]

Re:scrollbars and css - wont work
« Reply #2 on: April 23, 2003, 05:33:51 PM »
Reply with quote

as a web developer, i discourage using scrollbar css styles
it's not W3C compliant and only works on IE, not in cool browsers :P
Logged

   My mods, ysePak, codes, tutorials
    Support question IMs = bad.
Owdy
Full Member
***
Posts: 160


Finnish Noobie

spam@hoitajat.net WWW
Re:scrollbars and css - wont work
« Reply #3 on: April 23, 2003, 05:37:07 PM »
Reply with quote

Quote from: Nonya on April 23, 2003, 04:22:39 PM
Remove the <!DOCTYPE XHTML>  tag in the  top of your template.php and replace it with


<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

Thanks! thats it ;D
Logged
Daniel Hofverberg
YaBB God
*****
Posts: 582


WWW
Re:scrollbars and css - wont work
« Reply #4 on: April 25, 2003, 10:46:39 AM »
Reply with quote

Quote from: Nonya on April 23, 2003, 04:22:39 PM
Remove the <!DOCTYPE XHTML>  tag in the  top of your template.php and replace it with


<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

Alternatively, apply the scrollbar styles to the html element instead of body and it will work with an XHTML doctype. Or better, apply it to both body and html in order to work in earlier versions of IE as well.
Logged
Owdy
Full Member
***
Posts: 160


Finnish Noobie

spam@hoitajat.net WWW
Re:scrollbars and css - wont work
« Reply #5 on: April 25, 2003, 10:53:24 AM »
Reply with quote

Quote from: Daniel Hofverberg on April 25, 2003, 10:46:39 AM
Quote from: Nonya on April 23, 2003, 04:22:39 PM
Remove the <!DOCTYPE XHTML>  tag in the  top of your template.php and replace it with


<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

Alternatively, apply the scrollbar styles to the html element instead of body and it will work with an XHTML doctype. Or better, apply it to both body and html in order to work in earlier versions of IE as well.

Eh, how?? (still noobie)   ???
Logged
Daniel Hofverberg
YaBB God
*****
Posts: 582


WWW
Re:scrollbars and css - wont work
« Reply #6 on: April 25, 2003, 05:50:05 PM »
Reply with quote

Something like:


body, html {
                           background-color: #2C5A8A;
                           scrollbar-face-color: #2C5A8A;
                           scrollbar-shadow-color: #2C5A8A;
                           scrollbar-highlight-color: #5482B2;
                           scrollbar-3dlight-color: #5482B2;
                           scrollbar-darkshadow-color: #184676;
                           scrollbar-track-color: #1D4B7B;
                           scrollbar-arrow-color: #ffffff;
}


Add that at the beginning of the CSS declaration, and then you can remove the scrollbar styles from the existing body declaration you quoted. That should work, and it makes more sense as you can then keep the XHTML doctype (as the HTML code after all is XHTML).
Logged
Owdy
Full Member
***
Posts: 160


Finnish Noobie

spam@hoitajat.net WWW
Re:scrollbars and css - wont work
« Reply #7 on: April 25, 2003, 07:10:45 PM »
Reply with quote

Wow. Its only need ",html" in css code. That all! Thanks Dan!!  :D
Logged
Spaceman-Spiff
Mod Team
YaBB God
*****
Posts: 3689


My $txt[228]

Re:scrollbars and css - wont work
« Reply #8 on: April 25, 2003, 08:05:21 PM »
Reply with quote

will that still be XHTML 1.0 valid, Daniel?
Logged

   My mods, ysePak, codes, tutorials
    Support question IMs = bad.
Daniel Hofverberg
YaBB God
*****
Posts: 582


WWW
Re:scrollbars and css - wont work
« Reply #9 on: April 25, 2003, 08:11:14 PM »
Reply with quote

The XHTML will be valid, but the CSS won't be (as scrollbar-*-color are Microsoft extensions).

The only way to validate as CSS2 is to not use these extensions.
Logged
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  Development  |  Graphics and Templates  |  scrollbars and css - wont work « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.015 seconds with 22 queries.