rootKID Posted January 26, 2013 Share Posted January 26, 2013 ok... i have been working on this thing for a month or so now..im really pissed and need some verification... the last post i posted what actually ALMOST fine.. the only trouble was my explore i suppose.. anyways.. now my explore is NOT my problem any longer.. but google chrome is at this point at an another project.. (pictures added..) i mean.. what?... this is my php file: function stdhead($sitename = '',$css_style = ''){$HTMLOUT = "";//Starting Variable...$HTMLOUT .= "<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'><html xmlns='http://www.w3.org/1999/xhtml'><head><meta http-equiv='Content-Type' content='text/html; charset=ISO-8859-1' /><link rel='shortcut icon' href='favicon.ico' /><title>$sitename</title><link rel='stylesheet' type='text/css' href='themes/1/$css_style.css'></head><body><a name='top'>";$HTMLOUT .= "<div id='header'>";$HTMLOUT .= "Header/Banner/Logo...";$HTMLOUT .= "</div>";//Ending Header...$HTMLOUT .= "<div id='statusbar'>";$HTMLOUT .= "StatusBar";$HTMLOUT .= "</div>";//Ending StatusBar...$HTMLOUT .= "<div id='menu'>";$HTMLOUT .= "<a href='index.php'>Index</a>";$HTMLOUT .= "<a href='#'>Index</a>";$HTMLOUT .= "<a href='#'>Index</a>";$HTMLOUT .= "<a href='#'>Index</a>";$HTMLOUT .= "<a href='#'>Index</a>";$HTMLOUT .= "</div>";//Ending Menu...$HTMLOUT .= "<div id='content'>";$HTMLOUT .= "Content";return $HTMLOUT;}//STDHEAD FUNCTION ENDS...function stdfoot(){$stdfoot = "";//Starting Variable...$stdfoot .= "</div>";//Ending Content...$stdfoot .= "<div id='footer'>";$stdfoot .= "Footer";$stdfoot .= "</div>";//Ending Footer...$stdfoot .= "</body></html>";return $stdfoot;}//STDFOOTER FUNCTION ENDS... and this is my CSS file: /* CSS Document */* {padding: 0em;margin: 0em;}html {width: 100%;}body {background-color:#2f2f2f; /*Original: 464646*/}#header {/*background: url('pics/head.jpg') top center no-repeat;*/height:100px;width:100%;background-color:#111111;color:#999;}#statusbar {/*background: url('pics/head.jpg') top center no-repeat;*/height:30px;width:100%;background-color:#222222;color:#999;}#menu {/*background: url('pics/head.jpg') top center no-repeat;*/height:30px;width:100%;background-color:#222222;color:#999;}#content {height:100px;width:100%;background-color:#333333;color: #ffffff;}#footer {height:auto;width:100%;background-color:#444444;color: #ffffff;} ideas?... Link to comment Share on other sites More sharing options...
Ingolme Posted January 26, 2013 Share Posted January 26, 2013 Have you validated the page? To start off, you forgot to close <a name="top"> which is really going to mess up the DOM. Make sure that the page's content has all its tags properly closed as well. Seeing the output HTML would help spot the problem easier (Control+U in Firefox) Link to comment Share on other sites More sharing options...
dsonesuk Posted January 27, 2013 Share Posted January 27, 2013 $HTMLOUT .= "<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'> top will cause a line break, which cause !DOCTYPE declaration to appear on 2nd line, which may also cause problems in some browsers, try $HTMLOUT .= "<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'> Link to comment Share on other sites More sharing options...
rootKID Posted January 28, 2013 Author Share Posted January 28, 2013 (edited) Grrrrrr..... i really hate my own eyes for the time being... the mistake was the freaking content inside the css...i had a height on 100px instead of auto ... Edited January 28, 2013 by rootKID Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now